357 lines
5.5 KiB
SCSS
357 lines
5.5 KiB
SCSS
|
<%- include("normalize.css") %>
|
||
|
<%- include("syntax-highlighting.css") %>
|
||
|
|
||
|
// Fonts
|
||
|
$sansSerif: Lucida Grande, Arial, sans-serif;
|
||
|
$serif: Georgia, serif;
|
||
|
$monospace: SF Mono, Monaco, Courier New, monospace;
|
||
|
|
||
|
// General
|
||
|
body {
|
||
|
background-color: var(--content-background-color);
|
||
|
font-family: $sansSerif;
|
||
|
font-size: 16px;
|
||
|
line-height: 1.5;
|
||
|
color: var(--ui-text-color);
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.main {
|
||
|
max-width: 720px;
|
||
|
margin: 0 auto;
|
||
|
|
||
|
.page-heading {
|
||
|
max-width: 720px;
|
||
|
margin: 20px auto;
|
||
|
margin-bottom: 0;
|
||
|
color: var(--content-text-color);
|
||
|
}
|
||
|
|
||
|
.rss {
|
||
|
margin-top: 0;
|
||
|
font-size: 14px;
|
||
|
font-weight: lighter;
|
||
|
color: var(--secondary-ui-text-color);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
article {
|
||
|
// max-width: 720px;
|
||
|
// margin: 0 auto;
|
||
|
margin-bottom: 75px;
|
||
|
color: var(--content-text-color);
|
||
|
|
||
|
&::after {
|
||
|
content: "";
|
||
|
width: 100%;
|
||
|
max-width: 720px;
|
||
|
height: 1px;
|
||
|
background-image: linear-gradient(to right, var(--secondary-ui-text-color), var(--shadow-color));
|
||
|
position: absolute;
|
||
|
}
|
||
|
|
||
|
.article-title {
|
||
|
margin-top: 20px;
|
||
|
margin-bottom: 0;
|
||
|
|
||
|
> a {
|
||
|
color: var(--content-text-color);
|
||
|
text-decoration: none;
|
||
|
transition: 0.3s ease all;
|
||
|
|
||
|
&:hover {
|
||
|
color: var(--accent-color);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.article-meta {
|
||
|
margin-top: 0;
|
||
|
font-size: 14px;
|
||
|
font-weight: lighter;
|
||
|
color: var(--secondary-ui-text-color);
|
||
|
}
|
||
|
|
||
|
.article-content {
|
||
|
font-family: $serif;
|
||
|
font-size: 18px;
|
||
|
|
||
|
h1, h2, h3, h4, h5, h6 {
|
||
|
font-family: $sansSerif;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.search {
|
||
|
margin: 100px auto;
|
||
|
text-align: center;
|
||
|
|
||
|
h3 {
|
||
|
position: relative;
|
||
|
color: var(--content-text-color);
|
||
|
line-height: 1.3;
|
||
|
text-align: center;
|
||
|
margin: 0;
|
||
|
padding: 0 2rem;
|
||
|
}
|
||
|
|
||
|
input#q {
|
||
|
display: block;
|
||
|
width: 75%;
|
||
|
margin: 10px auto;
|
||
|
padding: 4px;
|
||
|
background-color: var(--content-background-color);
|
||
|
border: 1px solid var(--accent-color);
|
||
|
font-size: 1rem;
|
||
|
color: var(--content-text-color);
|
||
|
}
|
||
|
|
||
|
input[type=submit] {
|
||
|
display: block;
|
||
|
margin: 10px auto;
|
||
|
background-color: var(--ui-background-color);
|
||
|
border: 1px solid var(--accent-color);
|
||
|
color: var(--accent-color);
|
||
|
line-height: 2rem;
|
||
|
padding: 0 1rem;
|
||
|
text-decoration: none;
|
||
|
font-weight: bold;
|
||
|
text-transform: uppercase;
|
||
|
|
||
|
-webkit-transition: 0.3s ease-out;
|
||
|
transition: 0.3s ease-out;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: var(--accent-color);
|
||
|
color: var(--ui-background-color);
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.icon > svg {
|
||
|
display: inline-block;
|
||
|
width: 16px;
|
||
|
height: 16px;
|
||
|
vertical-align: middle;
|
||
|
color: grey;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
color: var(--accent-color);
|
||
|
|
||
|
&.fancy-link {
|
||
|
position: relative;
|
||
|
color: var(--ui-text-color);
|
||
|
text-decoration: none;
|
||
|
transition: 0.3s ease all;
|
||
|
|
||
|
&::before, &::after {
|
||
|
position: absolute;
|
||
|
transition: 0.3s ease all;
|
||
|
font-family: $monospace;
|
||
|
color: transparent;
|
||
|
}
|
||
|
|
||
|
&::before {
|
||
|
content: "{";
|
||
|
left: 0.5em;
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
content: "}";
|
||
|
right: 0.5em;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
color: var(--accent-color);
|
||
|
|
||
|
&::before, &::after {
|
||
|
color: var(--accent-color);
|
||
|
}
|
||
|
|
||
|
&::before {
|
||
|
left: -0.75em;
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
right: -0.75em;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
overflow: scroll;
|
||
|
|
||
|
-moz-tab-size: 4;
|
||
|
-o-tab-size: 4;
|
||
|
tab-size: 4;
|
||
|
}
|
||
|
|
||
|
pre, code {
|
||
|
font-family: $monospace;
|
||
|
font-size: 16px;
|
||
|
}
|
||
|
|
||
|
figure {
|
||
|
img {
|
||
|
display: block;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
figcaption {
|
||
|
font-family: $sansSerif;
|
||
|
font-size: 16px;
|
||
|
font-style: italic;
|
||
|
color: var(--secondary-ui-text-color);
|
||
|
text-align: center;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Header
|
||
|
.site-header {
|
||
|
padding: 20px 0;
|
||
|
background-color: var(--ui-background-color);
|
||
|
font-size: 16px;
|
||
|
box-shadow: 0 10px 15px var(--shadow-color);
|
||
|
|
||
|
.container {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.site-title {
|
||
|
margin: 0;
|
||
|
font-size: 2em;
|
||
|
font-variant: small-caps;
|
||
|
}
|
||
|
|
||
|
.site-description {
|
||
|
color: var(--secondary-ui-text-color);
|
||
|
font-variant: small-caps;
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
|
||
|
.site-nav ul {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
|
||
|
li {
|
||
|
list-style: none;
|
||
|
display: inline;
|
||
|
margin-right: 1em;
|
||
|
font-variant: small-caps;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 992px) {
|
||
|
.site-nav {
|
||
|
position: absolute;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Footer
|
||
|
.site-footer {
|
||
|
padding: 20px 0;
|
||
|
background-color: var(--ui-background-color);
|
||
|
font-size: 16px;
|
||
|
box-shadow: 0 -10px 15px var(--shadow-color);
|
||
|
|
||
|
.container {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.site-title {
|
||
|
margin: 0;
|
||
|
font-variant: small-caps;
|
||
|
font-size: 1.5em;
|
||
|
}
|
||
|
|
||
|
.social-links ul {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
|
||
|
li {
|
||
|
list-style: none;
|
||
|
display: inline;
|
||
|
margin-right: 1em;
|
||
|
font-variant: small-caps;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 992px) {
|
||
|
.social-links {
|
||
|
position: absolute;
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Pagination
|
||
|
.pagination {
|
||
|
text-align: center;
|
||
|
|
||
|
.pagination-link {
|
||
|
color: var(--accent-color);
|
||
|
|
||
|
a {
|
||
|
text-decoration: none;
|
||
|
|
||
|
span:not(.arrow) {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.arrow-left {
|
||
|
display: inline-block;
|
||
|
width: 0.5em;
|
||
|
height: 0.5em;
|
||
|
margin-right: -5px;
|
||
|
border-left: 2px solid var(--accent-color);
|
||
|
border-bottom: 2px solid var(--accent-color);
|
||
|
transform: rotate(45deg);
|
||
|
}
|
||
|
.arrow-right {
|
||
|
display: inline-block;
|
||
|
width: 0.5em;
|
||
|
height: 0.5em;
|
||
|
margin-left: -5px;
|
||
|
border-right: 2px solid var(--accent-color);
|
||
|
border-bottom: 2px solid var(--accent-color);
|
||
|
transform: rotate(-45deg);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Media Queries
|
||
|
@media (min-width: 540px) {
|
||
|
.container {
|
||
|
max-width: 540px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 768px) {
|
||
|
.container {
|
||
|
max-width: 720px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 992px) {
|
||
|
.container {
|
||
|
max-width: 960px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media (min-width: 1200px) {
|
||
|
.container {
|
||
|
max-width: 1140px;
|
||
|
}
|
||
|
}
|