118 lines
2.4 KiB
SCSS
Raw Normal View History

2014-12-29 19:35:21 +02:00
---
# Only the main Sass file needs front matter (the dashes are enough)
---
2023-02-22 20:28:38 +02:00
@charset "utf-8";
2014-12-29 19:35:21 +02:00
// Our variables
$base-font-family: "Liberation Serif", "Tinos", "Times New Roman", serif;
2024-05-24 18:54:08 +03:00
$monospace-font-family: "Liberation Mono", "Cousine", "Courier New", monospace;
2024-05-24 14:56:01 +03:00
//$base-font-family: "Liberation Sans", "Arimo", "Arial", sans-serif;
2014-12-29 19:35:21 +02:00
2024-05-27 09:03:12 +03:00
@import "{{ site.theme }}";
2014-12-29 19:35:21 +02:00
2024-05-25 07:59:44 +03:00
// As high in css as can be edited. If I understand correctly, user
// preference will take priority over this, but if the user hasn't expressed
// it, this will make dark default.
2024-05-25 07:53:19 +03:00
:root {
2024-05-27 09:03:12 +03:00
color-scheme: dark light !important;
}
// Revert to defaults
* {
color: revert !important;
text-color: revert !important;
background-color: revert !important;
2024-05-25 07:53:19 +03:00
}
2024-05-27 09:29:42 +03:00
// Fitting to text and monospace preferred
code {
font-size: 0.8em !important;
}
code,
pre {
font-family: $monospace-font-family !important;
}
// Overrides for dark themes
@media (prefers-color-scheme: dark) {
// Adblocker detection)
.ftf-dma-note {
color-scheme: only dark !important;
2024-05-27 07:49:02 +03:00
color: #ffffff !important;
background-color: #1c1b22 !important;
}
.site-nav {
color-scheme: only dark !important;
color: #ffffff !important;
background-color: #1c1b22 !important;
border: 1px solid #ffffff !important;
}
}
// Overrides for light themes
@media (prefers-color-scheme: light) {
// Adblocker detection
.ftf-dma-note {
color-scheme: only light !important;
color: #000000 !important;
background-color: #ffffff !important;
}
2024-05-27 07:49:02 +03:00
.site-nav {
color-scheme: only light !important;
color: #000000 !important;
background-color: #ffffff !important;
border: 1px solid #000000 !important;
}
2024-05-25 07:53:19 +03:00
}
2015-10-09 13:59:45 +03:00
// This is used in the index
2018-09-17 16:48:05 +03:00
#avatar {
2023-02-22 20:28:38 +02:00
margin-left: auto;
margin-right: auto;
width: 6em;
2024-05-21 12:09:33 +03:00
border: 1px solid;
//black;
}
2015-10-09 13:59:45 +03:00
// This is the short bio in the index and all my profiles
#bio {
2023-02-22 20:28:38 +02:00
text-align: center;
//font-weight: bold;
font-style: italic;
}
2015-10-09 13:59:45 +03:00
2015-10-09 16:03:51 +03:00
// At least used in the index
.centered {
2023-02-22 20:28:38 +02:00
list-style-type: none;
margin: 0 auto;
text-align: center;
2015-10-09 16:03:51 +03:00
}
2015-10-09 13:59:45 +03:00
// IRC logs should be formatted with this
.irclog {
2023-02-22 20:28:38 +02:00
white-space: pre-wrap;
font-size: 15px;
2024-05-21 12:09:33 +03:00
border: 1px solid;
// $grey-color-light;
2023-02-22 20:28:38 +02:00
border-radius: 3px;
2024-05-21 12:09:33 +03:00
background-color: revert;
//#eef;
2015-10-09 13:59:45 +03:00
}
2015-10-10 08:53:21 +03:00
// Tables belong to CSS, make the HTML5 validator happy
2023-02-22 20:28:38 +02:00
table,
td,
th {
2024-05-21 12:09:33 +03:00
border: 1px solid;
//black;
2015-10-10 08:53:21 +03:00
}
2015-10-31 09:41:06 +02:00
// Trying to make images look a little better
img {
2023-02-22 20:28:38 +02:00
margin-left: auto;
margin-right: auto;
border: 1px solid;
//black;
2015-10-31 09:41:06 +02:00
}