You've already forked AstralRinth
forked from didirus/AstralRinth
* initial impl * merge from main * No more crashy * Almost there * fix import * fix more imports * Code cleanup, Fixed components, Added Tooltip * Added Env ind and Category pages --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
192 lines
4.1 KiB
SCSS
192 lines
4.1 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 {
|
|
color: var(--color-blue);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
a.uncolored {
|
|
color: inherit;
|
|
}
|
|
|
|
input[type="text"] {
|
|
border-radius: var(--radius-md);
|
|
box-sizing: border-box;
|
|
border: 2px solid transparent;
|
|
// 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);
|
|
outline: 2px solid transparent;
|
|
box-shadow: var(--shadow-inset-sm), 0 0 0 0 transparent;
|
|
transition: box-shadow 0.1s ease-in-out;
|
|
min-height: 40px;
|
|
|
|
&:focus,
|
|
&:focus-visible {
|
|
box-shadow: inset 0 0 0 transparent, 0 0 0 0.25rem var(--color-brand-shadow);
|
|
color: var(--color-contrast);
|
|
}
|
|
|
|
&:disabled,
|
|
&[disabled] {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&:focus::placeholder {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--color-contrast);
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.iconified-input {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
position: relative;
|
|
|
|
input {
|
|
padding-left: 2.25rem;
|
|
width: 100%;
|
|
}
|
|
|
|
&:focus-within svg {
|
|
color: var(--color-base);
|
|
opacity: 1;
|
|
}
|
|
|
|
:not(input) {
|
|
position: absolute;
|
|
left: 0.75rem;
|
|
height: 1.25rem;
|
|
width: 1.25rem;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
.project-list {
|
|
width: 100%;
|
|
gap: var(--gap-md);
|
|
overflow: hidden;
|
|
|
|
&:not(:first-child) {
|
|
margin-top: var(--gap-md);
|
|
}
|
|
}
|
|
|
|
.project-list.display-mode--list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.project-list.display-mode--gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
@media screen and (max-width: 750px) {
|
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
.project-list.display-mode--grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
|
@media screen and (max-width: 80rem) {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
@media screen and (max-width: 860px) {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
@media screen and (max-width: 550px) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.v-popper--theme-tooltip {
|
|
.v-popper__inner {
|
|
background: var(--color-tooltip-bg) !important;
|
|
color: var(--color-tooltip-text) !important;
|
|
padding: 5px 10px 4px !important;
|
|
border-radius: var(--size-rounded-tooltip) !important;
|
|
box-shadow: var(--shadow-floating) !important;
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
.v-popper__arrow-outer,
|
|
.v-popper__arrow-inner {
|
|
border-color: var(--color-tooltip-bg) !important;
|
|
}
|
|
}
|
|
|
|
.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);
|
|
}
|
|
}
|