// Copyright (c) 2021 Florian Klampfer
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
@mixin light-mode() {
--body-color: #{$body-color};
--body-bg: #{$body-bg};
--border-color: #{$border-color};
--gray: #{$gray};
--gray-bg: #{$gray-bg};
--gray-text: #{$gray-text};
--menu-text: #{$menu-text};
--inv-body-color: #ccc;
--inv-body-bg: var(--dark-mode-body-bg);
.content {
-webkit-font-smoothing: initial;
-moz-osx-font-smoothing: initial;
}
}
@mixin aspect-ratio($width, $height) {
position: relative;
&::before {
display: block;
content: "";
width: 100%;
@if $gh-pages-compat {
padding-top: (($height / $width) * 100%);
} @else {
padding-top: calc(($height / $width) * 100%);
}
}
> * {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
.clearfix {
content: "";
display: table;
clear: both;
}
.color-transition {
transition: none;
}
@mixin fallback-image() {
background-position: center;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTYwIiBoZWlnaHQ9IjkwIiB2aWV3Qm94PSIwIDAgMTYwIDkwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIHRyYW5zZm9ybT0ibWF0cml4KDAuMDQ4ODI4LCAwLCAwLCAwLjA0Nzk5MSwgNTQuOTk5OTczLCAyMC40MjgxNDgpIj4KICAgIDxwYXRoIHN0eWxlPSJmaWxsOnJnYmEoMTI4LDEyOCwxMjgsLjMzKSIgZD0iTTk1OS44ODQgMTI4YzAuMDQwIDAuMDM0IDAuMDgyIDAuMDc2ID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