style: convert project sizing to scalable rem units with responsive root font scaling

This commit is contained in:
2026-09-06 13:58:17 +03:30
parent c7ef6dff3e
commit 9f14e9a4f4
12 changed files with 342 additions and 325 deletions

View File

@@ -1,8 +1,8 @@
.skillsSection {
position: relative;
width: 100%;
padding-top: 60px;
padding-bottom: 80px;
padding-top: 3.75rem;
padding-bottom: 5rem;
}
.mainCard {
@@ -10,9 +10,9 @@
background-color: transparent;
border: 1px solid var(--border-default);
border-radius: var(--radius-xl);
padding: 36px 40px;
box-shadow: 0 4px 20px var(--shadow-color);
margin-bottom: 32px;
padding: 2.25rem 2.5rem;
box-shadow: 0 0.25rem 1.25rem var(--shadow-color);
margin-bottom: 2rem;
}
.cardEyebrow {
@@ -23,25 +23,25 @@
text-transform: uppercase;
font-weight: 700;
color: var(--text-muted);
margin-bottom: 24px;
margin-bottom: 1.5rem;
}
.skillsBlock {
margin-bottom: 40px;
margin-bottom: 2.5rem;
}
.skillsGrid {
display: grid;
grid-template-columns: repeat(4, 1fr);
row-gap: 28px;
column-gap: 40px;
margin-bottom: 32px;
row-gap: 1.75rem;
column-gap: 2.5rem;
margin-bottom: 2rem;
}
.skillItem {
display: flex;
flex-direction: column;
gap: 10px;
gap: 0.625rem;
}
.skillName {
@@ -53,13 +53,13 @@
.meterSegments {
display: flex;
gap: 6px;
gap: 0.375rem;
width: 100%;
}
.segment {
flex: 1;
height: 6px;
height: 0.375rem;
border-radius: 3px;
background-color: var(--border-default);
transition: background-color 0.2s ease;
@@ -72,11 +72,11 @@
.badgeCloud {
display: flex;
flex-wrap: wrap;
gap: 10px;
gap: 0.625rem;
}
.badgePill {
padding: 6px 16px;
padding: 0.375rem 1rem;
border-radius: var(--radius-pill);
background-color: var(--bg-subtle);
border: 1px solid var(--border-default);
@@ -90,13 +90,13 @@
}
.toolsBlock {
padding-top: 16px;
padding-top: 1rem;
}
.toolsGrid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 24px;
gap: 1.5rem;
}
.toolTile {
@@ -104,12 +104,12 @@
flex-direction: column;
align-items: center;
justify-content: center;
width: 132px;
height: 136px;
width: 8.25rem;
height: 8.5rem;
background-color: transparent;
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
padding: 16px 8px;
padding: 1rem 0.5rem;
transition:
opacity var(--motion-duration-default) ease,
filter var(--motion-duration-default) ease,
@@ -125,12 +125,12 @@
}
.toolIconContainer {
width: 64px;
height: 64px;
width: 4rem;
height: 4rem;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
margin-bottom: 0.75rem;
}
.toolIcon {
@@ -150,11 +150,11 @@
.filterTabsRow {
display: flex;
justify-content: center;
gap: 16px;
gap: 1rem;
}
.filterButton {
min-width: 180px;
min-width: 11.25rem;
}
[data-theme="dark"] .mainCard {
@@ -216,13 +216,13 @@
}
.toolTile {
height: 124px;
height: 7.75rem;
padding: var(--space-3) var(--space-2);
}
.toolIconContainer {
width: 52px;
height: 52px;
width: 3.25rem;
height: 3.25rem;
}
.filterTabsRow {