* fix: files.vue bugs before styling changes * feat: move files tab to shared layout structure * fix: qa * fix: qa * fix: bugs * fix: lint * fix: admonition cleanup with progress + actions * fix: cleanup * fix: modals * fix: admon title * fix: i18n standard * fix: lint + i18n pass * fix: remove transition * fix: type errors * feat: files tab in app * fix: qa * fix: backup item minmax * fix: use ContentPageHeader for server panel * fix: lint * fix: lint * fix: lint * feat: page leave safety * fix: lint * fix: cargo fmt fix * fix: blank in prod * fix: content card table stuff * Revert "fix: blank in prod" This reverts commit 74758fe185cf85a4a20355857f889cb091b97ace. * fix: import * feat: browse worlds/servers flow * fix: worlds tab parity with content tab * fix: perf bug + shader filter pill copy * feat: singleplayer filter * fix: ordering * fix: breadcrumbs * fix: lint * fix: qa * feat: store server proj id when adding to a non-linked instance * fix: lint * fix: i18n + qa * fix: conflict * qa: already installed modal + placeholders not server-specific * fix: qa * fix: add + edit server modals * fix: qa * fix: security * fix: devin flags * fix: lint * chore: change file to break build cache * fix: admon * fix: import path stuff * feat: qa * fix: fmt fmt idiot --------- Signed-off-by: Calum H. <calum@modrinth.com>
162 lines
2.8 KiB
SCSS
162 lines
2.8 KiB
SCSS
// Use border box on everything to preserve everyone's sanity
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
// Defaults
|
|
background-color: var(--color-bg);
|
|
color: var(--color-base);
|
|
--font-standard:
|
|
Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Roboto, Cantarell,
|
|
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
--mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
font-family: var(--font-standard);
|
|
font-size: 16px;
|
|
font-weight: var(--font-weight-regular);
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
// Font Sizes
|
|
--font-size-xxs: 0.625rem; //10px
|
|
--font-size-xs: 0.75rem; //12px
|
|
--font-size-sm: 0.875rem; //14px
|
|
--font-size-nm: 1rem; //16px
|
|
--font-size-md: 1.125rem; //18px
|
|
--font-size-lg: 1.25rem; //20px
|
|
--font-size-xl: 1.5rem; //24px
|
|
--font-size-2xl: 2rem; //32px
|
|
--font-size-3xl: 3rem; //48px
|
|
|
|
// Font Weights
|
|
--font-weight-regular: 400;
|
|
--font-weight-medium: 500;
|
|
--font-weight-bold: 700;
|
|
--font-weight-extrabold: 800;
|
|
|
|
--font-weight-text: var(--font-weight-medium);
|
|
--font-weight-heading: var(--font-weight-extrabold);
|
|
--font-weight-title: var(--font-weight-extrabold);
|
|
}
|
|
|
|
a.uncolored {
|
|
color: inherit;
|
|
}
|
|
|
|
.cm-content {
|
|
white-space: pre-wrap !important;
|
|
}
|
|
|
|
input[type='number'] {
|
|
&::-webkit-inner-spin-button,
|
|
&::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.dropdown-input {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1px;
|
|
.animated-dropdown {
|
|
width: unset;
|
|
|
|
.selected {
|
|
border-radius: var(--radius-md) 0 0 var(--radius-md);
|
|
|
|
&.render-down {
|
|
border-radius: var(--radius-md) 0 0 0;
|
|
}
|
|
|
|
&.render-up {
|
|
border-radius: 0 0 0 var(--radius-md);
|
|
}
|
|
}
|
|
}
|
|
|
|
input {
|
|
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
.chart {
|
|
svg {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.button-animation {
|
|
transition:
|
|
opacity 0.5s ease-in-out,
|
|
filter 0.2s ease-in-out,
|
|
transform 0.05s ease-in-out,
|
|
outline 0.2s ease-in-out;
|
|
|
|
&:active:not(&:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
button,
|
|
input[type='button'] {
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: 2px solid transparent;
|
|
}
|
|
|
|
input,
|
|
button {
|
|
&:disabled {
|
|
cursor: not-allowed !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion) {
|
|
.button-animation,
|
|
button {
|
|
transform: none !important;
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
h3 {
|
|
margin-block: var(--gap-md) var(--gap-md);
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
// Scrollbar styles
|
|
::-webkit-scrollbar {
|
|
width: 0.75rem;
|
|
height: 0.75rem;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--color-scrollbar);
|
|
}
|
|
|
|
// Firefox scrollbar
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-scrollbar) transparent;
|
|
}
|