Files
ComponentTest/src/styles.scss
T
2026-04-07 12:04:49 +09:00

125 lines
2.2 KiB
SCSS

@use "sass:list";
@use "styles/library" as library;
@import url('https://cdn.jsdelivr.net/npm/nanumsquareneo@0.0.5/nanumsquareneo.css');
@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-jp-dynamic-subset.min.css");
:root {
--motion-duration-multiplier: 1;
}
:root.reduce-motion {
--motion-duration-multiplier: 0 !important;
}
html {
color-scheme: light;
--if-dark: initial;
&.dark-theme {
--if-dark: ;
color-scheme: dark;
color: white;
& > body {
background-color: oklch(0.1776 0 0);
}
section.feature-block {
background-color: oklch(0 0 0 / 60%);
outline: 2px solid oklch(1 0 0 / 20%);
}
}
}
body {
font-family: 'NanumSquareNeo', 'Wanted Sans Variable', 'Pretendard JP', sans-serif;
font-weight: 500;
margin: 0;
overscroll-behavior-x: none;
background-color: white;
}
.icon-24 {
font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
font-size: 24px;
line-height: 24px;
}
.icon-40 {
font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 40;
font-size: 40px;
line-height: 40px;
}
strong {
font-weight: 900;
}
h1, h2, h3 {
margin: 0;
}
h1 {
font-size: 48px;
text-align: center;
}
h2 {
font-size: 24px;
color: oklch(0.6830 0 0); // #999999
}
h3 {
font-size: 18px;
}
p {
margin-top: 0; margin-bottom: 0;
font-weight: 500;
font-size: 16px;
}
.container {
padding: 40px;
max-width: 600px;
margin: 0 auto;
}
.popup-outlet {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 10000;
}
#global-popup-root > * {
pointer-events: auto;
display: block;
}
section.feature-block {
display: flex;
flex-direction: column;
gap: 12px;
padding: 20px;
outline: 2px solid oklch(0 0 0 / 20%); // rgba(0, 0, 0, 0.2)
border-radius: 8px;
background-color: oklch(1 0 0 / 60%);
backdrop-filter: blur(20px);
}
.container {
padding: 40px;
max-width: 600px;
margin: 0 auto;
}
*:focus-visible {
outline: 2px solid list.nth(library.$brand_palette, 5);
outline-offset: 2px;
}