1
- // Color Variables
1
+ // COLOR VARIABLES
2
2
$color-primary : #c69963 ;
3
3
$color-primary-dark : #B28451 ;
4
+
4
5
$color-secondary : #101d2c ;
6
+
5
7
$color-grey-light-1 : #f9f7f6 ;
6
8
$color-grey-light-2 : #aaa ;
9
+
7
10
$color-grey-dark-1 : #54483A ;
8
11
$color-grey-dark-2 : #6D5D4B ;
9
- // Font Variables
12
+
13
+ // FONT VARIABLES
10
14
$font-primary : ' Nunito' , sans-serif ;
11
15
$font-display : ' Josefin Sans' , sans-serif ;
12
16
17
+ // RESPONSIVE BREAKPOINTS
18
+ $bp-largest : 75em ; // 1200px
19
+ $bp-large : 62.5em ; // 1000px
20
+ $bp-medium : 50em ; // 800px;
21
+ $bp-small : 37.5em ; // 600px;
22
+
13
23
* ,
14
24
* ::before ,
15
25
* ::after {
16
26
margin : 0 ;
17
27
padding : 0 ;
18
28
box-sizing : inherit ;
19
29
}
30
+
20
31
html {
21
32
box-sizing : border-box ;
22
- font-size : 62.5% ; // (10px /16px = 62.5%) -> 1rem = 10px;
33
+ font-size : 62.5% ; // 10px/16px = 62.5% -> 1rem = 10px
34
+
35
+ @media only screen and (max-width : $bp-largest ) {
36
+ font-size : 50% ;
37
+ }
23
38
}
39
+
24
40
body {
25
41
font-family : $font-primary ;
26
- color : $color-grey-dark-1 ;
42
+ color : $color-grey-dark-2 ;
27
43
font-weight : 300 ;
28
44
line-height : 1.6 ;
29
45
}
46
+
30
47
.container {
31
48
display : grid ;
32
49
grid-template-rows : 80vh min-content 40vw repeat (3 , min-content );
33
50
grid-template-columns : [sidebar- start] 8rem [sidebar- end full- start] minmax (6rem , 1fr ) [center- start] repeat (8 , [col-start] minmax (min-content , 14rem ) [col-end] ) [center- end] minmax (6rem , 1fr ) [full- end];
34
- & > * {
35
- padding : 40px ;
36
- font-size : 3rem ;
51
+
52
+ @media only screen and (max-width : $bp-large ) {
53
+ grid-template-rows : 6rem 80vh min-content 40vw repeat (3 , min-content );
54
+ grid-template-columns : [full- start] minmax (6rem , 1fr ) [center- start] repeat (8 , [col-start] minmax (min-content , 14rem ) [col-end] ) [center- end] minmax (6rem , 1fr ) [full- end];
55
+ }
56
+
57
+ @media only screen and (max-width : $bp-medium ) {
58
+ grid-template-rows : 6rem calc (100vh - 6rem );
37
59
}
38
60
}
0 commit comments