hacks-guide-minimal-mistake.../_assets/css/_page.scss
2016-03-11 15:55:06 -05:00

172 lines
3 KiB
SCSS

/* ==========================================================================
SINGLE PAGE/POST
========================================================================== */
#main {
@include container;
@include clearfix;
margin-top: 2em;
}
.page {
@include container;
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
margin-bottom: 2em;
@include breakpoint($small) {
@include grid(12,8);
@include prefix(12,0);
@include suffix(12,0);
}
@include breakpoint($large) {
@include grid(12,6);
}
@include breakpoint($x-large) {
@include grid(12,5);
}
}
.page__title {
margin-top: 0;
font-family: $serif;
}
.page__content {}
.page__hero {
position: relative;
margin-bottom: 2em;
@include clearfix;
&:after {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 8%;
width: 0;
height: 0;
border: 10px solid transparent;
border-bottom-color: $body-color;
@include breakpoint($small) {
left: 25%;
}
@include breakpoint($large) {
border-width: 20px;
}
@include breakpoint($x-large) {
left: 33.333333333%;
}
}
}
.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($medium) {
padding: 5px 10px;
}
a {
color: #fff;
text-decoration: none;
}
}
/*
Social sharing
========================================================================== */
.page__share {
margin-top: 1em;
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;
font-family: $sans-serif;
font-size: 14px;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
p {
margin-bottom: 0;
}
}
.page__meta-title {
font-size: 14px;
margin-bottom: 10px;
text-transform: uppercase;
}
/*
Related
========================================================================== */
.page__related {
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
margin-bottom: 2em;
@include breakpoint($small) {
@include grid(12,6);
@include prefix(12,3);
@include suffix(12,3);
}
@include breakpoint($x-large) {
@include grid(12,4.5);
@include prefix(12,4);
@include suffix(12,3.5);
}
li {
margin-bottom: 0;
}
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
.page__related-title {
font-size: 14px;
margin-bottom: 10px;
text-transform: uppercase;
}