You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

339 lines
7.3 KiB

article {
border-radius: 4px;
overflow: hidden;
background-color: $article-background-color;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
width: ($site-width - 100px);
position: relative;
// :before and :after to generate the < pointer
&:before {
content: "";
display: block;
border: 11px solid transparent;
border-right-color: #ddd;
position: absolute;
top: 49px;
left: -22px;
}
&:after {
content: "";
display: block;
border: 10px solid transparent;
border-right-color: #FFF;
position: absolute;
top: 50px;
left: -20px;
}
.featured-image {
width: 100%;
img {
width: 100%;
}
}
.content {
padding: 2em;
h3 {
font-size: 1.75em;
margin-bottom: 0.25em;
a {
font-style: normal;
}
}
.meta {
text-transform: uppercase;
font-style: normal;
letter-spacing: 1px;
margin-bottom: 2rem;
font-size: 0.825em;
color: $meta-text-color;
padding-bottom: 2.5%;
border-bottom: 3px double $meta-border-color;
margin-bottom: 4.5%;
a {
font-style: normal;
}
span {
&:before {
content: " / ";
margin: 0 1rem;
}
&:first-child:before {
margin: 0 !important;
content: "" !important;
}
a:not(:last-child):after {
content: ", ";
}
}
}
a {
font-style: italic;
}
a.more {
display: block;
margin: 2.5rem 0;
margin-bottom: 1rem;
color: $highlight-color;
font-size: 1.125em;
text-decoration: none;
font-style: normal;
&:hover {
color: $continue-reading-hover-color;
}
}
.task-list {
list-style: none;
.task-list-item {
margin-bottom: 0;
position: relative;
top: 3px;
margin-right: 0.25em;
}
}
blockquote {
background-color: #f6f6f6;
font-family: $headline-font;
margin: 1.5em 0;
padding: 2em;
border-left: 0.5em solid #ededed;
font-size: 1.1em;
cite {
text-transform: uppercase;
font-style: normal;
font-weight: bold;
font-size: 0.9em;
}
p:last-child {
margin-bottom: 0;
}
}
img {
max-width: 100%;
}
video {
max-width: 100%;
}
}
.footer {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
background: transparentize($base-color, 0.90);
font-family: $article-footer-font;
font-size: 0.9em;
&.no-tags {
flex-direction: row-reverse;
}
.tags {
display: flex;
align-items: center;
margin: 1em 2em;
.links {
margin-left: 0.75em;
a:not(:last-child):after {
content: " / ";
color: $text-color !important;
}
}
}
.languages {
display: flex;
align-items: center;
margin: 1em 2em;
white-space: nowrap;
.fa {
font-size: 1.5em;
}
.links {
margin-left: 0.75em;
text-transform: uppercase;
font-family: $content-font;
letter-spacing: 0.1em;
a:not(:last-child):after {
content: " | ";
color: $text-color !important;
}
}
}
}
// Quotes
&.quote {
background-color: $special-color;
&:after {
border-right-color: $special-color;
}
a:hover {
color: inherit;
font-size: 1.1em;
}
@include featuredImage();
blockquote {
padding: 5.5%;
margin: 0;
text-align: center;
color: #FFF;
background: none;
font-size: 1.2em;
position: relative;
z-index: 10;
p {
line-height: 170%;
font-size: 1.10em;
}
cite {
font-family: $headline-font;
font-weight: 600;
text-transform: uppercase;
line-height: 140%;
font-size: 0.725em;
text-align: center;
letter-spacing: 1px;
&:before {
content: "";
}
}
}
}
// Gallery
&.gallery {
.flexslider {
margin: 0;
border: 0;
.flex-direction-nav a {
display: flex;
flex-direction: column;
justify-content: center;
&:before {
color: rgba(255, 255, 255, 0.9);
text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
}
}
}
// Video
&.video {
.responsive-video {
position: relative;
padding-bottom: 56.25%; /* 16:9 ratio*/
padding-top: 0px;
height: 0;
overflow: hidden;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
}
// Audio
&.audio {
.responsive-audio {
iframe {
width: 100%;
}
}
}
// Link
&.link {
background-color: $special-color;
min-height: 7em;
&:after {
border-right-color: $special-color;
}
&:hover {
background-color: $highlight-color;
transition: all 0.3s ease-in-out;
&:after {
border-right-color: $highlight-color;
transition: all 0.3s ease-in-out
}
}
@include featuredImage();
a {
color: #fff;
text-decoration: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0;
top: 0;
width: 100%;
height: 100%;
position: relative;
z-index: 10;
h4 {
font-variant: small-caps;
font-size: 2em;
margin: 2rem;
}
p {
margin: 2em;
margin-top: 0;
}
}
}
}
#disqus_thread {
margin-left: 100px;
padding-bottom: 1.2em;
}