grav-theme-libretic/scss/template/_blog.scss

208 lines
4 KiB
SCSS
Raw Normal View History

2015-01-15 19:15:54 +01:00
.blog-header {
2015-01-22 13:28:29 +01:00
padding-top: 1rem !important;
padding-bottom: 1rem;
margin-top: 0 !important;
2015-01-15 19:15:54 +01:00
&.blog-header-image {
2015-01-22 13:28:29 +01:00
background-size: cover !important;
2015-01-15 19:15:54 +01:00
h1, h2 {
color: $header-text;
2015-01-22 13:28:29 +01:00
text-align: left;
2015-01-15 19:15:54 +01:00
}
}
h1 {
2015-01-22 13:28:29 +01:00
font-size: 2.5rem;
2015-01-15 19:15:54 +01:00
margin-top: 0;
2015-01-22 13:28:29 +01:00
margin-bottom: 0;
text-transform: uppercase;
2015-01-15 19:15:54 +01:00
@include breakpoint(tablet-range) {
2015-01-23 13:20:59 +01:00
font-size: 2rem;
2015-01-15 19:15:54 +01:00
}
@include breakpoint(mobile-only) {
2015-01-23 13:20:59 +01:00
font-size: 1.5rem;
2015-01-15 19:15:54 +01:00
line-height: 1.2;
}
}
& + .blog-content {
padding-top: $padding-vert;
}
}
// List Blog Item
.list-item {
2015-01-22 17:14:47 +01:00
border-bottom: 1px solid darken($border-color, 8%);
2015-01-15 19:15:54 +01:00
margin-bottom: $padding-vert;
&:last-child {
border-bottom: 0;
}
.list-blog-header {
position: relative;
h4 {
2015-01-22 13:28:29 +01:00
text-align: left;
2015-01-22 17:14:47 +01:00
margin-bottom: 1.5rem;
2015-01-15 19:15:54 +01:00
a {
2015-01-22 17:14:47 +01:00
color: $light-gray;
2015-01-15 19:15:54 +01:00
&:hover {
color: $core-accent;
}
}
}
img {
display: block;
margin-top: 1rem;
border-radius: $border-radius;
}
}
2015-01-22 17:14:47 +01:00
.list-blog-date, .list-blog-author {
2015-01-15 19:15:54 +01:00
text-align: center;
2015-01-22 13:28:29 +01:00
background-color: transparentize($light-gray, 0.9);
padding: 0.7rem 1rem;
margin-bottom: 0.2rem;
margin-right: 0.5rem;
2015-01-22 17:14:47 +01:00
font-size: $core-font-size;
text-transform: uppercase;
color: $core-text;
font-family: $font-family-header;
2015-01-23 13:20:59 +01:00
@include breakpoint(tablet-range) {
display: block;
width: 100%;
clear: both;
}
@include breakpoint(mobile-only) {
display: block;
width: 100%;
clear: both;
}
2015-01-15 19:15:54 +01:00
}
}
// Bigger first para
.blog-content-item {
.list-blog-padding > p:nth-child(2) {
2022-08-12 17:29:55 +02:00
font-size: $core-font-size + 0.4rem;
2015-01-15 19:15:54 +01:00
}
}
// Tags
.tags {
2015-01-22 16:29:30 +01:00
margin: 0;
padding: 0;
display: inline;
2015-01-22 13:28:29 +01:00
background-color: transparentize($light-gray, 0.9);
padding: 0.7rem 1rem;
margin-bottom: 0.2rem;
2015-01-22 16:29:30 +01:00
list-style: none;
2015-01-23 13:20:59 +01:00
text-align: center;
2015-01-22 16:29:30 +01:00
li {
2015-01-15 19:15:54 +01:00
display: inline-block;
2015-01-22 13:28:29 +01:00
font-size: $core-font-size;
2015-01-15 19:15:54 +01:00
text-transform: uppercase;
2015-01-22 13:28:29 +01:00
font-family: $font-family-header;
2015-01-22 16:29:30 +01:00
a {
color: $core-text;
&:after {
content: ",";
}
}
&:last-child {
2015-01-22 17:14:47 +01:00
a:after {display: none;}
2015-01-22 16:29:30 +01:00
}
2015-01-15 19:15:54 +01:00
}
2015-01-23 13:20:59 +01:00
@include breakpoint(tablet-range) {
display: block;
width: 100%;
clear: both;
}
@include breakpoint(mobile-only) {
display: block;
width: 100%;
clear: both;
}
2015-01-15 19:15:54 +01:00
}
// Archives & Related-Pages
.archives, .related-pages {
2015-01-22 17:29:21 +01:00
margin: 0;
2015-01-15 19:15:54 +01:00
padding: 0;
list-style: none;
li {
line-height: $core-font-size + 1rem;
&:last-child {
border-bottom: 0;
}
}
2015-01-22 17:29:21 +01:00
a {
color: $core-text;
&:hover {
color: $core-accent;
}
}
2015-01-15 19:15:54 +01:00
}
.related-pages {
li {
a {
display: block;
}
}
.score {
display: block;
float: right;
color: #999;
font-size: 85%
}
}
// Syndicate
.syndicate {
a {
margin-bottom: 1rem;
}
}
// Breadcrumbs
div#breadcrumbs {
padding-left: 0;
@include breakpoint(mobile-only) {
display: none;
}
}
// Sidebar
#sidebar {
padding-left: 3rem;
@include breakpoint(mobile-only) {
padding-left: 0;
}
.sidebar-content {
h4 {
margin-bottom: 1rem;
2015-01-22 13:28:29 +01:00
text-align: left;
2015-01-15 19:15:54 +01:00
}
p, ul {
margin-top: 1rem;
}
margin-bottom: $padding-vert;
}
}
// Pagination
ul.pagination {
margin: 0 0 $padding-vert;
text-align: center;
}
// Prev / Next
.prev-next {
margin-top: 5rem;
text-align: center;
}