handleStageAdd(stageId)}
icon={ }
diff --git a/app/components/SideNav.module.css b/app/components/SideNav.module.css
index e873a5c01..2d6370975 100644
--- a/app/components/SideNav.module.css
+++ b/app/components/SideNav.module.css
@@ -297,6 +297,8 @@
}
.sideNavLinkBadge {
+ display: flex;
+ align-items: center;
margin-left: auto;
font-size: var(--font-2xs);
font-weight: var(--weight-semi);
@@ -304,12 +306,14 @@
background-color: var(--color-text-accent);
padding: 0 var(--s-1);
border-radius: var(--radius-selector);
+ height: var(--selector-size-xs);
+ text-align: center;
flex-shrink: 0;
text-transform: uppercase;
}
.sideNavLinkBadgeWarning {
- background-color: var(--color-second-high);
+ background-color: var(--color-text-second);
}
.sideNavPanelOverlay {
diff --git a/app/components/SubNav.module.css b/app/components/SubNav.module.css
index 2c39cbd69..791f90be5 100644
--- a/app/components/SubNav.module.css
+++ b/app/components/SubNav.module.css
@@ -26,8 +26,12 @@
.link {
width: 100%;
- padding: var(--s-1) var(--s-4);
- border-radius: var(--radius-box);
+ padding: 0 var(--s-4);
+ height: var(--field-size-sm);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: var(--radius-field);
background-color: var(--color-bg-high);
cursor: pointer;
font-size: var(--font-xs);
diff --git a/app/components/elements/Switch.module.css b/app/components/elements/Switch.module.css
index b5672d218..6a97df1d7 100644
--- a/app/components/elements/Switch.module.css
+++ b/app/components/elements/Switch.module.css
@@ -1,5 +1,5 @@
.root {
- --height: var(--selector-size);
+ --height: var(--selector-size-sm);
cursor: pointer;
display: grid;
diff --git a/app/features/associations/routes/associations.tsx b/app/features/associations/routes/associations.tsx
index 1503173d2..f9e5998df 100644
--- a/app/features/associations/routes/associations.tsx
+++ b/app/features/associations/routes/associations.tsx
@@ -108,6 +108,7 @@ function Association({
]}
>
}
className="small-text"
variant="minimal-destructive"
@@ -195,6 +196,7 @@ function AssociationInviteCodeActions({
copyToClipboard(inviteLink)}
icon={copySuccess ? : }
@@ -251,6 +253,7 @@ function AssociationMember({
]}
>
}
className="small-text"
variant="minimal-destructive"
diff --git a/app/features/build-analyzer/routes/analyzer.module.css b/app/features/build-analyzer/routes/analyzer.module.css
index b44289127..8c2415bfa 100644
--- a/app/features/build-analyzer/routes/analyzer.module.css
+++ b/app/features/build-analyzer/routes/analyzer.module.css
@@ -234,13 +234,15 @@
}
.patch {
- border-radius: var(--radius-box);
+ border-radius: var(--radius-selector);
background-color: var(--color-accent-low);
color: var(--color-accent-high);
font-size: var(--font-2xs);
font-weight: var(--weight-bold);
- padding-block: var(--s-0-5);
padding-inline: var(--s-2);
+ height: var(--selector-size-sm);
+ display: flex;
+ align-items: center;
}
@media screen and (max-width: 640px) {
diff --git a/app/features/build-stats/routes/builds.$slug.stats.module.css b/app/features/build-stats/routes/builds.$slug.stats.module.css
index e85f93f6d..03f0e1679 100644
--- a/app/features/build-stats/routes/builds.$slug.stats.module.css
+++ b/app/features/build-stats/routes/builds.$slug.stats.module.css
@@ -15,6 +15,6 @@
}
.bar {
- background-color: var(--color-accent);
+ background-color: var(--color-text-accent);
height: 100%;
}
diff --git a/app/features/calendar/components/Tags.module.css b/app/features/calendar/components/Tags.module.css
index 3404432c1..cf6925aba 100644
--- a/app/features/calendar/components/Tags.module.css
+++ b/app/features/calendar/components/Tags.module.css
@@ -1,19 +1,26 @@
.tags {
display: flex;
- max-width: var(--tags-max-width, 18rem);
flex-wrap: wrap;
padding: 0;
- font-size: var(--font-2xs);
+ font-size: var(--font-xs);
font-weight: var(--weight-semi);
gap: var(--s-1);
list-style: none;
+
+ & > li {
+ height: var(--selector-size-sm);
+ display: flex;
+ align-items: center;
+ border-radius: var(--radius-selector);
+ padding-inline: var(--s-1-5);
+ }
}
.small {
font-size: var(--font-2xs);
& > li {
- padding: 0 var(--s-1);
+ height: var(--selector-size-xs);
}
}
@@ -21,14 +28,6 @@
justify-content: center;
}
-.tags > li {
- display: flex;
- align-items: center;
- border-radius: var(--radius-box);
- padding-inline: var(--s-1-5);
- min-height: 20px;
-}
-
.tag {
color: var(--color-text-inverse);
}
diff --git a/app/features/calendar/components/TournamentCard.module.css b/app/features/calendar/components/TournamentCard.module.css
index 390cebfac..5e3a30532 100644
--- a/app/features/calendar/components/TournamentCard.module.css
+++ b/app/features/calendar/components/TournamentCard.module.css
@@ -86,7 +86,7 @@
font-weight: var(--weight-bold);
background-color: var(--color-bg-higher);
border-radius: var(--radius-selector);
- height: var(--field-size-xs);
+ height: var(--selector-size);
width: max-content;
padding: 0 var(--s-1-5);
display: flex;
@@ -110,7 +110,7 @@
padding: 0 var(--s-1-5);
display: flex;
gap: var(--s-1);
- height: var(--field-size-xs);
+ height: var(--selector-size);
align-items: center;
}
@@ -131,7 +131,7 @@
font-size: var(--font-2xs);
font-weight: var(--weight-bold);
border-radius: var(--radius-selector);
- height: var(--field-size-xs);
+ height: var(--selector-size);
padding: 0 var(--s-1-5);
display: grid;
place-items: center;
@@ -173,4 +173,5 @@
background-color: var(--color-bg-higher);
border-radius: var(--radius-selector);
padding: 0 var(--s-1-5);
+ height: var(--selector-size);
}
diff --git a/app/features/lfg/components/LFGPost.module.css b/app/features/lfg/components/LFGPost.module.css
index 38e22b889..10b3898e0 100644
--- a/app/features/lfg/components/LFGPost.module.css
+++ b/app/features/lfg/components/LFGPost.module.css
@@ -87,7 +87,8 @@
font-weight: var(--weight-semi);
border-radius: var(--radius-selector);
background-color: var(--color-bg-higher);
- padding: var(--s-0-5) var(--s-2);
+ padding: 0 var(--s-2);
+ height: var(--selector-size-sm);
display: flex;
align-items: center;
gap: var(--s-0-5);
diff --git a/app/features/lfg/components/LFGPost.tsx b/app/features/lfg/components/LFGPost.tsx
index 25b940ab6..6e84c1ba9 100644
--- a/app/features/lfg/components/LFGPost.tsx
+++ b/app/features/lfg/components/LFGPost.tsx
@@ -68,7 +68,7 @@ function UserLFGPost({ post, tiersMap }: { post: Post; tiersMap: TiersMap }) {
/>
-
+
{post.author.id === user?.id || isAdmin ? (
diff --git a/app/features/object-damage-calculator/routes/object-damage-calculator.module.css b/app/features/object-damage-calculator/routes/object-damage-calculator.module.css
index a300156a7..a988e024c 100644
--- a/app/features/object-damage-calculator/routes/object-damage-calculator.module.css
+++ b/app/features/object-damage-calculator/routes/object-damage-calculator.module.css
@@ -1,17 +1,13 @@
.controls {
display: flex;
- align-items: flex-start;
- justify-content: space-between;
+ flex-direction: column;
+ gap: var(--s-2);
}
.selects {
- display: flex;
- flex-wrap: wrap;
- gap: var(--s-5);
-}
-
-.selectsWeapon {
- width: 16rem;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--s-4);
}
.ability {
@@ -78,7 +74,9 @@
.receiverButton {
all: unset;
cursor: pointer;
- border-radius: var(--radius-box);
+ border-radius: var(--radius-field);
+ width: var(--field-size);
+ height: var(--field-size);
}
.receiverButton:focus-visible {
@@ -133,11 +131,13 @@
}
.patch {
- border-radius: var(--radius-box);
+ border-radius: var(--radius-selector);
background-color: var(--color-accent-low);
color: var(--color-accent-high);
font-size: var(--font-2xs);
font-weight: var(--weight-bold);
- padding-block: var(--s-0-5);
padding-inline: var(--s-2);
+ height: var(--selector-size-sm);
+ display: flex;
+ align-items: center;
}
diff --git a/app/features/object-damage-calculator/routes/object-damage-calculator.tsx b/app/features/object-damage-calculator/routes/object-damage-calculator.tsx
index 5a9ffc993..ce42a7061 100644
--- a/app/features/object-damage-calculator/routes/object-damage-calculator.tsx
+++ b/app/features/object-damage-calculator/routes/object-damage-calculator.tsx
@@ -82,7 +82,7 @@ export default function ObjectDamagePage() {
-
+
{t("analyzer:labels.weapon")}
#{index + 1}
{canRemove ? (
}
aria-label="Remove item"
size="small"
diff --git a/app/styles/common.css b/app/styles/common.css
index b08e23060..55e32ab47 100644
--- a/app/styles/common.css
+++ b/app/styles/common.css
@@ -65,7 +65,7 @@ details summary {
a {
color: var(--color-text-accent);
text-decoration: none;
- border-radius: 5px;
+ border-radius: var(--radius-field);
&:focus-visible {
outline: var(--focus-ring);
@@ -123,8 +123,8 @@ input[type="checkbox"] {
appearance: none;
cursor: pointer;
padding: 0;
- width: var(--selector-size);
- height: var(--selector-size);
+ width: var(--selector-size-sm);
+ height: var(--selector-size-sm);
border-radius: calc(var(--radius-selector) / 2);
background-color: var(--color-bg);
border: var(--border-style);
@@ -165,8 +165,8 @@ input[type="radio"] {
appearance: none;
cursor: pointer;
vertical-align: middle;
- width: var(--selector-size);
- height: var(--selector-size);
+ width: var(--selector-size-sm);
+ height: var(--selector-size-sm);
background-color: var(--color-bg);
border: var(--border-style);
border-radius: var(--radius-full);
diff --git a/app/styles/vars.css b/app/styles/vars.css
index b29a2189b..286ad4038 100644
--- a/app/styles/vars.css
+++ b/app/styles/vars.css
@@ -52,8 +52,9 @@ They mostly exist as a base for other vars like --color-text and --color-bg
or highlight color that maintains a high contrast ratio in both light and dark modes
If used as a background color, --color-text-inverse should be used as the text color
-Preffer using --color-x-high for info, success, warning, and error texts
-It is recommended to use --color-x-low as background colors to ensure a high contrast ratio
+Info, success, warning, and error colors:
+Preffer using --color-x-high for text
+It is recommended to use --color-x-low as the background to ensure a high contrast ratio
You can use --color-x for things like borders and icons
Field icons are defined for both dark and light mode because SVGs
@@ -185,7 +186,7 @@ html {
--weight-semi: 500;
--weight-body: 400;
- --line-height: 1.4;
+ --line-height: 1.5;
/*
Tokens used for spacings