devroom.io/themes/devroom-2020/assets/scss/devroom.scss

214 lines
3.1 KiB
SCSS
Raw Normal View History

2020-03-09 10:40:44 +00:00
@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700&display=swap&subset=latin-ext');
2021-04-09 11:57:27 +00:00
@import "./nord.scss";
2020-03-09 10:40:44 +00:00
2022-01-14 12:27:13 +00:00
$h1_font_size: 1.6rem;
$h2_font_size: 1.2rem;
2020-11-22 14:57:32 +00:00
$font_size: 0.96rem;
2020-03-29 12:55:25 +00:00
$line-height: 1.5rem;
2020-03-09 10:40:44 +00:00
2022-01-14 11:53:52 +00:00
$backdrop: darken($nord0, 10%);
$background: darken($nord0, 10%);
$text: $nord5;
$links: lighten($nord10, 17%);
$footer: $nord5;
2020-07-09 20:40:58 +00:00
$meta: $text;
2022-01-14 12:27:13 +00:00
$header: $nord10;
$highlight: darken($nord14, 25%);
2020-03-09 10:40:44 +00:00
html, body {
background-color: $backdrop;
color: $text;
font-family: 'IBM Plex Mono', monospace;
font-size: $font_size;
2020-03-29 12:55:25 +00:00
line-height: $line-height;
2020-03-09 10:40:44 +00:00
}
2020-08-17 11:19:11 +00:00
.important {
background-color: $highlight;
color: $background;
width: 100%;
display: block;
padding: 1rem;
text-align: center;
}
2020-03-09 10:40:44 +00:00
.container {
background-color: $background;
padding: 1rem 1.5rem;
margin: 1rem auto;
max-width: 900px;
}
a, a:hover {
color: $links;
}
nav a {
font-weight: normal;
}
h1, h2, h3, h4, h5 {
font-size: $font_size;
2021-04-09 11:57:27 +00:00
font-weight: bold;
2020-03-09 10:40:44 +00:00
color: $header;
margin: 0.67rem 0;
2021-04-09 11:57:27 +00:00
text-transform: uppercase;
2020-03-09 10:40:44 +00:00
}
h1 {
2022-01-14 12:27:13 +00:00
font-size: $h1_font_size;
color: $text;
2020-03-09 10:40:44 +00:00
&::before {
content: "# ";
}
}
2022-01-14 12:27:13 +00:00
h2 {
font-size: $h2_font_size;
&::before {
content: "## "
}
2020-03-09 10:40:44 +00:00
}
h3::before {
content: "### "
}
h4::before {
content: "#### "
}
h5::before {
content: "##### "
}
b,
strong {
font-weight: bold;
}
blockquote *::before {
content: "> ";
}
img {
max-width: 100%;
}
ol {
list-style-position: outside;
}
ul {
list-style-type: "* ";
list-style-position: outside;
}
header {
margin-bottom: 1.5rem;
}
2020-04-27 08:39:55 +00:00
.privacy-notice {
border-top: 2px dashed $footer;
margin-top: 1.5rem;
.buymeacoffee {
2020-07-09 20:40:58 +00:00
background-color: #FF6C11;
2020-04-27 08:39:55 +00:00
color: #fff;
text-decoration: none;
padding-left: 0.4rem;
padding-right: 0.4rem;
}
}
2020-03-09 10:40:44 +00:00
footer {
color: $footer;
border-top: 2px dashed $footer;
margin-top: 1.5rem;
em {
background-color: $background;
color: $text;
}
}
2020-03-09 10:56:03 +00:00
small {
font-size: 100%;
color: $footer;
}
2020-03-09 10:40:44 +00:00
.meta {
color: $meta;
2021-04-09 11:57:27 +00:00
font-weight: normal;
2020-03-11 09:18:52 +00:00
}
2020-03-11 13:10:10 +00:00
hr {
border: none;
border-top: 2px dashed $footer;
2020-03-25 10:22:16 +00:00
}
code {
2021-04-09 11:57:27 +00:00
color: $nord14;
2020-03-25 10:22:16 +00:00
}
code::before,
code::after {
content: "`";
}
pre > code::before,
pre > code::after {
content: "";
}
pre, code {
font-family: 'IBM Plex Mono', monospace;
font-size: $font_size;
}
pre > code {
overflow-wrap: normal;
white-space: pre;
color: $text;
background-color: $background !important;
}
pre {
background-color: $background !important;
margin-left: 2.5rem;
overflow-x: auto;
overflow-y: hidden;
2020-03-29 12:55:25 +00:00
line-height: $line-height;
2020-03-25 10:22:16 +00:00
}
pre::before {
display: block;
content: "```";
color: $footer;
}
pre::after {
display: block;
content: "```";
color: $footer;
2020-03-26 08:06:33 +00:00
}
table td::before,
table th::before {
content: " | ";
color: $footer;
font-weight: normal;
2020-07-09 20:40:58 +00:00
}
2020-11-22 14:57:32 +00:00
.flex-columns {
display: flex;
flex-direction: row;
}
.flex-column {
&#popular_posts {
order: 1;
}
&#recent_posts {
order: 2;
}
}