2
2
Page layout
3
3
========================================================================== */
4
4
5
+ @use " sass:math" ;
6
+
5
7
body {
6
8
background-color : $bodycolor ;
7
9
font-family : $base-font ;
@@ -131,18 +133,18 @@ $button-size: 1.5rem;
131
133
@mixin navicon-line () {
132
134
display : inline-block ;
133
135
width : $button-size ;
134
- height : $button-size / 7 ;
136
+ height : math . div ( $button-size , 7 ) ;
135
137
// line color
136
138
background : $white ;
137
- border-radius : $button-size / 14 ;
139
+ border-radius : math . div ( $button-size , 14 ) ;
138
140
transition : .3s ;
139
141
}
140
142
.navicon-lines-button {
141
- padding : $button-size / 4 $button-size / 2 ;
143
+ padding : math . div ( $button-size , 4 ) math . div ( $button-size , 2 ) ;
142
144
transition : .3s ;
143
145
cursor : pointer ;
144
146
user-select : none ;
145
- border-radius : $button-size / 7 ;
147
+ border-radius : math . div ( $button-size , 7 ) ;
146
148
}
147
149
.navicon-lines-button :hover {
148
150
opacity : 1 ;
@@ -152,7 +154,7 @@ $button-size: 1.5rem;
152
154
}
153
155
.navicon-lines {
154
156
margin-right : 10px ;
155
- margin-bottom : $button-size / 5 ;
157
+ margin-bottom : math . div ( $button-size , 5 ) ;
156
158
// create middle line
157
159
@include navicon-line ;
158
160
position : relative ;
@@ -163,17 +165,17 @@ $button-size: 1.5rem;
163
165
position : absolute ;
164
166
left : 0 ;
165
167
content : ' ' ;
166
- -webkit-transform-origin : $button-size / 14 center ;
167
- transform-origin : $button-size / 14 center ;
168
+ -webkit-transform-origin : math . div ( $button-size , 14 ) center ;
169
+ transform-origin : math . div ( $button-size , 14 ) center ;
168
170
}
169
- & :before { top : $button-size / 4 ; }
170
- & :after { top : - $button-size / 4 ; }
171
+ & :before { top : math . div ( $button-size , 4 ) ; }
172
+ & :after { top : - math . div ( $button-size , 4 ) ; }
171
173
}
172
174
.navicon-lines-button :hover {
173
175
opacity : 1 ;
174
176
.navicon-lines {
175
- & :before { top : $button-size / 3.5 ; }
176
- & :after { top : - $button-size / 3.5 ; }
177
+ & :before { top : math . div ( $button-size , 3.5 ) ; }
178
+ & :after { top : - math . div ( $button-size , 3.5 ) ; }
177
179
}
178
180
}
179
181
.navicon-lines-button.x.active .navicon-lines {
@@ -491,7 +493,7 @@ li.lang:hover {
491
493
@include font-rem (20 );
492
494
& .link-post {
493
495
margin-bottom : 0px + $doc-line-height ;
494
- margin-bottom : 0rem + ($doc-line-height / $doc-font-size );
496
+ margin-bottom : 0rem + math . div ($doc-line-height , $doc-font-size );
495
497
}
496
498
}
497
499
p {
0 commit comments