77@import url ("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap" );
88/* || Global Variables
99 *************************/
10- /* || Colors
11- *************************/
12- /* || Fonts
13- *************************/
14- /* || Spacing
15- *************************/
16- /* || Font sizes
10+ : root {
11+ /* || Colors
12+ *************************/
13+ --white : # ffffff ;
14+ --light-gray : # d6e2f0 ;
15+ --grayish-blue : # 7b879d ;
16+ --dark-blue : # 1f3251 ;
17+ /* || Fonts
18+ *************************/
19+ --outfit : "Outfit" , sans-serif;
20+ /* || Spacing
21+ *************************/
22+ --space-xs : 0.5rem ;
23+ --space-sm : 1rem ;
24+ --space-md : 1.5rem ;
25+ --space-lg : 2.5rem ;
26+ /* || Font sizes
27+ *************************/
28+ --fs-sm : 0.9375rem ;
29+ --fs-md : 1.375rem ;
30+ }
31+
32+ /* || SCSS Aliases
1733 *************************/
1834/* || Reset
1935 *************************/
2844/* || Body Element
2945 *************************/
3046body {
31- background-color : # d6e2f0 ;
32- font-family : "Outfit" , sans-serif ;
47+ background-color : var ( --light-gray ) ;
48+ font-family : var ( --outfit ) ;
3349}
3450
3551/* || Main Element
3652 *************************/
3753main {
38- height : 100vh ;
54+ min- height: 100vh ;
3955 display : flex;
4056 justify-content : center;
4157 align-items : center;
@@ -46,10 +62,10 @@ main {
4662/* || Card Component
4763 *************************/
4864.card {
49- padding : 1 rem 1 rem 2.5 rem ;
50- max-width : 320 px ;
51- border-radius : 20 px ;
52- background-color : # ffffff ;
65+ padding : var ( --space-sm ) var ( --space-sm ) var ( --space-lg ) ;
66+ max-width : 20 rem ;
67+ border-radius : 1.25 rem ;
68+ background-color : var ( --white ) ;
5369 box-shadow : 0px 25px 25px rgba (0 , 0 , 0 , 0.0476518 );
5470 /* || Image
5571 *************************/
@@ -67,19 +83,21 @@ main {
6783 display : block;
6884}
6985.card__content {
70- margin-top : 1.5 rem ;
71- padding : 0 1 rem ;
86+ margin-top : var ( --space-md ) ;
87+ padding : 0 var ( --space-sm ) ;
7288 text-align : center;
7389}
7490.card__title {
75- font-size : 1.375rem ;
76- color : # 1f3251 ;
91+ font-size : var (--fs-md );
92+ font-weight : 700 ;
93+ line-height : 1.75rem ;
94+ color : var (--dark-blue );
7795}
7896.card__description {
79- margin-top : 1 rem ;
80- font-size : 0.9375 rem ;
97+ margin-block-start : var ( --space-sm ) ;
98+ font-size : var ( --fs-sm ) ;
8199 font-weight : 400 ;
82100 letter-spacing : 0.1875px ;
83101 line-height : 1.1875rem ;
84- color : # 7b879d ;
102+ color : var ( --grayish-blue ) ;
85103}
0 commit comments