mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-03 08:38:42 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
537
apps/web-react/app/styles/utils.css
Normal file
537
apps/web-react/app/styles/utils.css
Normal file
@@ -0,0 +1,537 @@
|
||||
@layer utilities {
|
||||
.text-xl {
|
||||
font-size: var(--font-xl);
|
||||
}
|
||||
|
||||
.text-lg {
|
||||
font-size: var(--font-lg);
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: var(--font-sm);
|
||||
}
|
||||
|
||||
.text-md {
|
||||
font-size: var(--font-md);
|
||||
}
|
||||
|
||||
.text-xs {
|
||||
font-size: var(--font-xs);
|
||||
}
|
||||
|
||||
.text-xxs {
|
||||
font-size: var(--font-2xs);
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-main-forced {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.text-lighter {
|
||||
color: var(--color-text-high);
|
||||
}
|
||||
|
||||
.text-error {
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
.text-success {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
.text-accent-high {
|
||||
color: var(--color-accent-high);
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
color: var(--color-warning);
|
||||
}
|
||||
|
||||
.text-theme {
|
||||
color: var(--color-text-accent);
|
||||
}
|
||||
|
||||
.text-theme-secondary {
|
||||
color: var(--color-text-second);
|
||||
}
|
||||
|
||||
.text-uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.text-capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 2px;
|
||||
}
|
||||
|
||||
.line-through {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.color-success {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
.color-warning {
|
||||
color: var(--color-warning);
|
||||
}
|
||||
|
||||
.color-error {
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
.color-info {
|
||||
color: var(--color-info);
|
||||
}
|
||||
|
||||
.bg {
|
||||
background-color: var(--color-bg);
|
||||
}
|
||||
|
||||
.bg-lighter {
|
||||
background-color: var(--color-bg-high);
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: var(--radius-box);
|
||||
}
|
||||
|
||||
.rounded-sm {
|
||||
border-radius: var(--radius-field);
|
||||
}
|
||||
|
||||
.rounded-full {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
.font-body {
|
||||
font-weight: var(--weight-body);
|
||||
}
|
||||
|
||||
.font-semi-bold {
|
||||
font-weight: var(--weight-semi);
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
|
||||
.h-max {
|
||||
height: max-content;
|
||||
}
|
||||
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.w-4 {
|
||||
width: var(--s-4);
|
||||
}
|
||||
|
||||
.w-6 {
|
||||
width: var(--s-6);
|
||||
}
|
||||
|
||||
.w-24 {
|
||||
width: var(--s-24);
|
||||
}
|
||||
|
||||
.w-max {
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.p-1 {
|
||||
padding: var(--s-1);
|
||||
}
|
||||
|
||||
.py-4 {
|
||||
padding-block: var(--s-4);
|
||||
}
|
||||
|
||||
.pl-0 {
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
.pl-4 {
|
||||
padding-inline-start: var(--s-4);
|
||||
}
|
||||
|
||||
.pt-0 {
|
||||
padding-block-start: 0;
|
||||
}
|
||||
|
||||
.pt-0-5 {
|
||||
padding-block-start: var(--s-0-5);
|
||||
}
|
||||
|
||||
.m-auto-0 {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.mt-1 {
|
||||
margin-block-start: var(--s-1);
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-block-start: var(--s-2);
|
||||
}
|
||||
|
||||
.mt-3 {
|
||||
margin-block-start: var(--s-3);
|
||||
}
|
||||
|
||||
.mt-4 {
|
||||
margin-block-start: var(--s-4);
|
||||
}
|
||||
|
||||
.mt-6 {
|
||||
margin-block-start: var(--s-6);
|
||||
}
|
||||
|
||||
.mt-12 {
|
||||
margin-block-start: var(--s-12);
|
||||
}
|
||||
|
||||
.mb-0 {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.mb-1 {
|
||||
margin-block-end: var(--s-1);
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-block-end: var(--s-2);
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-block-end: var(--s-4);
|
||||
}
|
||||
|
||||
.ml-auto {
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
.ml-1 {
|
||||
margin-inline-start: var(--s-1);
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-inline-start: var(--s-2);
|
||||
}
|
||||
|
||||
.ml-6 {
|
||||
margin-inline-start: var(--s-6);
|
||||
}
|
||||
|
||||
.mr-auto {
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
|
||||
.mr-1 {
|
||||
margin-inline-end: var(--s-1);
|
||||
}
|
||||
|
||||
.mr-2 {
|
||||
margin-inline-end: var(--s-2);
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.mx-1 {
|
||||
margin-inline: var(--s-1);
|
||||
}
|
||||
|
||||
.mx-2 {
|
||||
margin-inline: var(--s-2);
|
||||
}
|
||||
|
||||
.my-1 {
|
||||
margin-block: var(--s-1);
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin-block: var(--s-2);
|
||||
}
|
||||
|
||||
.my-3 {
|
||||
margin-block: var(--s-3);
|
||||
}
|
||||
|
||||
.my-4 {
|
||||
margin-block: var(--s-4);
|
||||
}
|
||||
|
||||
.my-24 {
|
||||
margin-block: var(--s-24);
|
||||
}
|
||||
|
||||
.m-0-auto {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.line-height-tight {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.whitespace-pre-wrap {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.whitespace-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.overflow-x-auto {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.contents {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.items-start {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.items-end {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.justify-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.justify-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.justify-self-end {
|
||||
justify-self: flex-end;
|
||||
}
|
||||
|
||||
.justify-self-center {
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.self-center {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.self-start {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.justify-self-start {
|
||||
justify-self: flex-start;
|
||||
}
|
||||
|
||||
.flex-wrap {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.all-unset {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.focus-text-decoration {
|
||||
&:focus-visible {
|
||||
outline: none;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.label-no-spacing {
|
||||
--label-margin: 0;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.opaque {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.scrollbar,
|
||||
textarea {
|
||||
/* Firefox, Chrome 121+, Safari 18.2+ */
|
||||
@supports (scrollbar-color: auto) {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--color-bg-higher) transparent;
|
||||
}
|
||||
|
||||
/* Legacy */
|
||||
@supports not (scrollbar-color: auto) {
|
||||
&::-webkit-scrollbar,
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: transparent;
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--color-base-4);
|
||||
border-radius: var(--radius-full);
|
||||
border: 4px solid transparent;
|
||||
background-clip: content-box;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-corner {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&.xxxs {
|
||||
gap: var(--s-0-5);
|
||||
}
|
||||
|
||||
&.xxs {
|
||||
gap: var(--s-1);
|
||||
}
|
||||
|
||||
&.xs {
|
||||
gap: var(--s-1-5);
|
||||
}
|
||||
|
||||
&.sm {
|
||||
gap: var(--s-2);
|
||||
}
|
||||
|
||||
&.sm-column {
|
||||
column-gap: var(--s-2);
|
||||
}
|
||||
|
||||
&.sm-plus {
|
||||
gap: var(--s-3);
|
||||
}
|
||||
|
||||
&.md {
|
||||
gap: var(--s-4);
|
||||
}
|
||||
|
||||
&.md-plus {
|
||||
gap: var(--s-6);
|
||||
}
|
||||
|
||||
&.lg {
|
||||
gap: var(--s-8);
|
||||
}
|
||||
|
||||
&.xs-row {
|
||||
row-gap: var(--s-1-5);
|
||||
}
|
||||
|
||||
&.lg-row {
|
||||
row-gap: var(--s-8);
|
||||
}
|
||||
|
||||
&.xl {
|
||||
gap: var(--s-12);
|
||||
}
|
||||
|
||||
&.xxl {
|
||||
gap: var(--s-16);
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-same-size {
|
||||
flex: 1 1 0px;
|
||||
}
|
||||
|
||||
.small-icon {
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
}
|
||||
|
||||
.small-text {
|
||||
font-size: var(--font-2xs);
|
||||
}
|
||||
|
||||
.dotted {
|
||||
text-decoration-style: dotted;
|
||||
text-decoration-line: underline;
|
||||
text-decoration-thickness: 2px;
|
||||
}
|
||||
|
||||
.summary {
|
||||
border-radius: var(--radius-box);
|
||||
background-color: var(--color-bg);
|
||||
font-size: var(--font-xs);
|
||||
font-weight: var(--weight-semi);
|
||||
padding-block: var(--s-1);
|
||||
padding-inline: var(--s-2);
|
||||
}
|
||||
|
||||
html[dir="rtl"] .fix-rtl {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.no-results {
|
||||
text-align: center;
|
||||
color: var(--color-text-high);
|
||||
font-style: italic;
|
||||
font-size: var(--font-xs);
|
||||
}
|
||||
|
||||
.half-width {
|
||||
width: 100%;
|
||||
max-width: 24rem;
|
||||
margin-inline: auto;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user