hacks-guide-minimal-mistake.../_assets/css/_page.scss

255 lines
4.4 KiB
SCSS
Raw Normal View History

2015-01-21 15:32:22 +01:00
/* ==========================================================================
2016-03-10 17:13:54 +01:00
SINGLE PAGE/POST
2015-01-21 15:32:22 +01:00
========================================================================== */
2013-05-24 16:25:31 +02:00
#main {
@include container;
@include clearfix;
margin-top: 2em;
2016-03-10 17:13:54 +01:00
}
.page {
@include container;
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
margin-bottom: 2em;
2015-01-21 15:32:22 +01:00
@include breakpoint($small) {
@include grid(12,8);
@include prefix(12,0);
@include suffix(12,0);
}
2016-03-10 19:06:59 +01:00
@include breakpoint($large) {
@include grid(12,6);
}
2016-03-10 19:06:59 +01:00
@include breakpoint($x-large) {
@include grid(12,5);
}
2016-03-10 19:06:59 +01:00
}
2016-03-11 04:29:30 +01:00
.page__title {
font-family: $serif;
}
2016-03-10 19:06:59 +01:00
.page__content {
ul, ol {
li + li {
margin-top: 0.5em;
}
}
2013-05-24 16:25:31 +02:00
}
2015-01-21 15:32:22 +01:00
2016-03-10 19:06:59 +01:00
.page__hero {
position: relative;
margin-bottom: 2em;
@include clearfix;
&:after {
2016-03-10 19:06:59 +01:00
content: "";
display: block;
position: absolute;
bottom: 0;
left: 8%;
width: 0;
height: 0;
border: 10px solid transparent;
2016-03-10 17:13:54 +01:00
border-bottom-color: $body-color;
@include breakpoint($small) {
left: 25%;
}
@include breakpoint($large) {
border-width: 20px;
}
@include breakpoint($x-large) {
left: 33.333333333%;
}
}
2016-03-10 19:06:59 +01:00
}
.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;
}
2013-05-24 16:25:31 +02:00
}
2015-01-21 15:32:22 +01:00
2016-03-11 04:29:30 +01:00
/*
Social sharing
========================================================================== */
2016-02-23 03:44:55 +01:00
2016-03-11 04:29:30 +01:00
.page__share {
margin-top: 1em;
padding-top: 1em;
border-top: 1px solid $border-color;
2016-02-23 03:44:55 +01:00
}
2016-03-11 04:29:30 +01:00
.page__share-title {
2016-03-10 17:13:54 +01:00
font-size: 14px;
2016-03-11 04:29:30 +01:00
margin-bottom: 10px;
text-transform: uppercase;
2013-09-07 18:57:20 +02:00
}
2015-01-21 15:32:22 +01:00
2016-03-11 04:29:30 +01:00
/*
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: 10px;
}
}
2015-01-21 15:32:22 +01:00
/* Footer wrapper */
2013-05-24 16:25:31 +02:00
.footer-wrap {
@include container;
@include clearfix;
clear: both;
padding-bottom: 3em;
.copyright {
2016-03-10 17:13:54 +01:00
font-size: 14px;
}
footer {
@include grid(12,10);
@include prefix(12,1);
@include suffix(12,1);
@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);
}
}
2013-05-24 16:25:31 +02:00
}
2015-01-21 15:32:22 +01:00
/* Follow links */
.follow {
ul {
margin: 0;
padding: 0;
list-style-type: none;
}
li {
display: inline-block;
}
li + li:before {
content: "";
padding-right: 5px;
}
}
2015-01-21 15:32:22 +01:00
/* Related articles list */
2013-05-24 16:25:31 +02:00
.related-articles {
@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);
}
h4 {
text-transform: uppercase;
margin-bottom: 0;
}
li {
margin-bottom: 0;
}
2013-05-24 16:25:31 +02:00
}
2013-09-07 17:59:02 +02:00
2015-04-17 12:43:36 +02:00
/*
2015-01-21 15:32:22 +01:00
Browser upgrade alert
========================================================================== */
2013-09-07 16:10:55 +02:00
.browser-upgrade {
background: #000;
text-align: center;
margin: 0 0 2em 0;
padding: 10px;
text-align: center;
2016-03-10 17:13:54 +01:00
color: #fff;
a {
2016-03-10 17:13:54 +01:00
color: #fff;
border-bottom: 1px dotted #fff;
text-decoration: none;
&:hover {
2016-03-10 17:13:54 +01:00
border-bottom: 1px solid #fff;
}
}
2013-09-07 17:59:02 +02:00
}
2015-04-17 12:43:36 +02:00
/*
2015-01-21 15:32:22 +01:00
Google search form
========================================================================== */
2013-09-07 17:59:02 +02:00
#goog-fixurl {
ul {
list-style: none;
margin-left: 0;
padding-left: 0;
li {
list-style-type: none;
}
}
2013-09-07 17:59:02 +02:00
}
#goog-wm-qt {
width: auto;
margin-right: 10px;
margin-bottom: 20px;
padding: 8px 20px;
display: inline-block;
2016-03-10 17:13:54 +01:00
font-size: 14px;
background-color: #fff;
color: #000;
border-width: 2px !important;
border-style: solid !important;
2016-03-10 17:13:54 +01:00
border-color: lighten(#000,50);
border-radius: $border-radius;
2013-09-07 17:59:02 +02:00
}
#goog-wm-sb {
@extend .btn;
}