1919 --defaultsize : 18px ;
2020 --slickease : cubic-bezier (.17 , .89 , .32 , 1.28 );
2121 --max-width : 1200px ;
22- --container-padding : 1rem ;
2322
2423 /* Component Variables */
2524 --rounded-corner : 12px ;
@@ -95,11 +94,9 @@ h2:first-child {
9594 margin : 1rem 0 1rem ;
9695}
9796
98- h2 { font-size : 1.875em ; } /* 1.5em * 1.25 */
99- h3 { font-size : 1.463em ; } /* 1.17em * 1.25 */
100- h4 { font-size : 1.250em ; } /* 1em * 1.25 */
101- h5 { font-size : 1.038em ; } /* 0.83em * 1.25 */
102- h6 { font-size : 0.838em ; } /* 0.67em * 1.25 */
97+ h2 { font-size : 1.75em ; }
98+ h3 { font-size : 1.45em ; }
99+ h4 { font-size : 1.20em ; }
103100
104101.note {
105102 margin : 1.5rem 0 ;
@@ -148,7 +145,6 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
148145/* Layout */
149146.container {
150147 margin : 2rem 0 0 ;
151- padding : 0 var (--container-padding );
152148 flex : 1 ;
153149 display : grid;
154150 gap : 0 var (--grid-gap );
@@ -201,22 +197,20 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
201197}
202198
203199.tile img {
204- height : 100 % ;
200+ height : 270 px ;
205201 object-fit : cover;
206- object-position : center;
202+ object-position : bottom center;
207203 z-index : 0 ;
208204 overflow : hidden;
209- border-radius : 0 ;
210205 width : 100% ;
211- min-width : 0 ;
212206}
213207
214208.tile .description {
215209 display : flex;
216210 flex-direction : column;
217211 gap : 0 ;
218212 min-width : 0 ;
219- padding : 1 rem ;
213+ padding : 3 rem ;
220214}
221215
222216.tile h4 {
@@ -235,12 +229,13 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
235229 display : flex;
236230 align-items : center;
237231 gap : 0.5rem ;
232+ overflow-wrap : anywhere;
238233}
239234
240- .tile h4 svg {
241- width : 16 px ;
242- height : 16 px ;
243- fill : currentColor ;
235+ .tile h3 img {
236+ width : 1 em ;
237+ height : 1 em ;
238+ border-radius : 0.375 rem ;
244239}
245240
246241.tile p {
@@ -420,40 +415,12 @@ footer {
420415}
421416
422417/* Responsive Design */
423- @media only screen and (max-width : 1200px ) {
424- : root {
425- --max-width : 100% ;
426- }
427-
428- .container {
429- grid-template-columns : [full-start] minmax (0 , 1fr ) [main-start] repeat (4 , minmax (1rem , calc (var (--pagewidth )/ 4 ))) [main-end] minmax (0 , 1fr ) [full-end];
430- }
431- }
432-
433- @media only screen and (max-width : 900px ) {
434- .container {
435- grid-template-columns : [full-start] minmax (0 , 1fr ) [main-start] repeat (3 , minmax (1rem , calc (var (--pagewidth )/ 3 ))) [main-end] minmax (0 , 1fr ) [full-end];
436- }
437-
438- .tiles {
439- grid-template-columns : repeat (2 , 1fr );
440- }
441-
442- h1 {
443- font-size : 3rem ;
444- }
445-
446- h2 {
447- font-size : 2rem ;
448- }
449- }
450418
451419@media only screen and (max-width : 720px ) {
452420 : root {
453421 --narrowwidth : 100% ;
454422 --grid-gap : 1rem ;
455423 --defaultsize : 16px ;
456- --container-padding : 0.5rem ;
457424 }
458425
459426 .container {
@@ -468,12 +435,8 @@ footer {
468435 grid-template-columns : 1fr ;
469436 }
470437
471- .tile img {
472- height : 240px ;
473- }
474-
475438 .tile .description {
476- padding : 1.5 rem ;
439+ padding : 1 rem ;
477440 }
478441
479442 .tile .btn {
@@ -500,29 +463,3 @@ footer {
500463 margin : 0 ;
501464 }
502465}
503-
504- @media only screen and (max-width : 400px ) {
505- .container {
506- grid-template-columns : [full-start] minmax (0 , 1fr ) [main-start] minmax (1rem , calc (var (--pagewidth )/ 1 )) [main-end] minmax (0 , 1fr ) [full-end];
507- }
508-
509- .tile {
510- padding : 1.5rem ;
511- }
512-
513- h1 {
514- font-size : 2rem ;
515- }
516-
517- h2 {
518- font-size : 1.5rem ;
519- }
520-
521- .tile h4 {
522- font-size : 1.1rem ;
523- }
524-
525- .tile p {
526- font-size : 0.9rem ;
527- }
528- }
0 commit comments