2024-01-06 03:15:02 +03:00
|
|
|
|
/**
|
|
|
|
|
* Module: Basic styling setup.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@import './constants.css';
|
|
|
|
|
|
|
|
|
|
@tailwind base;
|
|
|
|
|
@tailwind components;
|
|
|
|
|
@tailwind utilities;
|
|
|
|
|
|
2024-02-22 11:35:27 +03:00
|
|
|
|
html,
|
|
|
|
|
body {
|
2024-06-08 21:44:44 +03:00
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
|
|
2024-02-22 11:35:27 +03:00
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
padding: 0px;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-06 03:15:02 +03:00
|
|
|
|
html {
|
|
|
|
|
hanging-punctuation: first last;
|
|
|
|
|
color-scheme: dark light;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-color-scheme='dark'] {
|
|
|
|
|
color-scheme: dark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-color-scheme='light'] {
|
|
|
|
|
color-scheme: light;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Default scroll behavior */
|
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
|
:has(:target) {
|
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
|
scroll-padding-top: 3rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root {
|
2024-01-16 13:47:29 +03:00
|
|
|
|
font-size: 16px;
|
2024-05-11 20:53:36 +03:00
|
|
|
|
line-height: 24px;
|
2024-01-06 03:15:02 +03:00
|
|
|
|
font-family: var(--font-main);
|
|
|
|
|
|
|
|
|
|
color: var(--cl-fg-100);
|
|
|
|
|
border-color: var(--cl-bg-40);
|
|
|
|
|
background-color: var(--cl-bg-100);
|
|
|
|
|
|
|
|
|
|
&.dark {
|
|
|
|
|
color: var(--cd-fg-100);
|
|
|
|
|
border-color: var(--cd-bg-40);
|
|
|
|
|
background-color: var(--cd-bg-100);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-07 16:20:10 +03:00
|
|
|
|
@media only screen and (max-width: 639px) {
|
2024-01-16 13:47:29 +03:00
|
|
|
|
:root {
|
|
|
|
|
font-size: 12px;
|
2024-05-11 20:53:36 +03:00
|
|
|
|
line-height: 18px;
|
2024-01-16 13:47:29 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-12 13:58:28 +03:00
|
|
|
|
:focus,
|
|
|
|
|
:focus-visible,
|
|
|
|
|
:focus-within {
|
2024-01-06 03:15:02 +03:00
|
|
|
|
outline-width: 2px;
|
|
|
|
|
outline-style: solid;
|
|
|
|
|
outline-color: transparent;
|
2024-05-11 20:53:36 +03:00
|
|
|
|
}
|
|
|
|
|
|
2024-01-06 03:15:02 +03:00
|
|
|
|
::selection {
|
|
|
|
|
background: var(--cl-prim-bg-60);
|
|
|
|
|
.dark & {
|
|
|
|
|
background: var(--cd-prim-bg-60);
|
|
|
|
|
}
|
|
|
|
|
tr :hover& {
|
|
|
|
|
background: var(--cl-red-bg-100);
|
|
|
|
|
.dark & {
|
|
|
|
|
background: var(--cd-red-bg-100);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::placeholder {
|
|
|
|
|
color: var(--cl-fg-60);
|
|
|
|
|
.dark & {
|
|
|
|
|
color: var(--cd-fg-60);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Wrapping headers */
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
|
|
|
|
text-wrap: balance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Limit text lines and setup wrapping */
|
|
|
|
|
p,
|
|
|
|
|
li {
|
|
|
|
|
max-width: 90ch;
|
|
|
|
|
text-wrap: pretty;
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-26 22:55:53 +03:00
|
|
|
|
div:not(.dense) > p {
|
2024-02-22 16:25:11 +03:00
|
|
|
|
@apply [&:not(:last-child)]:mb-2;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-06 03:15:02 +03:00
|
|
|
|
@layer components {
|
|
|
|
|
h1 {
|
|
|
|
|
@apply text-lg font-semibold text-center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
2024-02-22 15:07:05 +03:00
|
|
|
|
@apply [&:not(:first-child)]:mt-2 font-semibold text-center;
|
2024-01-06 03:15:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
b {
|
|
|
|
|
@apply font-semibold;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-17 15:48:54 +03:00
|
|
|
|
code {
|
|
|
|
|
font-family: var(--font-math);
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-11 20:53:36 +03:00
|
|
|
|
li {
|
|
|
|
|
list-style-position: inside;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-07 17:58:36 +03:00
|
|
|
|
li::marker {
|
2024-08-22 15:30:01 +03:00
|
|
|
|
content: '–\2009';
|
2024-05-07 17:58:36 +03:00
|
|
|
|
}
|
|
|
|
|
|
2024-01-06 03:15:02 +03:00
|
|
|
|
.border {
|
|
|
|
|
@apply rounded;
|
|
|
|
|
}
|
2024-06-02 23:41:46 +03:00
|
|
|
|
|
|
|
|
|
:is(.sticky) {
|
|
|
|
|
z-index: 20;
|
|
|
|
|
}
|
2024-01-06 03:15:02 +03:00
|
|
|
|
}
|