hugo-theme-hello-friend/assets/css/variables.scss

70 lines
1.4 KiB
SCSS
Raw Normal View History

body.light-theme, :root {
2018-07-20 19:14:22 +02:00
/* light theme color */
2020-06-20 00:07:59 +02:00
--background: #fff;
--background-secondary: #eaeaea;
--header: #fafafa;
--color: #222;
--color-secondary: #999;
--border-color: #dcdcdc;
2018-07-20 19:14:22 +02:00
/* variables for js, must be the same as these in @custom-media queries */
--phoneWidth: (max-width: 684px);
--tabletWidth: (max-width: 900px);
}
2020-06-20 00:07:59 +02:00
body.dark-theme {
/* dark theme colors */
--background: #292a2d;
--background-secondary: #3b3d42;
--header: #252627;
--color: #a9a9b3;
--color-secondary: #73747b;
--border-color: #4a4b50;
}
@media (prefers-color-scheme: light) {
body:not(.dark-theme) {
/* light theme color */
--background: #fff;
--background-secondary: #eaeaea;
--header: #fafafa;
--color: #222;
--color-secondary: #999;
--border-color: #dcdcdc;
}
}
@media (prefers-color-scheme: dark) {
body:not(.light-theme) {
/* dark theme colors */
--background: #292a2d;
--background-secondary: #3b3d42;
--header: #252627;
--color: #a9a9b3;
--color-secondary: #73747b;
--border-color: #4a4b50;
}
}
2022-10-23 11:16:46 +02:00
/* MEDIA QUERIES */
2022-10-27 16:37:11 +02:00
$phone: "max-width: 684px";
$tablet: "max-width: 900px";
2018-07-20 19:14:22 +02:00
2022-10-23 11:16:46 +02:00
@mixin greater-icon($stroke-width: 3px, $width: .95rem, $height: 100%) {
2019-02-06 12:52:43 +01:00
.greater-icon {
width: $width;
height: $height;
2019-07-09 14:12:56 +02:00
path {
2019-02-06 12:52:43 +01:00
stroke: currentColor;
stroke-width: $stroke-width;
}
}
}
2018-07-20 19:14:22 +02:00
/* HOW TO USE */
2022-10-23 11:16:46 +02:00
/*@media ($phone) {*/
2018-07-20 19:14:22 +02:00
/*margin-top: 0;*/
/*}*/