280 lines
No EOL
4.5 KiB
SCSS
280 lines
No EOL
4.5 KiB
SCSS
/* ==========================================================================
|
|
SINGLE PAGE/POST
|
|
========================================================================== */
|
|
|
|
#main {
|
|
@include container;
|
|
@include clearfix;
|
|
position: relative;
|
|
margin-top: 2em;
|
|
padding-left: 2em;
|
|
padding-right: 2em;
|
|
z-index: 0;
|
|
|
|
@include breakpoint($large) {
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
@include breakpoint($x-large) {
|
|
max-width: $x-large;
|
|
}
|
|
}
|
|
|
|
.page {
|
|
@include breakpoint($medium) {
|
|
padding-right: $right-sidebar-width-narrow;
|
|
}
|
|
|
|
@include breakpoint($large) {
|
|
@include span(10 of 12 last);
|
|
padding-right: $right-sidebar-width;
|
|
}
|
|
|
|
@include breakpoint($x-large) {
|
|
@include prefix(0.5 of 12);
|
|
padding-right: $right-sidebar-width-wide;
|
|
}
|
|
|
|
.page__inner-wrap {
|
|
.page__content,
|
|
.page__meta,
|
|
.page__share {
|
|
@include clearfix();
|
|
@include full();
|
|
}
|
|
}
|
|
}
|
|
|
|
.page__title {
|
|
margin-top: 0;
|
|
font-family: $serif;
|
|
line-height: 1;
|
|
& + .page__meta {
|
|
margin-top: -1.5em;
|
|
}
|
|
}
|
|
|
|
.page__lead {
|
|
font-family: $sans-serif;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.page__content {
|
|
p, li, dl {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* paragraph indents */
|
|
p {
|
|
margin: 0 0 $indent-var;
|
|
|
|
// sibling indentation
|
|
@if $paragraph-indent == true {
|
|
& + p {
|
|
text-indent: $indent-var;
|
|
margin-top: -($indent-var);
|
|
}
|
|
}
|
|
}
|
|
|
|
dt {
|
|
margin-top: 1em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
dd {
|
|
margin-left: 1em;
|
|
}
|
|
}
|
|
|
|
.page__hero {
|
|
position: relative;
|
|
margin-bottom: 2em;
|
|
@include clearfix;
|
|
|
|
&--overlay {
|
|
position: relative;
|
|
margin-bottom: 2em;
|
|
padding: 3em 0;
|
|
@include clearfix;
|
|
text-align: center;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
|
|
.wrapper {
|
|
padding-left: 2em;
|
|
padding-right: 2em;
|
|
}
|
|
|
|
.page__title,
|
|
.page__meta,
|
|
.page__lead,
|
|
.btn {
|
|
color: #fff;
|
|
text-shadow: 1px 1px 4px rgba(#000, 0.5);
|
|
}
|
|
|
|
.page__title {
|
|
font-size: 48px;
|
|
|
|
@include breakpoint($small) {
|
|
font-size: 60px;
|
|
}
|
|
}
|
|
|
|
.page__lead {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
.page__hero-image {
|
|
width: 100%;
|
|
height: auto;
|
|
-ms-interpolation-mode: bicubic;
|
|
}
|
|
|
|
.page__hero-caption {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
margin: 0 auto;
|
|
padding: 2px 5px;
|
|
color: #fff;
|
|
font-family: $sans-serif;
|
|
font-size: 10px;
|
|
background: #000;
|
|
text-align: right;
|
|
z-index: 5;
|
|
opacity: 0.5;
|
|
border-radius: $border-radius 0 $border-radius 0;
|
|
|
|
@include breakpoint($large) {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
/*
|
|
Social sharing
|
|
========================================================================== */
|
|
|
|
.page__share {
|
|
margin-top: 2em;
|
|
padding-top: 1em;
|
|
border-top: 1px solid $border-color;
|
|
}
|
|
|
|
.page__share-title {
|
|
font-size: 14px;
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
/*
|
|
Page meta
|
|
========================================================================== */
|
|
|
|
.page__meta {
|
|
margin-top: 2em;
|
|
color: mix(#fff, $gray, 25%);
|
|
font-family: $sans-serif;
|
|
font-size: 14px;
|
|
|
|
p {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
.page__meta-title {
|
|
font-size: 14px;
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
/*
|
|
Page taxonomy
|
|
========================================================================== */
|
|
|
|
.page__taxonomy {
|
|
.sep {
|
|
display: none;
|
|
}
|
|
|
|
strong {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
.page__taxonomy-item {
|
|
display: inline-block;
|
|
margin-right: 5px;
|
|
margin-bottom: 8px;
|
|
padding: 5px 10px;
|
|
text-decoration: none;
|
|
border: 1px solid $light-gray;
|
|
border-radius: $border-radius;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
border-color: $gray;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
Comments
|
|
========================================================================== */
|
|
|
|
.page__comments {
|
|
@include clearfix();
|
|
@include full();
|
|
}
|
|
|
|
.page__comments-title {
|
|
font-size: 14px;
|
|
margin-top: 2rem;
|
|
margin-bottom: 10px;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid $border-color;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
/*
|
|
Related
|
|
========================================================================== */
|
|
|
|
.page__related {
|
|
margin-top: 2em;
|
|
padding-top: 1em;
|
|
border-top: 1px solid $border-color;
|
|
@include clearfix();
|
|
float: left;
|
|
|
|
@include breakpoint($large) {
|
|
@include pre(2 of 12);
|
|
}
|
|
|
|
@include breakpoint($x-large) {
|
|
@include pre(2.5 of 12);
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.page__related-title {
|
|
font-size: 14px;
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
} |