casper/assets/css/screen.css

1836 lines
34 KiB
CSS
Raw Normal View History

2017-06-16 08:17:11 +00:00
/* Table of Contents
/* ------------------------------------------------------------
This is a development CSS file which is built to a minified
production stylesheet in assets/built/screen.css
2017-06-16 08:44:12 +00:00
2017-06-16 08:17:11 +00:00
1. Global Styles
2. Layout
3. Special Templates
4. Site Header
5. Site Navigation
6. Post Feed
7. Single Post
7.1. Subscribe Form
7.2. Post Footer
7.3. Comments
7.4. Related Posts
7.5. Floating Header
8. Author Template
9. Error Template
10. Subscribe Overlay
11. Site Footer
*/
/* 1. Global - Set up the things
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2017-06-16 08:44:12 +00:00
@import "global.css";
2013-08-10 16:42:21 +00:00
2017-05-15 20:03:47 +00:00
body {
2017-06-13 12:48:06 +00:00
background: #f4f8fb;
2017-05-15 20:03:47 +00:00
}
2013-08-10 16:42:21 +00:00
2017-05-15 20:03:47 +00:00
.img {
display: block;
width: 100%;
height: 100%;
background-size: cover;
2017-08-02 08:41:14 +00:00
background-position: center center;
2017-06-16 08:44:12 +00:00
border-radius: 100%;
2017-05-15 20:03:47 +00:00
}
2013-08-10 16:42:21 +00:00
2017-05-15 20:03:47 +00:00
.hidden {
2017-06-16 08:44:12 +00:00
visibility: hidden;
2017-05-15 20:03:47 +00:00
position: absolute;
text-indent: -9999px;
}
2013-08-10 16:42:21 +00:00
2013-09-01 19:45:19 +00:00
2017-06-16 08:17:11 +00:00
/* 2. Layout - Page building blocks
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2013-09-01 19:45:19 +00:00
2017-05-15 20:03:47 +00:00
/* Full width page blocks */
.outer {
position: relative;
padding: 0 4vw;
2013-09-01 19:45:19 +00:00
}
2017-05-15 20:03:47 +00:00
/* Centered content container blocks */
.inner {
width: 100%;
2017-08-02 08:41:14 +00:00
max-width: 1040px;
margin: 0 auto;
2013-09-01 19:45:19 +00:00
}
2017-05-15 20:03:47 +00:00
/* Usage:
2013-09-01 19:45:19 +00:00
2017-05-15 20:03:47 +00:00
<div class="outer">
<div class="inner">
Centered content
</div>
</div>
2013-09-01 19:45:19 +00:00
2017-05-15 20:03:47 +00:00
*/
2013-08-10 16:42:21 +00:00
2017-06-16 08:17:11 +00:00
/* 3. Special Template Styles
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2013-08-10 16:42:21 +00:00
2017-05-15 20:03:47 +00:00
@media (min-width: 900px) {
2017-05-31 18:09:50 +00:00
.home-template .post-feed,
2017-06-13 12:48:06 +00:00
.tag-template .post-feed,
.author-template .post-feed {
margin-top: -70px;
padding-top: 0;
2017-05-15 20:03:47 +00:00
}
.home-template .site-nav {
position: relative;
top: -70px;
}
2013-08-10 16:42:21 +00:00
}
2017-06-16 08:17:11 +00:00
/* 4. Site Header
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2017-05-15 20:03:47 +00:00
.site-header {
position: relative;
padding-top: 12px;
padding-bottom: 12px;
color: #fff;
2017-06-12 09:01:00 +00:00
background: color(var(--darkgrey) l(-5%)) no-repeat center center;
2017-05-15 20:03:47 +00:00
background-size: cover;
}
2017-05-15 20:03:47 +00:00
.site-header:before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
2017-06-16 08:44:12 +00:00
display: block;
2017-05-15 20:03:47 +00:00
background: rgba(0,0,0,0.18);
2013-08-10 16:42:21 +00:00
}
2017-05-15 20:03:47 +00:00
.site-header:after {
content: "";
position: absolute;
2017-06-13 12:48:06 +00:00
top: 0;
2017-05-15 20:03:47 +00:00
right: 0;
2017-06-13 12:48:06 +00:00
bottom: auto;
left: 0;
2017-05-15 20:03:47 +00:00
z-index: 10;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-13 12:48:06 +00:00
height: 80px;
background: linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));
}
2017-05-15 20:03:47 +00:00
.site-header.no-cover:before,
.site-header.no-cover:after {
display: none;
}
2017-05-15 20:03:47 +00:00
.site-header-content {
display: flex;
flex-direction: column;
justify-content: center;
2017-06-13 12:48:06 +00:00
align-items: center;
2017-05-15 20:03:47 +00:00
min-height: 200px;
max-height: 450px;
2017-08-02 08:41:14 +00:00
padding: 10vw 4vw;
2017-05-15 20:03:47 +00:00
text-align: center;
}
2017-05-15 20:03:47 +00:00
.site-title {
margin: 0;
padding: 0;
font-size: 3.8rem;
font-weight: 700;
}
2017-05-15 20:03:47 +00:00
.site-logo {
max-height: 45px;
}
2017-05-15 20:03:47 +00:00
.site-description {
margin: 0;
padding: 5px 0;
font-size: 2.2rem;
font-weight: 300;
letter-spacing: 0.5px;
opacity: 0.8;
}
2017-06-16 12:16:22 +00:00
@media (max-width: 500px) {
.site-title {
font-size: 3rem;
}
.site-description {
font-size: 1.8rem;
}
}
2017-06-16 08:17:11 +00:00
/* 5. Site Navigation
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2014-07-12 17:56:26 +00:00
2017-05-15 20:03:47 +00:00
.site-nav {
position: relative;
z-index: 300;
2017-05-15 20:03:47 +00:00
display: flex;
justify-content: space-between;
2017-06-16 08:44:12 +00:00
align-items: flex-start;
2017-05-15 20:03:47 +00:00
height: 40px;
2017-08-02 08:41:14 +00:00
overflow-y: hidden;
2017-06-14 11:16:16 +00:00
font-size: 1.2rem;
}
2017-05-15 20:03:47 +00:00
.site-nav-left {
display: flex;
align-items: center;
2017-06-16 08:44:12 +00:00
overflow-x: auto;
overflow-y: hidden;
2017-05-15 20:03:47 +00:00
margin-right: 10px;
padding-bottom: 80px;
2017-06-14 11:16:16 +00:00
letter-spacing: 0.4px;
2017-05-15 20:03:47 +00:00
white-space: nowrap;
2017-06-16 09:44:06 +00:00
-webkit-overflow-scrolling: touch;
2017-05-15 20:03:47 +00:00
-ms-overflow-scrolling: touch;
}
2017-05-15 20:03:47 +00:00
/* Site Nav Hack Explanation (above):
What's happening above it .site-nav-left is set to overflow-x and allow sideways scrolling, so that when there isn't enough space for all nav items (either due to lots of nav items, or a small viewport), you can still scroll side-to-side to reach them.
The knock-on effect of this is ugly browser-scroll bars at the bottom, so 80px of padding-bottom and a 40px fixed height parent (.site-nav) hides that entirely. Slightly hacky code. But nice clean end-result.
*/
.site-nav-logo {
2017-06-05 11:19:29 +00:00
flex-shrink: 0;
2017-05-15 20:03:47 +00:00
display: block;
margin-right: 24px;
padding: 9px 0;
2017-06-16 08:44:12 +00:00
color: #fff;
2017-06-12 09:01:00 +00:00
font-size: 1.7rem;
2017-06-14 11:16:16 +00:00
line-height: 1em;
2017-06-12 09:01:00 +00:00
font-weight: bold;
letter-spacing: -0.5px;
}
.site-nav-logo:hover {
text-decoration: none;
2013-10-31 18:09:15 +00:00
}
2017-05-15 20:03:47 +00:00
.site-nav-logo img {
display: block;
width: auto;
2017-06-16 08:44:12 +00:00
height: 21px;
2013-10-31 18:09:15 +00:00
}
.nav {
2017-05-15 20:03:47 +00:00
display: flex;
margin: 0 0 0 -12px;
padding: 0;
list-style: none;
2014-09-25 13:41:04 +00:00
}
.nav li {
2017-05-15 20:03:47 +00:00
display: block;
2014-09-25 13:41:04 +00:00
margin: 0;
2017-05-15 20:03:47 +00:00
padding: 0;
text-transform: uppercase;
2014-09-25 13:41:04 +00:00
}
.nav li a {
2017-05-15 20:03:47 +00:00
display: block;
margin: 0;
padding: 10px 12px;
color: #fff;
opacity: 0.8;
}
.nav li a:hover {
2017-05-15 20:03:47 +00:00
text-decoration: none;
2017-06-16 08:44:12 +00:00
opacity: 1;
}
2017-05-15 20:03:47 +00:00
.site-nav-right {
2017-06-16 08:44:12 +00:00
flex-shrink: 0;
2017-05-15 20:03:47 +00:00
display: flex;
align-items: center;
2017-05-31 18:09:50 +00:00
height: 40px;
}
2017-05-15 20:03:47 +00:00
.social-links {
2017-06-16 08:44:12 +00:00
flex-shrink: 0;
2017-05-15 20:03:47 +00:00
display: flex;
align-items: center;
}
2017-05-15 20:03:47 +00:00
.social-links a:last-of-type {
padding-right: 20px;
}
2017-05-15 20:03:47 +00:00
.social-link {
display: flex;
justify-content: center;
2017-06-16 08:44:12 +00:00
align-items: center;
2017-05-15 20:03:47 +00:00
margin: 0;
padding: 10px;
color: #fff;
opacity: 0.8;
}
2017-05-15 20:03:47 +00:00
.social-link:hover {
opacity: 1;
}
2017-05-15 20:03:47 +00:00
.social-link svg {
height: 1.8rem;
fill: #fff;
}
2017-05-15 20:03:47 +00:00
.social-link-fb svg {
height: 1.5rem;
}
2017-06-13 12:48:06 +00:00
.social-link-wb svg {
height: 1.6rem;
}
.social-link-wb svg path {
stroke: #fff;
}
.social-link-rss svg {
height: 1.9rem;
}
2017-05-15 20:03:47 +00:00
.subscribe-button {
display: block;
padding: 4px 10px;
border: #fff 1px solid;
color: #fff;
font-size: 1.2rem;
line-height: 1em;
border-radius: 10px;
opacity: 0.8;
}
2017-05-15 20:03:47 +00:00
.subscribe-button:hover {
text-decoration: none;
opacity: 1;
}
2017-05-15 20:03:47 +00:00
.rss-button {
opacity: 0.8;
}
2017-05-15 20:03:47 +00:00
.rss-button:hover {
opacity: 1;
}
2017-05-15 20:03:47 +00:00
.rss-button svg {
2017-06-16 08:44:12 +00:00
height: 2.1rem;
2017-08-02 08:41:14 +00:00
margin-bottom: 1px;
2017-05-15 20:03:47 +00:00
fill: #fff;
}
2017-06-16 12:16:22 +00:00
@media (max-width: 700px) {
.site-header {
padding-right: 0;
2017-08-02 08:41:14 +00:00
padding-left: 0;
2017-06-16 12:16:22 +00:00
}
.site-nav-left {
margin-right: 0;
2017-08-02 08:41:14 +00:00
padding-left: 4vw;
2017-06-16 12:16:22 +00:00
}
.site-nav-right {
display: none;
}
}
2017-06-16 08:17:11 +00:00
/* 6. Post Feed
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
.post-feed {
position: relative;
display: flex;
flex-wrap: wrap;
margin: 0 -20px;
padding: 40px 0 0 0;
}
2017-05-15 20:03:47 +00:00
.post-card {
2017-06-16 08:44:12 +00:00
flex: 1 1 300px;
2017-05-16 09:26:08 +00:00
display: flex;
flex-direction: column;
2017-08-02 08:41:14 +00:00
min-height: 300px;
2017-06-16 08:44:12 +00:00
overflow: hidden;
2017-06-05 11:19:29 +00:00
margin: 0 20px 40px;
2017-05-15 20:03:47 +00:00
background: #fff center center;
background-size: cover;
border-radius: 5px;
2017-06-16 08:44:12 +00:00
box-shadow: rgba(39,44,49,0.06) 8px 14px 38px, rgba(39, 44, 49, 0.03) 1px 3px 8px;
2017-05-15 20:03:47 +00:00
transition: all 0.5s ease;
}
2017-05-15 20:03:47 +00:00
.post-card:hover {
box-shadow: 0 0 1px rgba(39,44,49,0.10), 0 3px 16px rgba(39, 44, 49,0.07);
transition: all 0.3s ease;
2017-06-16 08:44:12 +00:00
transform: translate3D(0, -1px, 0);
2017-05-15 20:03:47 +00:00
}
2017-05-15 20:03:47 +00:00
.post-card-image-link {
position: relative;
}
2017-05-15 20:03:47 +00:00
.post-card-image {
width: auto;
height: 200px;
background: var(--lightgrey) no-repeat center center;
background-size: cover;
}
2017-05-15 20:03:47 +00:00
.post-card-content-link {
position: relative;
display: block;
2017-05-15 20:03:47 +00:00
padding: 25px 25px 0;
color: var(--darkgrey);
}
2017-05-15 20:03:47 +00:00
.post-card-content-link:hover {
text-decoration: none;
}
2017-06-08 07:19:22 +00:00
.post-card-tags {
display: block;
margin-bottom: 4px;
color: var(--midgrey);
font-size: 1.2rem;
line-height: 1.15em;
font-weight: 500;
2017-06-16 08:44:12 +00:00
letter-spacing: 0.5px;
text-transform: uppercase;
2017-06-08 07:19:22 +00:00
}
2017-05-15 20:03:47 +00:00
.post-card-title {
margin-top: 0;
}
2017-05-15 20:03:47 +00:00
.post-card-content {
2017-06-13 17:51:08 +00:00
flex-grow: 1;
2017-05-15 20:03:47 +00:00
display: flex;
flex-direction: column;
justify-content: space-between;
}
2017-05-15 20:03:47 +00:00
.post-card-excerpt {
font-family: Georgia, serif;
}
2017-05-15 20:03:47 +00:00
.post-card-meta {
padding: 0 25px 25px;
}
2017-05-16 09:26:08 +00:00
.author-profile-image {
2017-06-16 08:44:12 +00:00
width: 25px;
height: 25px;
2017-08-02 08:41:14 +00:00
margin-right: 5px;
2017-05-16 09:26:08 +00:00
border-radius: 100%;
}
.post-card-author {
font-size: 1.3rem;
font-weight: 500;
2017-06-16 08:44:12 +00:00
letter-spacing: 0.5px;
text-transform: uppercase;
2017-05-16 09:26:08 +00:00
}
2017-05-31 18:09:50 +00:00
/* Special Styling for home page grid (below):
2017-05-15 20:03:47 +00:00
The first (most recent) post in the list is styled to be bigger than the others and take over the full width of the grid to give it more emphasis. Wrapped in a media query to make sure this only happens on large viewports / desktop-ish devices.
2017-05-15 20:03:47 +00:00
*/
2017-05-15 20:03:47 +00:00
@media (min-width: 795px) {
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) {
2017-05-15 20:03:47 +00:00
flex: 1 1 100%;
2017-05-16 09:26:08 +00:00
flex-direction: row;
2017-05-15 20:03:47 +00:00
}
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-image-link {
2017-06-13 17:51:08 +00:00
position: relative;
2017-05-15 20:03:47 +00:00
flex: 1 1 auto;
}
2013-08-28 16:41:32 +00:00
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-image {
2017-06-13 17:51:08 +00:00
position: absolute;
2017-05-15 20:03:47 +00:00
width: 100%;
height: 100%;
}
2015-02-27 14:48:15 +00:00
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-content {
2017-05-15 20:03:47 +00:00
flex: 0 1 357px;
}
2015-02-27 14:48:15 +00:00
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) h2 {
2017-05-15 20:03:47 +00:00
font-size: 2.6rem;
}
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) p {
2017-05-15 20:03:47 +00:00
font-size: 1.8rem;
line-height: 1.55em;
}
2013-08-10 16:42:21 +00:00
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-content-link {
2017-06-08 07:19:22 +00:00
padding: 30px 40px 0;
2017-05-15 20:03:47 +00:00
}
2013-08-20 16:53:02 +00:00
2017-06-16 12:16:22 +00:00
.home-template .post-feed .post-card:nth-child(6n+1):not(.no-image) .post-card-meta {
2017-06-08 07:19:22 +00:00
padding: 0 40px 30px;
2017-05-15 20:03:47 +00:00
}
}
2017-06-13 12:48:06 +00:00
.home-template .site-header:after {
display: none;
}
2017-05-15 20:03:47 +00:00
2017-05-31 18:09:50 +00:00
2017-06-16 12:16:22 +00:00
/* Adjust some margins for smaller screens */
@media (max-width: 650px) {
.post-feed {
padding-top: 5vw;
}
.post-card {
margin: 0 20px 5vw;
}
}
2017-05-31 18:09:50 +00:00
2017-06-16 08:17:11 +00:00
/* 7. Single Post
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2017-06-05 11:19:29 +00:00
.post-template .site-main,
.page-template .site-main {
padding-bottom: 4vw;
2017-05-15 20:03:47 +00:00
background: #fff;
}
2017-05-15 20:03:47 +00:00
.post-full {
position: relative;
z-index: 50;
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
/* ^ Required to make .post-full-content:before/after z-index stacking work */
2015-02-27 14:48:15 +00:00
2017-05-15 20:03:47 +00:00
.post-full-header {
2017-08-02 08:41:14 +00:00
max-width: 1040px;
2017-05-15 20:03:47 +00:00
margin: 0 auto;
2017-06-13 17:51:08 +00:00
padding: 6vw 3vw 3vw;
2017-05-15 20:03:47 +00:00
text-align: center;
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.post-full-meta {
display: flex;
justify-content: center;
2017-06-16 08:44:12 +00:00
align-items: center;
color: var(--midgrey);
2017-05-15 20:03:47 +00:00
font-size: 1.4rem;
2017-06-16 08:44:12 +00:00
font-weight: 600;
text-transform: uppercase;
2015-02-28 12:34:58 +00:00
}
2017-05-15 20:03:47 +00:00
.post-full-meta-date {
color: var(--blue);
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.post-full-title {
2017-06-13 12:48:06 +00:00
margin: 0;
2017-06-08 07:19:22 +00:00
color: color(var(--darkgrey) l(-5%));
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.date-divider {
display: inline-block;
margin: 0 6px 1px;
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.post-full-image {
2017-06-16 08:44:12 +00:00
height: 800px;
2017-08-02 08:41:14 +00:00
margin: 0 -10vw -165px;
2017-05-15 20:03:47 +00:00
background: var(--lightgrey) center center;
background-size: cover;
border-radius: 5px;
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
@media (max-width: 1170px) {
.post-full-image {
2017-06-16 08:44:12 +00:00
height: 600px;
2017-08-02 08:41:14 +00:00
margin: 0 -4vw -100px;
2017-06-05 11:19:29 +00:00
border-radius: 0;
2017-05-15 20:03:47 +00:00
}
2015-02-27 14:48:15 +00:00
}
2017-06-13 17:51:08 +00:00
@media (max-width: 800px) {
.post-full-image {
height: 400px;
}
}
2017-05-15 20:03:47 +00:00
.post-full-content {
position: relative;
2017-08-02 08:41:14 +00:00
min-height: 230px;
2017-05-15 20:03:47 +00:00
margin: 0 auto;
2017-06-16 08:44:12 +00:00
padding: 70px 100px 0;
font-family: Georgia, serif;
2017-05-15 20:03:47 +00:00
font-size: 2.2rem;
2017-05-31 18:09:50 +00:00
line-height: 1.6em;
2017-05-15 20:03:47 +00:00
background: #fff;
}
2015-02-28 12:34:58 +00:00
2017-06-05 11:19:29 +00:00
@media (max-width: 1170px) {
.post-full-content {
padding: 5vw 7vw 0;
}
}
@media (max-width: 800px) {
.post-full-content {
font-size: 1.9rem;
}
}
2017-05-15 20:03:47 +00:00
.post-full-content:before {
content: "";
position: absolute;
top: 15px;
left: -5px;
z-index: -1;
2017-06-16 08:44:12 +00:00
display: block;
width: 20px;
height: 200px;
2017-05-16 09:26:08 +00:00
background: rgba(39,44,49,0.15);
2017-05-15 20:03:47 +00:00
filter: blur(5px);
2017-06-16 08:44:12 +00:00
transform: rotate(-5deg);
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.post-full-content:after {
content: "";
position: absolute;
top: 15px;
right: -5px;
z-index: -1;
2017-06-16 08:44:12 +00:00
display: block;
width: 20px;
height: 200px;
2017-05-16 09:26:08 +00:00
background: rgba(39,44,49,0.15);
2017-05-15 20:03:47 +00:00
filter: blur(5px);
2017-06-16 08:44:12 +00:00
transform: rotate(5deg);
2015-02-28 12:34:58 +00:00
}
2017-06-13 12:48:06 +00:00
.no-image .post-full-content {
padding-top: 0;
}
2017-06-05 11:19:29 +00:00
.no-image .post-full-content:before,
.no-image .post-full-content:after {
display: none;
}
2017-05-31 18:09:50 +00:00
.kg-card-markdown {
display: flex;
flex-direction: column;
align-items: center;
max-width: 920px;
}
2017-06-08 07:19:22 +00:00
.post-full-content p,
.post-full-content ul,
.post-full-content ol,
.post-full-content dl,
.post-full-content pre,
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
2017-06-15 14:03:19 +00:00
.post-full-content h6,
.post-full-comments,
.footnotes {
2017-05-31 18:09:50 +00:00
min-width: 100%;
}
2017-06-05 11:19:29 +00:00
.post-template .kg-card-markdown > p:first-child {
font-size: 1.25em;
line-height: 1.5em;
2017-05-16 09:26:08 +00:00
}
2017-05-31 18:09:50 +00:00
.post-full-content a {
2017-06-05 11:19:29 +00:00
color: #000;
2017-05-31 18:09:50 +00:00
box-shadow: var(--blue) 0 -1px 0 inset;
}
.post-full-content a:hover {
2017-06-05 11:19:29 +00:00
color: var(--blue);
2017-05-31 18:09:50 +00:00
text-decoration: none;
}
2017-06-08 07:19:22 +00:00
.post-full-content strong,
.post-full-content em {
color: color(var(--darkgrey) l(-5%));
}
.post-full-content small {
display: inline-block;
line-height: 1.6em;
}
.post-full-content li:first-child {
margin-top: 0;
}
2017-07-27 07:15:19 +00:00
.post-full-content img,
.post-full-content video {
display: block;
2017-06-16 08:44:12 +00:00
max-width: 1040px;
2017-08-02 08:41:14 +00:00
margin: 1.5em auto;
2017-05-31 18:09:50 +00:00
}
@media (max-width: 1040px) {
2017-07-27 07:15:19 +00:00
.post-full-content img,
.post-full-content video {
width: 100%;
}
}
2017-05-31 18:09:50 +00:00
/* Full bleed images (#full)
2017-05-31 18:09:50 +00:00
Super neat trick courtesy of @JoelDrapper
Usage (In Ghost edtior):
![img](/some/image.jpg#full)
2017-05-31 18:09:50 +00:00
*/
.post-full-content img[src$="#full"] {
width: 100vw;
max-width: none;
2017-05-31 18:09:50 +00:00
}
/* Image captions
Usage (In Ghost editor):
![img](/some/image.jpg)
<small>Your image caption</small>
*/
.post-full-content br + small {
display: block;
margin-top: -3em;
}
2017-07-27 09:12:04 +00:00
.post-full-content iframe {
margin: 0 auto 1.5em;
}
2017-05-15 20:03:47 +00:00
.post-full-content blockquote {
2017-05-31 18:09:50 +00:00
margin: 0 0 1.5em 0;
2017-06-05 11:19:29 +00:00
padding: 1.5em 0;
2017-05-15 20:03:47 +00:00
border: 0;
2017-06-16 08:44:12 +00:00
color: var(--blue);
2017-05-15 20:03:47 +00:00
font-size: 3rem;
2017-05-31 18:09:50 +00:00
line-height: 1.6em;
2017-06-16 08:44:12 +00:00
text-align: center;
2015-02-27 14:48:15 +00:00
}
2017-05-31 18:09:50 +00:00
.post-full-content blockquote:before {
content: open-quote;
}
.post-full-content blockquote p {
margin: 0;
}
2017-05-15 20:03:47 +00:00
@media (min-width: 1000px) {
.post-full-content blockquote {
2017-06-16 08:44:12 +00:00
width: 100vw;
2017-08-02 08:41:14 +00:00
max-width: 1060px;
2017-05-15 20:03:47 +00:00
}
2015-02-27 14:48:15 +00:00
}
2017-06-05 11:19:29 +00:00
.post-full-content blockquote + blockquote {
padding-top: 0;
2014-07-22 11:21:33 +00:00
}
2017-06-08 07:19:22 +00:00
.post-full-content code {
padding: 0 5px 2px;
font-size: 0.8em;
line-height: 1em;
font-weight: 400!important;
background: var(--whitegrey);
border-radius: 3px;
}
.post-full-content pre {
2017-08-02 08:41:14 +00:00
max-width: 100%;
2017-06-16 08:44:12 +00:00
overflow-x: auto;
2017-06-08 07:19:22 +00:00
margin: 1.5em 0 3em;
padding: 20px;
border: color(var(--darkgrey) l(-10%)) 1px solid;
2017-06-16 08:44:12 +00:00
color: var(--whitegrey);
2017-06-08 07:19:22 +00:00
font-size: 1.4rem;
line-height: 1.5em;
background: color(var(--darkgrey) l(-3%));
border-radius: 5px;
}
.post-full-content pre code {
padding: 0;
font-size: inherit;
line-height: inherit;
background: transparent;
}
2017-06-05 11:19:29 +00:00
.post-full-content .fluid-width-video-wrapper {
margin: 1.5em 0 3em;
}
2017-06-16 12:16:22 +00:00
.post-full-content hr {
margin: 4vw 0;
}
2017-06-08 07:19:22 +00:00
.post-full-content hr:after {
content: "";
position: absolute;
top: -15px;
left: 50%;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-08 07:19:22 +00:00
width: 1px;
2017-06-16 08:44:12 +00:00
height: 30px;
2017-08-02 08:41:14 +00:00
margin-left: -10px;
2017-06-08 07:19:22 +00:00
background: color(var(--lightgrey) l(+10%));
box-shadow: #fff 0 0 0 5px;
transform: rotate(45deg);
}
.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6 {
margin-top: -75px;
2017-08-02 08:41:14 +00:00
padding-top: 75px;
2017-06-08 07:19:22 +00:00
color: color(var(--darkgrey) l(-5%));
2017-06-16 08:44:12 +00:00
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
2017-06-08 07:19:22 +00:00
}
.post-full-content h1 {
font-size: 5rem;
}
.post-full-content h2 {
font-size: 3.5rem;
}
.post-full-content h3 {
font-size: 2.5rem;
}
.post-full-content h4 {
font-size: 1.6rem;
}
.post-full-content h5 {
font-size: 1.4rem;
}
.post-full-content h6 {
font-size: 1.4rem;
}
2017-06-15 14:03:19 +00:00
.footnotes-sep {
margin-bottom: 30px;
}
.footnotes {
font-size: 1.5rem;
}
.footnotes p {
margin: 0;
}
.footnote-backref {
color: var(--blue) !important;
font-size: 1.2rem;
font-weight: bold;
2017-06-16 08:44:12 +00:00
text-decoration: none !important;
box-shadow: none !important;
2017-06-15 14:03:19 +00:00
}
2017-06-16 12:16:22 +00:00
/* Some grouped styles for smaller viewports */
@media (max-width: 500px) {
.post-full-meta {
font-size: 1.2rem;
line-height: 1.3em;
}
.post-full-title {
font-size: 2.9rem;
}
.post-full-image {
height: 350px;
margin-bottom: 4vw;
}
.post-full-content {
padding: 0;
}
.post-full-content:before,
.post-full-content:after {
display: none;
}
.post-full-content h1 {
font-size: 2.9rem;
}
.post-full-content h2 {
font-size: 2.9rem;
}
.post-full-content h3 {
font-size: 2rem;
}
}
/* Tables */
.post-full-content table {
display: inline-block;
width: auto;
max-width: 100%;
overflow-x: auto;
margin: 0.5em 0 2.5em;
2017-08-02 08:41:14 +00:00
border-spacing: 0;
border-collapse: collapse;
vertical-align: top;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: 1.6rem;
2017-08-02 08:41:14 +00:00
white-space: nowrap;
}
.post-full-content table {
background: radial-gradient(ellipse at left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, radial-gradient(ellipse at right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 100% center;
background-size: 10px 100%, 10px 100%;
background-attachment: scroll, scroll;
background-repeat: no-repeat;
2017-08-02 08:41:14 +00:00
-webkit-overflow-scrolling: touch;
}
.post-full-content table td:first-child {
background-image: linear-gradient(to right, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
background-size: 20px 100%;
2017-08-02 08:41:14 +00:00
background-repeat: no-repeat;
}
.post-full-content table td:last-child {
background-image: linear-gradient(to left, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
background-size: 20px 100%;
2017-08-02 08:41:14 +00:00
background-position: 100% 0;
background-repeat: no-repeat;
}
.post-full-content table th {
color: var(--darkgrey);
2017-08-02 08:41:14 +00:00
font-size: 1.2rem;
font-weight: 700;
2017-08-02 08:41:14 +00:00
letter-spacing: 0.2px;
text-align: left;
text-transform: uppercase;
background-color: color(var(--whitegrey) l(+4%));
}
.post-full-content table th,
.post-full-content table td {
padding: 6px 12px;
border: color(var(--whitegrey) l(-1%) s(-5%)) 1px solid;
}
2017-06-16 08:17:11 +00:00
/* 7.1. Subscribe Form
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
.subscribe-form {
2017-06-05 11:19:29 +00:00
margin: 1.5em 0;
2017-06-08 07:19:22 +00:00
padding: 6.5vw 7vw 7vw;
border: color(var(--whitegrey) l(+2%)) 1px solid;
2017-05-15 20:03:47 +00:00
text-align: center;
2017-06-05 11:19:29 +00:00
background: color(var(--whitegrey) l(+4%));
2017-06-08 07:19:22 +00:00
border-radius: 7px;
}
2017-05-15 20:03:47 +00:00
.subscribe-form-title {
margin: 0 0 3px 0;
padding: 0;
2017-06-16 08:44:12 +00:00
color: var(--darkgrey);
2017-06-08 07:19:22 +00:00
font-size: 3.5rem;
2017-06-05 11:19:29 +00:00
line-height: 1;
2017-05-15 20:03:47 +00:00
font-weight: 700;
}
2017-05-15 20:03:47 +00:00
.subscribe-form p {
2017-06-08 07:19:22 +00:00
margin-bottom: 1em;
2017-06-16 08:44:12 +00:00
color: var(--midgrey);
2017-06-05 11:19:29 +00:00
font-size: 2.2rem;
2017-05-15 20:03:47 +00:00
line-height: 1.55em;
2017-06-05 11:19:29 +00:00
letter-spacing: 0.2px;
2015-02-28 12:34:58 +00:00
}
2017-05-15 20:03:47 +00:00
.subscribe-form form {
display: flex;
justify-content: center;
align-items: center;
2017-06-16 08:44:12 +00:00
max-width: 420px;
2017-08-02 08:41:14 +00:00
margin: 0 auto;
2015-02-27 14:48:15 +00:00
}
2017-05-15 20:03:47 +00:00
.subscribe-form .form-group {
flex-grow: 1;
}
2017-05-15 20:03:47 +00:00
.subscribe-email {
display: block;
width: 100%;
2017-08-02 08:41:14 +00:00
padding: 10px;
2017-05-15 20:03:47 +00:00
border: color(var(--lightgrey) l(+7%)) 1px solid;
color: var(--midgrey);
font-size: 1.8rem;
line-height: 1em;
font-weight: normal;
user-select: text;
border-radius: 5px;
transition: border-color 0.15s linear;
-webkit-appearance: none;
}
2017-05-15 20:03:47 +00:00
.subscribe-email:focus {
outline: 0;
border-color: color(var(--lightgrey) l(-2%));
2013-08-20 16:53:02 +00:00
}
2017-05-15 20:03:47 +00:00
.subscribe-form button {
display: inline-block;
2017-08-02 08:41:14 +00:00
height: 41px;
2017-05-15 20:03:47 +00:00
margin: 0 0 0 10px;
padding: 0 20px;
2017-06-16 08:44:12 +00:00
outline: none;
color: #fff;
2017-06-05 11:19:29 +00:00
font-size: 1.5rem;
2017-05-15 20:03:47 +00:00
line-height: 37px;
2014-07-12 17:56:26 +00:00
font-weight: 400;
2017-05-15 20:03:47 +00:00
text-align: center;
2017-06-16 08:44:12 +00:00
text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
2017-05-15 20:03:47 +00:00
background: linear-gradient(
color(var(--blue) whiteness(+7%)),
color(var(--blue) lightness(-7%) saturation(-10%)) 60%,
color(var(--blue) lightness(-7%) saturation(-10%)) 90%,
color(var(--blue) lightness(-4%) saturation(-10%))
);
2017-06-16 08:44:12 +00:00
border-radius: 5px;
2017-05-15 20:03:47 +00:00
box-shadow: 0 0 0 1px inset rgba(0,0,0,0.14);
2017-05-15 20:03:47 +00:00
-webkit-font-smoothing: subpixel-antialiased;
}
2017-05-15 20:03:47 +00:00
.subscribe-form button:active,
.subscribe-form button:focus {
background: color(var(--blue) lightness(-9%) saturation(-10%));
}
2017-06-16 12:16:22 +00:00
@media (max-width: 650px) {
.subscribe-form-title {
font-size: 2.4rem;
}
.subscribe-form p {
font-size: 1.6rem;
}
}
@media (max-width: 500px) {
.subscribe-form form {
flex-direction: column;
}
.subscribe-form .form-group {
width: 100%;
}
.subscribe-form button {
width: 100%;
margin: 10px 0 0 0;
}
}
2014-07-11 10:22:28 +00:00
2017-06-16 08:17:11 +00:00
/* 7.2. Post Footer
2017-06-05 11:19:29 +00:00
/* ---------------------------------------------------------- */
.post-full-footer {
display: flex;
justify-content: space-between;
2017-06-15 14:03:19 +00:00
align-items: center;
2017-08-02 08:41:14 +00:00
max-width: 840px;
2017-06-05 11:19:29 +00:00
margin: 0 auto;
padding: 3vw 0 6vw 0;
}
.author-card {
display: flex;
align-items: center;
}
2017-06-15 14:03:19 +00:00
.author-card .author-profile-image {
2017-06-16 08:44:12 +00:00
width: 60px;
height: 60px;
2017-08-02 08:41:14 +00:00
margin-right: 15px;
2017-06-05 11:19:29 +00:00
}
2017-06-15 14:03:19 +00:00
.author-card-name {
margin: 0 0 2px 0;
2017-06-05 11:19:29 +00:00
padding: 0;
font-size: 2rem;
}
2017-06-15 14:03:19 +00:00
.author-card-name a {
2017-06-05 11:19:29 +00:00
color: var(--darkgrey);
font-weight: 700;
}
2017-06-15 14:03:19 +00:00
.author-card-name a:hover {
2017-06-05 11:19:29 +00:00
text-decoration: none;
}
.author-card-content p {
margin: 0;
color: var(--midgrey);
2017-06-16 08:44:12 +00:00
line-height: 1.3em;
2017-06-05 11:19:29 +00:00
}
2017-06-15 14:03:19 +00:00
.post-full-footer-right {
flex-shrink: 0;
margin-left: 20px;
}
.author-card-button {
display: block;
padding: 9px 16px;
2017-06-16 08:44:12 +00:00
border: color(var(--midgrey) l(+20%)) 1px solid;
color: var(--midgrey);
2017-06-15 14:03:19 +00:00
font-size: 1.2rem;
line-height: 1;
font-weight: 500;
border-radius: 20px;
transition: all ease 0.2s;
}
.author-card-button:hover {
border-color: var(--blue);
color: var(--blue);
text-decoration: none;
}
2017-06-05 11:19:29 +00:00
2017-06-16 08:17:11 +00:00
/* 7.3. Comments
2017-06-05 11:19:29 +00:00
/* ---------------------------------------------------------- */
.post-full-comments {
2017-06-16 08:44:12 +00:00
max-width: 840px;
2017-08-02 08:41:14 +00:00
margin: 0 auto;
2017-06-05 11:19:29 +00:00
}
2017-06-16 08:17:11 +00:00
/* 7.4. Related posts
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
.read-next-feed {
display: flex;
flex-wrap: wrap;
2017-06-12 09:01:00 +00:00
margin: 0 -20px;
padding: 40px 0 0 0;
2014-07-11 10:22:28 +00:00
}
2013-08-20 16:53:02 +00:00
2017-05-15 20:03:47 +00:00
.read-next-card {
position: relative;
2017-05-15 20:03:47 +00:00
flex: 1 1 300px;
2017-05-31 18:09:50 +00:00
display: flex;
flex-direction: column;
2017-06-16 08:44:12 +00:00
overflow: hidden;
2017-06-12 09:01:00 +00:00
margin: 0 20px 40px;
2017-05-15 20:03:47 +00:00
padding: 25px;
color: #fff;
background: var(--darkgrey) center center;
background-size: cover;
border-radius: 5px;
2017-06-16 08:44:12 +00:00
box-shadow: rgba(39,44,49,0.06) 8px 14px 38px, rgba(39, 44, 49, 0.03) 1px 3px 8px;
}
2017-05-15 20:03:47 +00:00
.read-next-card:before {
content: "";
position: absolute;
2017-05-15 20:03:47 +00:00
top: 0;
right: 0;
bottom: 0;
left: 0;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-13 17:51:08 +00:00
background: linear-gradient(135deg, rgba(0,40,60,0.8) 0%,rgba(0,20,40,0.7) 100%);
2017-05-31 18:09:50 +00:00
border-radius: 5px;
2017-06-16 08:44:12 +00:00
2017-05-31 18:09:50 +00:00
backdrop-filter: blur(2px);
}
2017-05-15 20:03:47 +00:00
.read-next-card-header {
position: relative;
z-index: 50;
2017-06-13 17:51:08 +00:00
padding-top: 20px;
2017-05-15 20:03:47 +00:00
text-align: center;
}
2017-06-13 17:51:08 +00:00
.read-next-card-header-sitetitle {
display: block;
font-size: 1.3rem;
line-height: 1.3em;
opacity: 0.8;
}
2017-05-15 20:03:47 +00:00
.read-next-card-header-title {
margin: 0;
2017-06-16 08:44:12 +00:00
padding: 0 20px;
color: #fff;
2017-05-15 20:03:47 +00:00
font-size: 3rem;
line-height: 1.2em;
letter-spacing: 1px;
}
2017-06-13 17:51:08 +00:00
.read-next-card-header-title a {
color: #fff;
font-weight: 300;
text-decoration: none;
}
.read-next-card-header-title a:hover {
text-decoration: none;
}
2017-06-12 09:01:00 +00:00
.read-next-divider {
2017-06-13 12:48:06 +00:00
position: relative;
2017-06-12 09:01:00 +00:00
display: flex;
justify-content: center;
height: 80px;
}
.read-next-divider svg {
2017-06-13 17:51:08 +00:00
width: 40px;
2017-06-12 09:01:00 +00:00
stroke: #fff;
2017-08-02 08:41:14 +00:00
fill: transparent;
2017-06-13 17:51:08 +00:00
stroke-width: 0.5px;
2017-06-13 12:48:06 +00:00
stroke-opacity: 0.65;
2017-06-12 09:01:00 +00:00
}
2017-05-15 20:03:47 +00:00
.read-next-card-content {
position: relative;
z-index: 50;
2017-06-16 08:44:12 +00:00
flex-grow: 1;
display: flex;
2017-05-15 20:03:47 +00:00
font-size: 1.7rem;
2013-08-20 16:53:02 +00:00
}
2017-06-13 17:51:08 +00:00
.read-next-card-content ul {
2017-05-31 18:09:50 +00:00
display: flex;
flex-direction: column;
2017-06-12 09:01:00 +00:00
margin: 0 auto;
2017-06-13 17:51:08 +00:00
padding: 0;
2017-06-16 08:44:12 +00:00
list-style: none;
2017-08-02 08:41:14 +00:00
text-align: center;
2014-03-22 14:15:41 +00:00
}
2017-05-15 20:03:47 +00:00
.read-next-card-content li {
2017-06-13 17:51:08 +00:00
margin: 0;
padding: 0;
font-size: 1.6rem;
2017-06-12 09:01:00 +00:00
line-height: 1.25em;
2017-05-15 20:03:47 +00:00
font-weight: 200;
2017-06-16 08:44:12 +00:00
letter-spacing: -0.5px;
}
2017-05-15 20:03:47 +00:00
.read-next-card-content li a {
2017-06-13 17:51:08 +00:00
display: block;
padding: 20px 0;
border-bottom: rgba(255,255,255,0.3) 1px solid;
2017-08-02 08:41:14 +00:00
vertical-align: top;
2017-06-12 09:01:00 +00:00
color: #fff;
2017-06-16 08:44:12 +00:00
font-weight: 500;
2017-06-12 09:01:00 +00:00
transition: opacity 0.3s ease;
2017-06-13 17:51:08 +00:00
}
.read-next-card-content li:first-of-type a {
padding-top: 10px;
2017-06-12 09:01:00 +00:00
}
.read-next-card-content li a:hover {
opacity: 1;
}
2017-06-13 17:51:08 +00:00
.read-next-card-footer {
position: relative;
margin: 15px 0 3px 0;
text-align: center;
}
.read-next-card-footer a {
color: #fff;
}
2017-06-16 08:17:11 +00:00
/* 7.5. Floating Header
2017-05-15 20:03:47 +00:00
/* ---------------------------------------------------------- */
2017-05-15 20:03:47 +00:00
.floating-header {
visibility: hidden;
2017-06-16 08:44:12 +00:00
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1000;
2017-05-15 20:03:47 +00:00
display: flex;
align-items: center;
2017-06-14 11:16:16 +00:00
height: 60px;
2017-05-15 20:03:47 +00:00
border-bottom: rgba(0,0,0,0.06) 1px solid;
background: rgba(255,255,255,0.95);
transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
2017-06-16 08:44:12 +00:00
transform: translate3d(0, -120%, 0);
2014-07-21 18:37:05 +00:00
}
2017-05-15 20:03:47 +00:00
.floating-active {
visibility: visible;
transition: all 500ms cubic-bezier(0.22, 1, 0.27, 1);
2017-06-16 08:44:12 +00:00
transform: translate3d(0, 0, 0);
2014-01-31 07:35:24 +00:00
}
2017-05-15 20:03:47 +00:00
.floating-header-logo {
2017-06-16 08:44:12 +00:00
overflow: hidden;
2017-06-14 11:16:16 +00:00
margin: 0 0 0 20px;
2017-06-15 14:03:19 +00:00
font-size: 1.6rem;
2017-06-14 11:16:16 +00:00
line-height: 1em;
letter-spacing: -1px;
2017-05-15 20:03:47 +00:00
text-overflow: ellipsis;
2017-06-16 08:44:12 +00:00
white-space: nowrap;
}
2017-05-15 20:03:47 +00:00
.floating-header-logo a {
display: flex;
align-items: center;
color: var(--darkgrey);
line-height: 1.1em;
2017-08-02 08:41:14 +00:00
font-weight: 700;
}
2017-05-15 20:03:47 +00:00
.floating-header-logo a:hover {
text-decoration: none;
}
2017-05-15 20:03:47 +00:00
.floating-header-logo img {
2017-06-16 08:44:12 +00:00
max-height: 20px;
2017-08-02 08:41:14 +00:00
margin: 0 10px 0 0;
2015-03-23 10:21:28 +00:00
}
2017-05-15 20:03:47 +00:00
.floating-header-divider {
margin: 0 5px;
line-height: 1em;
2015-03-23 10:21:28 +00:00
}
2017-05-15 20:03:47 +00:00
.floating-header-title {
flex: 1;
2017-06-16 08:44:12 +00:00
overflow: hidden;
2015-03-23 10:21:28 +00:00
margin: 0;
2017-06-16 08:44:12 +00:00
color: #2e2e2e;
2017-06-15 14:03:19 +00:00
font-size: 1.6rem;
line-height: 1.3em;
2017-06-16 08:44:12 +00:00
font-weight: bold;
2017-05-15 20:03:47 +00:00
text-overflow: ellipsis;
2017-06-16 08:44:12 +00:00
white-space: nowrap;
2015-03-23 10:21:28 +00:00
}
2017-05-15 20:03:47 +00:00
.floating-header-share {
display: flex;
justify-content: flex-end;
align-items: center;
padding-left: 2%;
font-size: 1.3rem;
line-height: 1;
}
2017-05-15 20:03:47 +00:00
.floating-header-share a {
display: flex;
justify-content: center;
2017-06-16 08:44:12 +00:00
align-items: center;
}
2017-05-15 20:03:47 +00:00
.floating-header-share svg {
width: auto;
2017-06-16 08:44:12 +00:00
height: 16px;
fill: #fff;
}
2017-05-15 20:03:47 +00:00
.floating-header-share-label {
flex-shrink: 0;
display: flex;
align-items: center;
margin-right: 10px;
color: rgba(0,0,0,0.7);
font-weight: 500;
}
2017-05-15 20:03:47 +00:00
.floating-header-share-label svg {
width: 18px;
height: 18px;
2017-08-02 08:41:14 +00:00
margin: 0 5px 0 10px;
2017-05-15 20:03:47 +00:00
stroke: rgba(0,0,0,0.7);
transform: rotate(90deg);
}
2017-05-15 20:03:47 +00:00
.floating-header-share-tw,
.floating-header-share-fb {
display: block;
2017-06-16 08:44:12 +00:00
align-items: center;
2017-06-14 11:16:16 +00:00
width: 60px;
height: 60px;
2017-06-16 08:44:12 +00:00
color: #fff;
2017-06-14 11:16:16 +00:00
line-height: 48px;
2017-05-15 20:03:47 +00:00
text-align: center;
transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}
2017-05-15 20:03:47 +00:00
.floating-header-share-tw {
background: #33b1ff;
}
2017-05-15 20:03:47 +00:00
.floating-header-share-fb {
background: #005e99;
}
2017-06-14 11:16:16 +00:00
.progress {
position: absolute;
2017-06-16 08:44:12 +00:00
right: 0;
2017-06-14 11:16:16 +00:00
bottom: -1px;
left: 0;
width: 100%;
2017-06-15 14:03:19 +00:00
height: 2px;
2017-06-14 11:16:16 +00:00
border: none;
color: var(--blue);
background: transparent;
2017-06-16 08:44:12 +00:00
2017-06-14 11:16:16 +00:00
appearance: none;
}
.progress::-webkit-progress-bar {
2017-06-16 08:44:12 +00:00
background-color: transparent;
2017-06-14 11:16:16 +00:00
}
.progress::-webkit-progress-value {
2017-06-16 08:44:12 +00:00
background-color: var(--blue);
2017-06-14 11:16:16 +00:00
}
.progress-container {
2017-06-16 08:44:12 +00:00
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 2px;
background-color: transparent;
2017-06-14 11:16:16 +00:00
}
.progress-bar {
2017-06-16 08:44:12 +00:00
display: block;
width: 50%;
height: inherit;
background-color: var(--blue);
2017-06-14 11:16:16 +00:00
}
2017-05-15 20:03:47 +00:00
@media (max-width: 900px) {
2017-06-16 08:44:12 +00:00
.floating-header {
height: 40px;
}
2017-06-14 11:16:16 +00:00
.floating-header-title,
.floating-header-logo {
font-size: 1.5rem;
}
2017-05-15 20:03:47 +00:00
.floating-header-share-tw,
.floating-header-share-fb {
width: 40px;
2017-06-16 08:44:12 +00:00
height: 40px;
2017-05-15 20:03:47 +00:00
line-height: 38px;
}
}
2017-05-15 20:03:47 +00:00
@media (max-width: 800px) {
2017-06-16 08:44:12 +00:00
.floating-header-logo {
margin-left: 10px;
}
.floating-header-logo a {
color: #2e2e2e;
}
2017-05-15 20:03:47 +00:00
.floating-header-title,
2017-06-16 08:44:12 +00:00
.floating-header-divider {
visibility: hidden;
}
}
2017-05-15 20:03:47 +00:00
@media (max-width: 450px) {
2017-06-16 08:44:12 +00:00
.floating-header-share-label {
display: none;
}
2014-07-22 11:21:33 +00:00
}
2017-06-13 12:48:06 +00:00
2017-06-16 08:17:11 +00:00
/* 8. Author Template
/* ---------------------------------------------------------- */
2017-06-13 12:48:06 +00:00
.site-header-content .author-profile-image {
flex-shrink: 0;
width: 100px;
height: 100px;
2017-08-02 08:41:14 +00:00
margin: 0 0 20px 0;
2017-06-13 12:48:06 +00:00
box-shadow: rgba(255,255,255,0.1) 0 0 0 6px;
}
.site-header-content .author-bio {
flex-shrink: 0;
2017-06-16 08:44:12 +00:00
max-width: 600px;
2017-08-02 08:41:14 +00:00
margin: 5px 0 10px 0;
2017-06-13 12:48:06 +00:00
font-size: 2rem;
line-height: 1.3em;
font-weight: 300;
letter-spacing: 0.5px;
2017-06-16 08:44:12 +00:00
opacity: 0.8;
2017-06-13 12:48:06 +00:00
}
.site-header-content .author-meta {
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
margin: 0 0 10px 0;
font-family: Georgia, serif;
font-style: italic;
}
.site-header-content .author-location svg {
height: 1.9rem;
stroke: #fff;
}
.site-header-content .bull {
display: inline-block;
margin: 0 12px;
opacity: 0.5;
}
.site-header-content .social-link:first-of-type {
padding-left: 4px;
}
2017-06-16 12:16:22 +00:00
@media (max-width: 500px) {
.site-header-content .author-bio {
font-size: 1.8rem;
line-height: 1.15em;
letter-spacing: 0;
}
.author-location,
.author-stats {
display: none;
}
}
2017-06-13 12:48:06 +00:00
2017-06-16 08:17:11 +00:00
/* 9. Error Template
/* ---------------------------------------------------------- */
2017-06-13 12:48:06 +00:00
.error-template .site-main {
padding: 7vw 4vw;
}
.site-nav-center {
2017-06-16 08:44:12 +00:00
display: flex;
justify-content: center;
align-items: center;
text-align: center;
2017-06-13 12:48:06 +00:00
}
.site-nav-center .site-nav-logo {
2017-06-16 08:44:12 +00:00
margin-right: 0;
2017-06-13 12:48:06 +00:00
}
.error-message {
text-align: center;
}
.error-code {
margin: 0;
font-size: 12vw;
line-height: 1em;
letter-spacing: -5px;
opacity: 0.3;
}
.error-description {
margin: 0;
2017-06-16 08:44:12 +00:00
color: var(--midgrey);
2017-06-13 12:48:06 +00:00
font-size: 3rem;
line-height: 1.3em;
font-weight: 400;
}
@media (max-width: 800px) {
.error-description {
margin: 5px 0 0 0;
font-size: 1.8rem;
}
}
.error-link {
display: inline-block;
margin-top: 5px;
}
.error-template .post-feed {
padding-top: 0;
}
2017-06-15 14:03:19 +00:00
2017-06-16 08:17:11 +00:00
/* 10. Subscribe Overlay
/* ---------------------------------------------------------- */
2017-06-15 14:03:19 +00:00
.subscribe-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
2017-06-16 08:44:12 +00:00
z-index: 9000;
2017-06-15 14:03:19 +00:00
display: flex;
justify-content: center;
align-items: center;
background: rgba(0,25,40,0.97);
opacity: 0;
transition: opacity 200ms ease-in;
pointer-events: none;
2017-06-16 08:44:12 +00:00
2017-06-15 14:03:19 +00:00
backdrop-filter: blur(3px);
}
.subscribe-overlay:target {
opacity: 1;
pointer-events: auto;
}
.subscribe-overlay-content {
position: relative;
z-index: 9999;
margin: 0 0 5vw 0;
2017-06-16 08:44:12 +00:00
padding: 4vw;
2017-06-15 14:03:19 +00:00
color: #fff;
2017-06-16 08:44:12 +00:00
text-align: center;
2017-06-15 14:03:19 +00:00
}
.subscribe-overlay-logo {
position: fixed;
top: 23px;
left: 30px;
height: 30px;
}
.subscribe-overlay-title {
display: inline-block;
margin: 0 0 10px 0;
font-size: 6rem;
line-height: 1.15em;
}
.subscribe-overlay-description {
2017-06-16 08:44:12 +00:00
max-width: 650px;
2017-08-02 08:41:14 +00:00
margin: 0 auto 50px;
2017-06-16 08:44:12 +00:00
font-family: Georgia, serif;
2017-06-15 14:03:19 +00:00
font-size: 3rem;
line-height: 1.3em;
font-weight: 300;
opacity: 0.8;
}
.subscribe-overlay form {
display: flex;
justify-content: center;
align-items: center;
2017-06-16 08:44:12 +00:00
max-width: 500px;
2017-08-02 08:41:14 +00:00
margin: 0 auto;
2017-06-15 14:03:19 +00:00
}
.subscribe-overlay .form-group {
flex-grow: 1;
}
.subscribe-overlay .subscribe-email {
display: block;
width: 100%;
2017-08-02 08:41:14 +00:00
padding: 14px 20px;
2017-06-15 14:03:19 +00:00
border: none;
color: var(--midgrey);
font-size: 2rem;
line-height: 1em;
font-weight: normal;
2017-06-16 08:44:12 +00:00
letter-spacing: 0.5px;
2017-06-15 14:03:19 +00:00
user-select: text;
border-radius: 8px;
transition: border-color 0.15s linear;
-webkit-appearance: none;
}
.subscribe-email:focus {
outline: 0;
border-color: color(var(--lightgrey) l(-2%));
}
.subscribe-overlay button {
display: inline-block;
2017-08-02 08:41:14 +00:00
height: 52px;
2017-06-15 14:03:19 +00:00
margin: 0 0 0 15px;
padding: 0 25px;
2017-06-16 08:44:12 +00:00
outline: none;
color: #fff;
2017-06-15 14:03:19 +00:00
font-size: 1.7rem;
line-height: 37px;
font-weight: 400;
text-align: center;
2017-06-16 08:44:12 +00:00
text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
2017-06-15 14:03:19 +00:00
background: linear-gradient(
color(var(--blue) whiteness(+7%)),
color(var(--blue) lightness(-7%) saturation(-10%)) 60%,
color(var(--blue) lightness(-7%) saturation(-10%)) 90%,
color(var(--blue) lightness(-4%) saturation(-10%))
);
2017-06-16 08:44:12 +00:00
border-radius: 8px;
2017-06-15 14:03:19 +00:00
box-shadow: 0 0 0 1px inset rgba(0,0,0,0.14);
-webkit-font-smoothing: subpixel-antialiased;
}
.subscribe-overlay button:active,
.subscribe-overlay button:focus {
background: color(var(--blue) lightness(-9%) saturation(-10%));
}
.subscribe-overlay-close {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-15 14:03:19 +00:00
}
.subscribe-overlay-close:before {
content: "";
position: absolute;
top: 40px;
right: 25px;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-15 14:03:19 +00:00
width: 30px;
height: 2px;
background: #fff;
opacity: 0.8;
2017-06-16 08:44:12 +00:00
transform: rotate(45deg);
2017-06-15 14:03:19 +00:00
}
.subscribe-overlay-close:after {
content: "";
position: absolute;
top: 40px;
right: 25px;
2017-06-16 08:44:12 +00:00
display: block;
2017-06-15 14:03:19 +00:00
width: 30px;
height: 2px;
background: #fff;
opacity: 0.8;
2017-06-16 08:44:12 +00:00
transform: rotate(-45deg);
2017-06-15 14:03:19 +00:00
}
.subscribe-overlay-close:hover {
cursor: default;
}
2017-06-16 08:17:11 +00:00
/* 11. Site Footer
/* ---------------------------------------------------------- */
.site-footer {
position: relative;
padding-top: 20px;
padding-bottom: 60px;
color: #fff;
background: color(var(--darkgrey) l(-15%));
}
.site-footer-content {
display: flex;
justify-content: space-between;
align-items: center;
2017-06-16 12:16:22 +00:00
flex-wrap: wrap;
2017-06-16 08:17:11 +00:00
color: rgba(255,255,255,0.7);
font-size: 1.3rem;
}
.site-footer-content a {
color: rgba(255,255,255,0.7);;
}
.site-footer-content a:hover {
color: rgba(255,255,255,1);
text-decoration: none;
}
.site-footer-nav {
display: flex;
}
.site-footer-nav a {
position: relative;
margin-left: 20px;
}
.site-footer-nav a:before {
content: "";
position: absolute;
top: 11px;
left: -11px;
2017-06-16 08:44:12 +00:00
display: block;
width: 2px;
height: 2px;
2017-06-16 08:17:11 +00:00
background: #fff;
2017-06-16 08:44:12 +00:00
border-radius: 100%;
2017-06-16 08:17:11 +00:00
}
.site-footer-nav a:first-of-type:before {
display: none;
}
2017-06-16 12:16:22 +00:00
@media (max-width: 650px) {
.site-footer-content {
flex-direction: column;
}
.site-footer-nav a:first-child {
margin-left: 0;
}
}