2023-02-16 14:02:39 -08:00
|
|
|
// 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);
|
2023-02-18 11:43:12 -07:00
|
|
|
--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;
|
2023-02-16 14:02:39 -08:00
|
|
|
font-family: var(--font-standard);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: var(--font-weight-regular);
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2023-03-06 17:26:10 -05:00
|
|
|
|
|
|
|
|
// 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);
|
2023-02-16 14:02:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a.uncolored {
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
2023-03-01 17:31:48 -07:00
|
|
|
|
2023-03-24 15:15:34 -04:00
|
|
|
input[type='text'],
|
2023-10-20 16:55:38 -07:00
|
|
|
input[type='url'],
|
2023-04-13 15:05:45 -04:00
|
|
|
input[type='number'],
|
2023-05-06 14:20:13 -07:00
|
|
|
input[type='password'],
|
2023-10-20 16:55:38 -07:00
|
|
|
textarea,
|
2023-10-26 14:34:15 -07:00
|
|
|
.input-text-inherit,
|
2023-10-20 16:55:38 -07:00
|
|
|
.cm-content {
|
2023-03-06 17:26:10 -05:00
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
// safari iOS rounds inputs by default
|
|
|
|
|
// set the appearance to none to prevent this
|
|
|
|
|
appearance: none !important;
|
|
|
|
|
background: var(--color-button-bg);
|
|
|
|
|
color: var(--color-base);
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
font-weight: var(--font-weight-medium);
|
|
|
|
|
transition: box-shadow 0.1s ease-in-out;
|
|
|
|
|
min-height: 40px;
|
2024-07-09 15:17:38 -07:00
|
|
|
box-shadow:
|
|
|
|
|
var(--shadow-inset-sm),
|
|
|
|
|
0 0 0 0 transparent;
|
2023-05-06 14:20:13 -07:00
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
2023-03-06 17:26:10 -05:00
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
|
&:focus-visible {
|
2024-07-09 15:17:38 -07:00
|
|
|
box-shadow:
|
|
|
|
|
inset 0 0 0 transparent,
|
|
|
|
|
0 0 0 0.25rem var(--color-brand-shadow);
|
2023-03-06 17:26:10 -05:00
|
|
|
color: var(--color-contrast);
|
2023-05-18 16:43:14 -07:00
|
|
|
outline: none;
|
2023-03-06 17:26:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
|
&[disabled] {
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus::placeholder {
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::placeholder {
|
2023-04-21 11:40:48 -07:00
|
|
|
color: var(--color-base);
|
2023-03-06 17:26:10 -05:00
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-08 10:14:54 -08:00
|
|
|
.cm-content {
|
|
|
|
|
white-space: pre-wrap !important;
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-13 15:05:45 -04:00
|
|
|
input[type='number'] {
|
|
|
|
|
&::-webkit-inner-spin-button,
|
|
|
|
|
&::-webkit-outer-spin-button {
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-30 11:09:57 -04:00
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-06 17:26:10 -05:00
|
|
|
.iconified-input {
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
input {
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
padding: 0 0.5rem 0 2.5rem;
|
2023-03-06 17:26:10 -05:00
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus-within svg {
|
|
|
|
|
opacity: 1;
|
2023-04-21 11:40:48 -07:00
|
|
|
color: var(--color-contrast);
|
2023-03-06 17:26:10 -05:00
|
|
|
}
|
|
|
|
|
|
2023-04-21 11:40:48 -07:00
|
|
|
svg {
|
2023-03-06 17:26:10 -05:00
|
|
|
position: absolute;
|
|
|
|
|
left: 0.75rem;
|
|
|
|
|
height: 1.25rem;
|
|
|
|
|
width: 1.25rem;
|
|
|
|
|
z-index: 1;
|
2023-04-21 11:40:48 -07:00
|
|
|
|
|
|
|
|
color: var(--color-base);
|
|
|
|
|
opacity: 0.6;
|
2023-03-06 17:26:10 -05:00
|
|
|
}
|
2023-06-10 12:18:15 -04:00
|
|
|
|
2023-10-26 14:34:15 -07:00
|
|
|
.r-btn {
|
2023-06-10 12:18:15 -04:00
|
|
|
@extend .transparent, .icon-only;
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0.25rem;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
position: relative;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-06 17:26:10 -05:00
|
|
|
}
|
|
|
|
|
|
2023-03-01 17:31:48 -07:00
|
|
|
svg {
|
|
|
|
|
height: 1em;
|
|
|
|
|
width: 1em;
|
|
|
|
|
}
|
2023-03-07 16:59:21 -05:00
|
|
|
|
2023-10-26 14:39:26 -04:00
|
|
|
.chart {
|
|
|
|
|
svg {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-07 16:59:21 -05:00
|
|
|
.button-animation {
|
2024-07-09 15:17:38 -07:00
|
|
|
transition:
|
|
|
|
|
opacity 0.5s ease-in-out,
|
|
|
|
|
filter 0.2s ease-in-out,
|
|
|
|
|
transform 0.05s ease-in-out,
|
2023-03-13 13:28:30 -07:00
|
|
|
outline 0.2s ease-in-out;
|
2023-03-07 16:59:21 -05:00
|
|
|
|
|
|
|
|
&:active:not(&:disabled) {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-13 11:40:41 -07:00
|
|
|
|
|
|
|
|
input,
|
|
|
|
|
button {
|
|
|
|
|
&:disabled {
|
|
|
|
|
cursor: not-allowed !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
|
.button-animation,
|
|
|
|
|
button {
|
|
|
|
|
transform: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-24 15:15:34 -04:00
|
|
|
|
|
|
|
|
input,
|
|
|
|
|
button {
|
|
|
|
|
&:disabled {
|
|
|
|
|
cursor: not-allowed !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
|
.button-animation,
|
|
|
|
|
button {
|
|
|
|
|
transform: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-31 10:54:04 -07:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|