diff --git a/packages/website/src/components/BaseStyles.astro b/packages/website/src/components/BaseStyles.astro
index 090ffde91..a84aeebd2 100644
--- a/packages/website/src/components/BaseStyles.astro
+++ b/packages/website/src/components/BaseStyles.astro
@@ -76,6 +76,7 @@ import "@fontsource-variable/roboto-flex";
--shadow-aggressive: var(--space-1) var(--space-1) var(--space-4)
var(--black-a11);
--shadow-subtle: 0 var(--space-1) var(--space-3) var(--black-a5);
+ --shadow-icon: 0 0 var(--space-1) var(--black-a11);
--shadow-none: 0 0 0 transparent;
&.light {
diff --git a/packages/website/src/components/Button/index.module.css b/packages/website/src/components/Button/index.module.css
index 419ea8cbc..2e5c30a5f 100644
--- a/packages/website/src/components/Button/index.module.css
+++ b/packages/website/src/components/Button/index.module.css
@@ -2,7 +2,7 @@
display: flex;
align-items: center;
justify-content: center;
- gap: var(--space-2);
+ gap: var(--space-3);
border-radius: var(--max-size);
padding: var(--space-3) var(--space-4);
@@ -64,8 +64,8 @@
svg,
img {
- width: 1em;
- height: 1em;
+ width: 1.25em;
+ height: 1.25em;
object-fit: contain;
}
@@ -105,7 +105,7 @@
&[data-variant="surface"],
&[data-variant="outline"] {
- outline: var(--space-1) solid var(--accent-6);
+ outline: var(--space-1) solid var(--accent-5);
&[data-high-contrast="true"] {
outline: var(--space-1) solid var(--accent-11);
diff --git a/packages/website/src/components/TankSearchFilters/index.module.css b/packages/website/src/components/TankSearchFilters/index.module.css
index 8a545c944..8f5cf4b20 100644
--- a/packages/website/src/components/TankSearchFilters/index.module.css
+++ b/packages/website/src/components/TankSearchFilters/index.module.css
@@ -11,3 +11,15 @@
background-position: 0% 50%;
}
}
+
+.plus {
+ color: var(--gray-11);
+}
+
+.icon {
+ filter: drop-shadow(var(--shadow-icon));
+
+ & + & {
+ margin-left: -0.5em;
+ }
+}
diff --git a/packages/website/src/components/TankSearchFilters/index.tsx b/packages/website/src/components/TankSearchFilters/index.tsx
index 0eec02871..06e3e505d 100644
--- a/packages/website/src/components/TankSearchFilters/index.tsx
+++ b/packages/website/src/components/TankSearchFilters/index.tsx
@@ -164,6 +164,7 @@ export function TankSearchFilters() {
+
@@ -195,22 +196,19 @@ function TiersFilter() {
return (
-
@@ -274,17 +272,12 @@ function NationsFilter() {
return (
-
+
- {nations.map((nation, index) => (
+ {nations.map((nation) => (
0 ? "-0.5em" : undefined,
- width: "1.25em",
- height: "1.25em",
- }}
src={alias("api", `/flags/circle/${nation}.webp`)}
/>
))}
@@ -362,21 +355,14 @@ function ClassFilter() {
return (
-
+
{classes.map((tankClass, index) => {
return (
0 ? "-0.5em" : undefined,
- width: "1.25em",
- height: "1.25em",
- }}
+ className={styles.icon}
/>
);
})}
@@ -449,7 +435,7 @@ function GunTypeFilter() {
return (
-
+
{gunTypes.map((gunType) => {
return (
@@ -528,7 +514,7 @@ function TypeFilter() {
return (
-
+
{types.map((tankType) => {
return (
@@ -537,11 +523,8 @@ function TypeFilter() {
color: `var(--${TANK_TYPE_COLORS[tankType]}-${
tankType === TankType.TANK_TYPE_RESEARCHABLE ? "12" : "11"
})`,
- filter: "drop-shadow(0 0 var(--space-1) var(--black-a11))",
- opacity: 1,
- width: "1.25em",
- height: "1.25em",
}}
+ className={styles.icon}
key={tankType}
/>
);
@@ -634,7 +617,7 @@ function IndividualShellFilter({
return (
-
+
{shells[index] === null && (
@@ -844,28 +827,22 @@ function ConsumablesFilter() {
return (
-
+
{consumables.slice(0, MAX_ICONS).map((consumable, index) => (
0 ? "-0.5em" : undefined,
- width: "1.25em",
- height: "1.25em",
- objectFit: "contain",
- }}
+ className={styles.icon}
src={alias("api", `/icons/consumables/${consumable}.webp`)}
/>
))}
{consumables.length > MAX_ICONS && (
-
+
{literals(strings.common.units.plus, {
value: consumables.length - MAX_ICONS,
})}
-
+
)}
@@ -939,28 +916,22 @@ function ProvisionsFilter() {
return (
-
+
{provisions.slice(0, MAX_ICONS).map((provision, index) => (
0 ? "-0.5em" : undefined,
- width: "1.25em",
- height: "1.25em",
- objectFit: "contain",
- }}
+ className={styles.icon}
src={alias("api", `/icons/provisions/${provision}.webp`)}
/>
))}
{provisions.length > MAX_ICONS && (
-
+
{literals(strings.common.units.plus, {
value: provisions.length - MAX_ICONS,
})}
-
+
)}
@@ -1049,28 +1020,18 @@ function GameModeAbilitiesFilter() {
return (
-
+
{icons.slice(0, MAX_ICONS).map((icon, index) => (
-
0 ? "-0.5em" : undefined,
- width: "1.25em",
- height: "1.25em",
- objectFit: "contain",
- }}
- src={icon}
- />
+
))}
{icons.length > MAX_ICONS && (
-
+
{literals(strings.common.units.plus, {
value: icons.length - MAX_ICONS,
})}
-
+
)}
diff --git a/packages/website/src/components/Text/index.module.css b/packages/website/src/components/Text/index.module.css
index b716e926b..1a73019b6 100644
--- a/packages/website/src/components/Text/index.module.css
+++ b/packages/website/src/components/Text/index.module.css
@@ -1,6 +1,7 @@
.text {
- font-size: var(--font-size-regular);
-
+ &[data-size="regular"] {
+ font-size: var(--font-size-regular);
+ }
&[data-size="minor"] {
font-size: var(--font-size-minor);
}