1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00
Files
my-website/app/_styles/globals.scss
T

122 lines
1.7 KiB
SCSS

@use "./theme" as *;
:root
{
scroll-behavior: smooth;
@media (prefers-color-scheme: light)
{
@include lightTheme;
}
@media (prefers-color-scheme: dark)
{
@include darkTheme;
}
}
*
{
box-sizing: border-box;
padding: 0;
margin: 0;
}
body
{
@include flex(column);
@include body1;
min-width: 300px;
min-height: 100vh;
color-scheme: light dark;
max-width: 100vw;
overflow-x: hidden;
font-synthesis: none;
text-rendering: geometricPrecision;
background-color: $colorNeutralBackground1;
color: $colorNeutralForeground1;
> main
{
@include maxCenter;
flex-grow: 1;
padding: $spacingXXL;
margin-top: 56px;
}
::selection
{
background-color: $colorNeutralBackgroundInverted;
color: $colorNeutralForegroundInverted;
}
[hidden]
{
display: none !important;
}
}
a
{
text-decoration: none;
color: $colorBrandForeground1;
background-image: linear-gradient($colorNeutralBackgroundInverted, $colorNeutralBackgroundInverted);
background-repeat: no-repeat;
background-size: 0% 100%;
transition-property: background-size, color;
transition-duration: $durationFaster;
transition-timing-function: $curveEasyEaseMax;
&:hover,
&:focus-visible
{
background-size: 100% 100%;
color: $colorNeutralForegroundInverted;
}
}
input,
textarea
{
@include formBase;
}
.hl
{
color: $colorNeutralForegroundInverted;
background-color: $colorNeutralBackgroundInverted;
padding: $spacingXXS $spacingXXS;
&::selection
{
color: $colorNeutralForegroundInverted;
background-color: $colorBrandForeground1;
}
}
svg
{
fill: currentColor;
}
// [SPECIAL] case for 404 page
body:has(.not-found) footer .illustration
{
display: none;
}
@media screen and (max-width: 768px)
{
body:has(.cookie-banner)
{
padding-bottom: 110px;
}
}