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

251 lines
4.0 KiB
SCSS
Raw Normal View History

2022-07-27 11:59:46 +00:00
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Rubik:wght@400;700&display=swap');
2022-07-31 16:42:11 +00:00
@import url('https://cdn-uicons.flaticon.com/uicons-regular-straight/css/uicons-regular-straight.css');
2022-07-27 11:59:46 +00:00
$h1_font_size: 2.4rem;
$h2_font_size: 2rem;
$header_size: 1.4rem;
2022-07-31 16:24:10 +00:00
2022-07-27 11:59:46 +00:00
$font_size: 1.1rem;
$code_font_size: 0.96rem;
$code_line_height: 1.4rem;
$line-height: 1.6rem;
$background: #FBFBF2;
$backdrop: $background;
$text: #272932;
$links: #0081AF;
$footer: $text;
2020-07-09 20:40:58 +00:00
$meta: $text;
2022-07-27 11:59:46 +00:00
$header: $text;
$highlight: $links;
$code_background: #fff;
$code_border_color: #9A8873;
$code: #A4508B;
2020-03-09 10:40:44 +00:00
html, body {
background-color: $backdrop;
color: $text;
2022-07-27 11:59:46 +00:00
font-family: 'PT Serif', serif;
2020-03-09 10:40:44 +00:00
font-size: $font_size;
2020-03-29 12:55:25 +00:00
line-height: $line-height;
2020-03-09 10:40:44 +00:00
}
2022-07-27 11:59:46 +00:00
code, pre {
font-family: 'IBM Plex Mono', monospace;
}
2020-08-17 11:19:11 +00:00
.important {
width: 100%;
display: block;
2022-07-27 11:59:46 +00:00
font-style: italic;
}
.important::before {
content: '\f0a4';
font-family: "Font Awesome 6 Free";
font-size: 1rem;
margin-right: 0.7rem;
2020-08-17 11:19:11 +00:00
}
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;
2022-07-27 12:07:41 +00:00
text-decoration: none;
2020-03-09 10:40:44 +00:00
}
nav a {
font-weight: normal;
}
h1, h2, h3, h4, h5 {
2022-07-27 11:59:46 +00:00
font-family: 'Rubik', sans-serif;
font-size: $header_size;
2021-04-09 11:57:27 +00:00
font-weight: bold;
2022-07-31 16:24:10 +00:00
line-height: $header_size * 1.8;
2020-03-09 10:40:44 +00:00
color: $header;
margin: 0.67rem 0;
}
h1 {
2022-01-14 12:27:13 +00:00
font-size: $h1_font_size;
color: $text;
2022-07-27 11:59:46 +00:00
margin-bottom: 1.6rem;
2020-03-09 10:40:44 +00:00
}
2022-01-14 12:27:13 +00:00
h2 {
font-size: $h2_font_size;
2020-03-09 10:40:44 +00:00
}
b,
strong {
font-weight: bold;
}
2022-07-27 11:59:46 +00:00
blockquote {
border-left: 5px solid $code_border_color;
padding-left: 1rem;
2020-03-09 10:40:44 +00:00
}
img {
2022-07-27 18:04:58 +00:00
width: 68%;
border-radius: 1.6rem;
margin: 0 auto;
display: block;
}
.img--caption {
display: block;
font-style: italic;
font-size: 0.92rem;
text-align: center;
}
.gallery-view {
display: flex;
flex-flow: row wrap;
figure {
max-width: 48%;
min-width: 48%;
margin: 0.5rem 0;
flex: 1;
img {
width: 90%;
}
.img--caption {
margin: 0 auto;
padding-top: 0.5rem;
max-width: 80%;
line-height: 1.1rem;
}
}
2020-03-09 10:40:44 +00:00
}
ol {
list-style-position: outside;
}
ul {
list-style-position: outside;
}
2022-06-30 12:51:58 +00:00
span.begin-task-list + ul {
list-style-type: none;
2022-07-27 11:59:46 +00:00
padding-left: 1rem;
2022-06-30 12:51:58 +00:00
input[type="checkbox"] {
2022-07-27 11:59:46 +00:00
margin-right: 0.4rem;
2022-07-31 16:21:57 +00:00
list-style-image:url("/images/unchecked.png");
2022-06-30 12:51:58 +00:00
}
2022-07-31 16:21:57 +00:00
input[type="checkbox"]:checked {
list-style-image:url("/images/checked.png");
2022-06-30 12:51:58 +00:00
}
}
2020-03-09 10:40:44 +00:00
header {
margin-bottom: 1.5rem;
}
footer {
color: $footer;
2022-07-27 11:59:46 +00:00
border-top: 1px solid $footer;
2020-03-09 10:40:44 +00:00
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
2020-03-25 10:22:16 +00:00
code {
2022-07-27 11:59:46 +00:00
color: $code;
2020-03-25 10:22:16 +00:00
}
pre, code {
font-family: 'IBM Plex Mono', monospace;
2022-07-27 11:59:46 +00:00
font-size: $code_font_size;
line-height: $code_line_height;
2020-03-25 10:22:16 +00:00
}
pre > code {
overflow-wrap: normal;
white-space: pre;
color: $text;
background-color: $background !important;
}
pre {
2022-07-27 11:59:46 +00:00
background-color: $code_background !important;
padding: 1rem 1rem 1rem 2.5rem;
2020-03-25 10:22:16 +00:00
overflow-x: auto;
overflow-y: hidden;
2020-03-29 12:55:25 +00:00
line-height: $line-height;
2022-07-27 11:59:46 +00:00
border: 2px solid $code_border_color;
2020-03-25 10:22:16 +00:00
}
2022-07-27 11:59:46 +00:00
table td, table th {
padding: 0.2rem 1rem;
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;
}
2022-06-30 12:51:58 +00:00
}
2022-07-27 12:07:41 +00:00
img.about-avatar {
width: 16rem;
float: right;
border-radius: 50%;
margin-left: 1rem;
margin-bottom: 1rem;
2022-07-31 16:42:11 +00:00
}
.fi {
font-size: $font_size * 1.2;
padding-top: 0.5rem;
2022-08-04 07:39:09 +00:00
}
// bootstrap SVG-Icons
.bi {
display: inline-block;
vertical-align: middle;
padding-bottom: 0.25rem;
}
.bi-link {
width: 1.4rem;
height: 1.4rem;
color: $links;
}