Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
html, body { overflow-x: clip; }
|
||||
|
||||
html {
|
||||
color-scheme: light;
|
||||
background: var(--color-canvas-2);
|
||||
scrollbar-color: var(--color-edge) var(--color-canvas-3);
|
||||
scroll-padding-top: calc(var(--topbar-h) + var(--space-xl));
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
min-height: 100dvh;
|
||||
margin: 0;
|
||||
color: var(--color-ink);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-md);
|
||||
line-height: 1.55;
|
||||
font-synthesis: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
caret-color: var(--color-accent);
|
||||
}
|
||||
|
||||
/* Kanvas: gradien linear marun ke biru tinta, dua panel kaca miring bertepi tegas, garis kisi tipis seperti kertas buku besar.
|
||||
Hanya gradien linear: tidak ada lingkaran cahaya di belakang kaca. */
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background:
|
||||
linear-gradient(112deg, transparent 0 56%, var(--color-pane) 56% 78%, transparent 78%),
|
||||
linear-gradient(112deg, transparent 0 22%, var(--color-pane-2) 22% 36%, transparent 36%),
|
||||
linear-gradient(var(--color-grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
|
||||
linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
|
||||
linear-gradient(158deg, var(--color-canvas-1) 0%, var(--color-canvas-2) 48%, var(--color-canvas-3) 100%);
|
||||
}
|
||||
|
||||
/* Garis emas tipis di tepi atas halaman: penanda lambang, bukan cahaya */
|
||||
body::after {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0 0 auto 0;
|
||||
z-index: 0;
|
||||
height: 3px;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(90deg, var(--color-accent) 0 33%, var(--color-gold) 33% 66%, var(--color-canvas-3) 66%);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: color-mix(in oklab, var(--color-gold) 55%, transparent);
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--color-focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.on-dark :focus-visible,
|
||||
.glass-dark :focus-visible,
|
||||
.auth__hero :focus-visible { outline-color: var(--color-focus-dark); }
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 0.16em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
font-synthesis: none;
|
||||
letter-spacing: var(--tracking-display);
|
||||
overflow-wrap: break-word;
|
||||
min-width: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
h1 { font-size: var(--text-2xl); line-height: 1.15; }
|
||||
h2 { font-size: var(--text-xl); line-height: 1.25; }
|
||||
h3 { font-size: var(--text-lg); line-height: 1.3; }
|
||||
|
||||
@media (width >= 40rem) {
|
||||
h1 { font-size: var(--text-3xl); }
|
||||
}
|
||||
|
||||
p { margin: 0; text-wrap: pretty; }
|
||||
ul, ol { margin: 0; padding: 0; list-style: none; }
|
||||
dl, dd, figure { margin: 0; }
|
||||
img, video { max-width: 100%; height: auto; display: block; }
|
||||
svg { display: block; }
|
||||
[hidden] { display: none !important; }
|
||||
[x-cloak] { display: none !important; }
|
||||
|
||||
button, input, select, textarea { font: inherit; color: inherit; }
|
||||
button { cursor: pointer; }
|
||||
|
||||
.num { font-variant-numeric: tabular-nums; }
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Elemen khusus JS hanya tampil bila skrip jalan (kelas .js dipasang di <html>) */
|
||||
.js-only { display: none; }
|
||||
.js .js-only { display: revert; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user