mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
🐕🔫
This commit is contained in:
parent
a5640433e0
commit
3a8f753ef0
@ -1,3 +1,5 @@
|
|||||||
|
$_media-item-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
.blog-post {
|
.blog-post {
|
||||||
border-bottom: 1px dashed $border-color;
|
border-bottom: 1px dashed $border-color;
|
||||||
padding-bottom: 2.5rem;
|
padding-bottom: 2.5rem;
|
||||||
@ -26,16 +28,18 @@
|
|||||||
figcaption {
|
figcaption {
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-align: right;
|
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img, video, .flash-video {
|
img,
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
video,
|
||||||
padding: 0.5em;
|
.flash-video {
|
||||||
|
box-shadow: $_media-item-box-shadow;
|
||||||
margin: -0.5em;
|
margin: -0.5em;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
padding: 0.5em;
|
||||||
|
|
||||||
&.no-border {
|
&.no-border {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -45,12 +49,12 @@
|
|||||||
|
|
||||||
.blog-post__header {
|
.blog-post__header {
|
||||||
.meta {
|
.meta {
|
||||||
text-transform: uppercase;
|
|
||||||
color: $meta-text-color;
|
color: $meta-text-color;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
width: 100%;
|
|
||||||
text-rendering: optimizelegibility;
|
text-rendering: optimizelegibility;
|
||||||
|
text-transform: uppercase;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 + .meta {
|
h1 + .meta {
|
||||||
@ -65,7 +69,8 @@
|
|||||||
color: $heading-color;
|
color: $heading-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover, &:focus {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: $link-color-hover;
|
color: $link-color-hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,18 +89,18 @@
|
|||||||
.blog-post__read-on {
|
.blog-post__read-on {
|
||||||
background: darken($background-color, 8);
|
background: darken($background-color, 8);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
display: inline-block;
|
|
||||||
padding: 0.4em 0.8em;
|
|
||||||
margin-right: 0.5em;
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
text-decoration: none;
|
|
||||||
color: mix($text-color, $text-color-light);
|
color: mix($text-color, $text-color-light);
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
margin-right: 0.5em;
|
||||||
|
padding: 0.4em 0.8em;
|
||||||
|
text-decoration: none;
|
||||||
transition: background-color 0.5s;
|
transition: background-color 0.5s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $link-color-hover;
|
background: $link-color-hover;
|
||||||
text-shadow: none;
|
|
||||||
color: $background-color;
|
color: $background-color;
|
||||||
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
|
$_header-link-focus-text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
|
||||||
|
|
||||||
.site-header {
|
.site-header {
|
||||||
background-color: $header-color;
|
background-color: $header-color;
|
||||||
padding: 1rem 0 1rem;
|
padding: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-header__container {
|
.site-header__container {
|
||||||
@ -23,24 +25,29 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
border: 0;
|
||||||
display: block;
|
display: block;
|
||||||
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
|
||||||
li {
|
|
||||||
padding-left: 1.25em;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
padding-top: 0.15em;
|
padding-top: 0.15em;
|
||||||
|
|
||||||
|
li {
|
||||||
|
float: left;
|
||||||
|
padding-left: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: text-shadow 0.25s 0s ease;
|
transition: text-shadow 0.25s 0s ease;
|
||||||
&:hover, &:focus {
|
|
||||||
color: white;
|
&:hover,
|
||||||
text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
|
&:focus {
|
||||||
|
color: $white;
|
||||||
|
text-shadow: $_header-link-focus-text-shadow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,14 +4,14 @@ blockquote {
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
|
||||||
|
|
||||||
blockquote:before {
|
&::before {
|
||||||
content: "“";
|
content: "“";
|
||||||
float: left;
|
float: left;
|
||||||
font-family: $body-font-family;
|
font-family: $body-font-family;
|
||||||
font-size: 2.75em;
|
font-size: 2.75em;
|
||||||
margin-top: 0.1em;
|
margin-top: 0.1em;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
text-indent: -0.6em;
|
text-indent: -0.6em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,19 +0,0 @@
|
|||||||
dl {
|
|
||||||
margin: 1.75em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
font-style: italic;
|
|
||||||
margin-top: 1.25em;
|
|
||||||
font-size: 1.13em;
|
|
||||||
font-weight: 700;
|
|
||||||
border-bottom: 1px solid #999;
|
|
||||||
background: #DDD;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
font-style: italic;
|
|
||||||
font-size: 0.85em;
|
|
||||||
margin-top: 1em;
|
|
||||||
line-height: 1.6em;
|
|
||||||
}
|
|
||||||
@ -1,5 +1,9 @@
|
|||||||
h1, h2, h3,
|
h1,
|
||||||
h4, h5, h6 {
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-rendering: optimizelegibility;
|
text-rendering: optimizelegibility;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
@import "elements/blockquote";
|
@import "elements/blockquote";
|
||||||
@import "elements/body";
|
@import "elements/body";
|
||||||
@import "elements/code";
|
@import "elements/code";
|
||||||
@import "elements/dl";
|
|
||||||
@import "elements/headings";
|
@import "elements/headings";
|
||||||
@import "elements/html";
|
@import "elements/html";
|
||||||
@import "elements/links";
|
@import "elements/links";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user