jws-frontend/src/css/app.scss

168 lines
3.1 KiB
SCSS
Raw Normal View History

2024-04-02 11:02:16 +07:00
@import 'open-props/postcss/style';
@import 'open-props/colors-hsl';
@import 'open-props/shadows';
@import 'open-props/zindex';
html {
--radius-2: 10px;
2024-04-02 11:02:16 +07:00
--brand-1: #035aa1;
--brand-2: #f50000;
--border-color: var(--gray-4);
--foreground: black;
--background: var(--gray-1);
--surface-0: var(--background);
--surface-1: white;
2024-04-18 16:42:37 +07:00
--surface-2: var(--gray-0);
--surface-3: var(--gray-1);
2024-04-11 14:17:17 +07:00
2024-04-11 18:08:20 +07:00
--text-mute: var(--stone-5-hsl);
2024-04-11 14:17:17 +07:00
2024-04-04 17:47:05 +07:00
--info-fg: 0 0% 100%;
--info-bg: var(--blue-6-hsl);
2024-04-11 14:17:17 +07:00
--negative-fg: 0 0% 100%;
2024-04-11 14:38:37 +07:00
--negative-bg: var(--red-9-hsl);
2024-04-11 14:17:17 +07:00
2024-04-18 09:06:54 +07:00
--positive-fg: 0 0% 100%;
--positive-bg: var(--teal-7-hsl);
2024-04-04 13:32:42 +07:00
--gender-male: var(--blue-5-hsl);
--gender-female: var(--pink-7-hsl);
2024-04-11 14:17:17 +07:00
2024-04-09 17:22:00 +07:00
--shadow-color: 220 3% 15%;
--shadow-strength: 5%;
2024-04-11 22:20:04 +07:00
--inner-shadow-highlight: inset 0 -0.5px 0 0 #fff,
inset 0 0.5px 0 0 rgba(0, 0, 0, 0.067);
2024-04-04 13:32:42 +07:00
2024-04-02 11:02:16 +07:00
color: var(--foreground);
background-color: var(--background);
}
:where(.dark, .body--dark) {
2024-04-11 14:17:17 +07:00
--brand-1: var(--blue-5);
2024-04-02 11:02:16 +07:00
--brand-2: #f50000;
2024-04-18 14:15:15 +07:00
--border-color: var(--gray-7);
2024-04-02 11:02:16 +07:00
--foreground: white;
--background: var(--gray-10);
--surface-0: var(--background);
--surface-1: var(--gray-11);
--surface-2: var(--gray-10);
--surface-3: var(--gray-9);
2024-04-11 14:17:17 +07:00
2024-04-04 15:00:33 +07:00
--text-mute: var(--stone-8-hsl);
2024-04-11 14:17:17 +07:00
2024-04-09 17:22:00 +07:00
--shadow-color: 220 0% 100%;
--shadow-strength: 25%;
2024-04-11 22:20:04 +07:00
--inner-shadow-highlight: inset 0 -0.5px 0 0 hsla(0, 0%, 100%, 0.067),
inset 0 0.5px 0 0 rgba(0, 0, 0, 0.467);
2024-04-04 15:00:33 +07:00
}
::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
}
::-webkit-scrollbar-thumb {
border: 0.15rem solid rgba(0, 0, 0, 0);
background-color: hsla(0, 0%, 50%, 0.75);
background-clip: padding-box;
border-radius: 0.5rem;
2024-04-02 11:02:16 +07:00
}
2024-04-10 20:57:51 +07:00
*,
::before,
::after {
transition: 100ms background ease-in-out;
}
2024-04-02 11:02:16 +07:00
.bordered {
border: 1px solid var(--border-color);
}
2024-04-09 17:00:12 +07:00
.bordered-t {
border-top: 1px solid var(--border-color);
}
.bordered-b {
border-bottom: 1px solid var(--border-color);
}
.bordered-l {
border-left: 1px solid var(--border-color);
}
.bordered-r {
border-right: 1px solid var(--border-color);
}
2024-04-02 11:02:16 +07:00
.rounded {
2024-04-10 18:08:40 +07:00
border-radius: var(--radius-2);
2024-04-02 11:02:16 +07:00
}
2024-04-09 17:00:12 +07:00
.surface-0 {
background-color: var(--surface-0) !important;
}
2024-04-02 11:02:16 +07:00
.surface-1 {
background-color: var(--surface-1) !important;
}
.surface-2 {
background-color: var(--surface-2) !important;
}
.surface-3 {
background-color: var(--surface-3) !important;
}
2024-04-11 14:17:17 +07:00
2024-04-11 14:56:23 +07:00
.app-text-muted {
2024-04-11 22:20:04 +07:00
color: hsl(var(--text-mute));
2024-04-11 14:56:23 +07:00
}
2024-04-11 14:17:17 +07:00
.app-text-info {
color: hsl(var(--info-bg));
}
.app-bg-info {
color: hsl(var(--info-fg));
background-color: hsl(var(--info-bg));
}
2024-04-11 14:38:37 +07:00
.app-text-negative {
color: hsl(var(--negative-bg));
2024-04-11 14:17:17 +07:00
}
2024-04-11 14:38:37 +07:00
.app-bg-negative {
2024-04-11 14:17:17 +07:00
color: hsl(var(--negative-fg));
background-color: hsl(var(--negative-bg));
}
2024-04-18 09:06:54 +07:00
.app-text-positive {
color: hsl(var(--positive-bg)) !important;
}
.app-bg-positive {
color: hsl(var(--positive-fg));
background-color: hsl(var(--positive-bg));
}
2024-04-22 14:05:46 +07:00
.app-text-male {
color: hsl(var(--gender-male));
}
.app-bg-male {
color: hsl(var(--positive-fg));
background-color: hsl(var(--gender-male)) !important;
}
.app-text-female {
color: hsl(var(--gender-female));
}
.app-bg-female {
color: hsl(var(--positive-fg));
background-color: hsl(var(--gender-female)) !important;
}