Files
umami/src/app/global.css
T

121 lines
2.5 KiB
CSS

:root {
--zen-font-family: var(--font-inter), sans-serif;
}
/* Preserve the brand accent when Zen applies its light or dark theme tokens. */
:root,
[data-theme="light"],
[data-theme="dark"],
.dark {
--zen-primary: oklch(62.3% 0.214 259.815);
--zen-primary-fg: oklch(98.5% 0 0);
}
/* Zen's rem-based typography and spacing assume the browser's default root size. */
html {
font-size: 100%;
}
html,
body {
font-family: var(--zen-font-family), sans-serif;
color: var(--zen-fg);
background-color: var(--zen-surface-raised);
width: 100%;
min-height: 100vh;
}
body {
font-size: 0.875rem;
}
html[style*="padding-right"] {
padding-right: 0 !important;
}
/* Fix autofill background color to match theme */
input:is(:-webkit-autofill, :autofill),
input:is(:-webkit-autofill, :autofill):hover,
input:is(:-webkit-autofill, :autofill):focus,
input:is(:-webkit-autofill, :autofill):active,
textarea:is(:-webkit-autofill, :autofill),
textarea:is(:-webkit-autofill, :autofill):hover,
textarea:is(:-webkit-autofill, :autofill):focus,
select:is(:-webkit-autofill, :autofill),
select:is(:-webkit-autofill, :autofill):hover,
select:is(:-webkit-autofill, :autofill):focus {
color: var(--zen-fg) !important;
caret-color: var(--zen-fg);
box-shadow: 0 0 0 1000px var(--zen-surface) inset !important;
-webkit-box-shadow: 0 0 0 1000px var(--zen-surface) inset !important;
-webkit-text-fill-color: var(--zen-fg) !important;
transition:
background-color 5000s ease-in-out 0s,
color 5000s ease-in-out 0s;
}
/* Code snippet textareas */
.code-textarea textarea {
min-height: 100px;
padding-right: 36px;
}
/* rrweb-player overrides */
.rr-controller__btns {
gap: 8px;
}
[data-theme="dark"] .rr-controller__btns button {
color: black;
}
[data-theme="dark"] .rr-controller__btns .label {
color: black;
}
@media (max-width: 640px) {
.rr-controller {
height: auto !important;
padding: 8px 0 10px;
gap: 8px;
overflow: hidden;
}
.rr-timeline {
width: calc(100% - 24px) !important;
gap: 4px;
}
.rr-timeline__time {
width: auto !important;
min-width: 44px;
font-size: 12px;
}
.rr-progress {
margin: 0 2px;
}
.rr-controller__btns {
width: calc(100% - 24px);
box-sizing: border-box;
flex-wrap: wrap;
justify-content: center;
column-gap: 6px;
row-gap: 8px;
font-size: 12px;
overflow: hidden;
}
.rr-controller__btns button {
width: 28px;
height: 28px;
flex: 0 0 28px;
}
.rr-controller__btns .label {
margin: 0 4px;
font-size: 12px;
}
}