mikaela.github.io/css/main.scss

118 lines
2.4 KiB
SCSS
Raw Normal View History

2014-12-29 18:35:21 +01:00
---
# Only the main Sass file needs front matter (the dashes are enough)
---
2023-02-22 19:28:38 +01:00
@charset "utf-8";
2014-12-29 18:35:21 +01:00
// Our variables
$base-font-family: "Liberation Serif", "Tinos", "Times New Roman", serif;
2024-05-24 17:54:08 +02:00
$monospace-font-family: "Liberation Mono", "Cousine", "Courier New", monospace;
2024-05-24 13:56:01 +02:00
//$base-font-family: "Liberation Sans", "Arimo", "Arial", sans-serif;
2014-12-29 18:35:21 +01:00
2024-05-27 08:03:12 +02:00
@import "{{ site.theme }}";
2014-12-29 18:35:21 +01:00
2024-05-25 06:59:44 +02: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 06:53:19 +02:00
:root {
2024-05-27 08:03:12 +02:00
color-scheme: dark light !important;
}
// Revert to defaults
* {
color: revert !important;
text-color: revert !important;
background-color: revert !important;
2024-05-25 06:53:19 +02:00
}
2024-05-27 08:29:42 +02: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 06:49:02 +02: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 06:49:02 +02:00
.site-nav {
color-scheme: only light !important;
color: #000000 !important;
background-color: #ffffff !important;
border: 1px solid #000000 !important;
}
2024-05-25 06:53:19 +02:00
}
2015-10-09 12:59:45 +02:00
// This is used in the index
2018-09-17 15:48:05 +02:00
#avatar {
2023-02-22 19:28:38 +01:00
margin-left: auto;
margin-right: auto;
width: 6em;
2024-05-21 11:09:33 +02:00
border: 1px solid;
//black;
}
2015-10-09 12:59:45 +02:00
// This is the short bio in the index and all my profiles
#bio {
2023-02-22 19:28:38 +01:00
text-align: center;
//font-weight: bold;
font-style: italic;
}
2015-10-09 12:59:45 +02:00
2015-10-09 15:03:51 +02:00
// At least used in the index
.centered {
2023-02-22 19:28:38 +01:00
list-style-type: none;
margin: 0 auto;
text-align: center;
2015-10-09 15:03:51 +02:00
}
2015-10-09 12:59:45 +02:00
// IRC logs should be formatted with this
.irclog {
2023-02-22 19:28:38 +01:00
white-space: pre-wrap;
font-size: 15px;
2024-05-21 11:09:33 +02:00
border: 1px solid;
// $grey-color-light;
2023-02-22 19:28:38 +01:00
border-radius: 3px;
2024-05-21 11:09:33 +02:00
background-color: revert;
//#eef;
2015-10-09 12:59:45 +02:00
}
2015-10-10 07:53:21 +02:00
// Tables belong to CSS, make the HTML5 validator happy
2023-02-22 19:28:38 +01:00
table,
td,
th {
2024-05-21 11:09:33 +02:00
border: 1px solid;
//black;
2015-10-10 07:53:21 +02:00
}
2015-10-31 08:41:06 +01:00
// Trying to make images look a little better
img {
2023-02-22 19:28:38 +01:00
margin-left: auto;
margin-right: auto;
border: 1px solid;
//black;
2015-10-31 08:41:06 +01:00
}