forge
Explore
Log in

Don't you dare go Hollow

🖌️ responsive base font size and table unit cleanup

Browse files at this commit

4b7f2c0c6a9ad8d4a3a2b69ce65b15e7fead4611Burak BoduroğluParent: 57b96ff
  • style
    • 🖌️ responsive base font size and table unit cleanup
Show full message
style: 🖌️ responsive base font size and table unit cleanup
- scale html font-size to 17px at 1800px and 18px at 2300px for large screens
- convert data-table px units to rem so table text scales with the base font
src/index.cssmodified+14 -2
@@ -93,6 +93,18 @@
93 @apply scroll-smooth;93 @apply scroll-smooth;
94 }94 }
95 95
96+ @media (min-width: 1800px) {
97+ html {
98+ font-size: 17px;
99+ }
100+ }
101+
102+ @media (min-width: 2300px) {
103+ html {
104+ font-size: 18px;
105+ }
106+ }
107+
96 body {108 body {
97 @apply min-h-screen bg-background font-sans text-foreground antialiased;109 @apply min-h-screen bg-background font-sans text-foreground antialiased;
98 }110 }
@@ -173,7 +185,7 @@
173 }185 }
174 186
175 .data-table {187 .data-table {
176- @apply w-full caption-bottom text-[13px];188+ @apply w-full caption-bottom text-[0.8125rem];
177 }189 }
178 190
179 .data-table thead {191 .data-table thead {
@@ -181,7 +193,7 @@
181 }193 }
182 194
183 .data-table th {195 .data-table th {
184- @apply h-9 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/50 px-3 text-left text-[10px] font-semibold uppercase tracking-[0.11em] last:border-r-0;196+ @apply h-9 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/50 px-3 text-left text-[0.625rem] font-semibold uppercase tracking-[0.11em] last:border-r-0;
185 }197 }
186 198
187 .data-table td {199 .data-table td {