File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 54
54
.logo {
55
55
vertical-align : middle ;
56
56
width : 100% ;
57
- max-width : 130px ;
57
+ max-width : rem-calc ( 130px ) ;
58
58
}
59
59
60
60
// Dark version of logo
Original file line number Diff line number Diff line change 3
3
/// /////////////////
4
4
5
5
// Container padding
6
- $cp-sm : 15px ;
6
+ $cp-sm : rem-calc ( 15px ) ;
7
7
$cp-md : 5% ;
8
- $cp-lg : 75px ;
8
+ $cp-lg : rem-calc ( 75px ) ;
9
9
10
10
// Max site width
11
11
$max-width : 1440px ;
Original file line number Diff line number Diff line change 2
2
// Variables
3
3
/// /////////////////
4
4
5
- $width : 20px ;
6
- $height : 2px ;
5
+ $width : rem-calc ( 20px ) ;
6
+ $height : rem-calc ( 2px ) ;
7
7
8
8
/// /////////////////
9
9
// Hamburger Button
@@ -21,7 +21,7 @@ $height: 2px;
21
21
position : absolute ;
22
22
display : block ;
23
23
right : 0 ;
24
- width : $width - 3px ;
24
+ width : $width - rem-calc ( 3px ) ;
25
25
height : $height ;
26
26
background-color : $teal ;
27
27
border-radius : $height ;
@@ -35,21 +35,21 @@ $height: 2px;
35
35
}
36
36
37
37
.hamburger :before {
38
- top : - 7px ;
38
+ top : rem-calc ( - 7px ) ;
39
39
}
40
40
41
41
.hamburger :after {
42
- top : 7px ;
42
+ top : rem-calc ( 7px ) ;
43
43
}
44
44
45
45
.active .hamburger :before {
46
- transform : translateX (3px ) rotate (45deg );
46
+ transform : translateX (rem-calc ( 3px ) ) rotate (45deg );
47
47
}
48
48
49
49
.active .hamburger__inner {
50
50
opacity : 0 ;
51
51
}
52
52
53
53
.active .hamburger :after {
54
- transform : translateX (3px ) rotate (-45deg );
54
+ transform : translateX (rem-calc ( 3px ) ) rotate (-45deg );
55
55
}
Original file line number Diff line number Diff line change 2
2
// Variables
3
3
/// /////////////////
4
4
5
- $nav-height-sm : 60px ;
6
- $nav-height-lg : 80px ;
5
+ $nav-height-sm : rem-calc ( 60px ) ;
6
+ $nav-height-lg : rem-calc ( 80px ) ;
7
7
$nav-zindex : 10 ;
8
8
9
9
/// /////////////////
@@ -33,7 +33,7 @@ $nav-zindex: 10;
33
33
34
34
.nav .logo {
35
35
@media (max-width : $bp-md ) {
36
- max-width : 105px ;
36
+ max-width : rem-calc ( 105px ) ;
37
37
}
38
38
}
39
39
@@ -61,7 +61,7 @@ $nav-zindex: 10;
61
61
bottom : 0 ;
62
62
left : 0 ;
63
63
height : calc (100vh - #{$nav-height-sm } );
64
- padding : 20px $cp-sm ;
64
+ padding : rem-calc ( 20px ) $cp-sm ;
65
65
background-color : $teal ;
66
66
display : flex ;
67
67
flex-direction : column ;
@@ -90,23 +90,23 @@ $nav-zindex: 10;
90
90
& :not (:last-of-type ) {
91
91
92
92
@media (min-width : $bp-md ) {
93
- margin-right : 20px ;
93
+ margin-left : rem-calc ( 20px ) ;
94
94
}
95
95
96
96
@media (min-width : $bp-lg ) {
97
- margin-right : 40px ;
97
+ margin-left : rem-calc ( 40px ) ;
98
98
}
99
99
}
100
100
}
101
101
102
102
.nav-list__link {
103
103
display : block ;
104
- padding : 20px 10px ;
104
+ padding : rem-calc ( 20px 10px ) ;
105
105
color : $white ;
106
106
107
107
@media (min-width : $bp-md ) {
108
108
display : inline ;
109
- padding : 10px 0 ;
109
+ padding : rem-calc ( 10px 0 ) ;
110
110
color : $slate-600 ;
111
111
112
112
& :hover ,
You can’t perform that action at this time.
0 commit comments