File tree 9 files changed +29
-24
lines changed
9 files changed +29
-24
lines changed Original file line number Diff line number Diff line change 1
1
fieldset {
2
2
background-color : lighten ($base-border-color , 10% );
3
3
border : $base-border ;
4
- margin : 0 0 $ small-spacing ;
4
+ margin : 0 0 var ( -- small-spacing) ;
5
5
padding : $base-spacing ;
6
6
}
7
7
@@ -28,7 +28,7 @@ select {
28
28
29
29
label {
30
30
font-weight : 600 ;
31
- margin-bottom : calc ($ small-spacing / 2 );
31
+ margin-bottom : calc (--sass- small-spacing / 2 );
32
32
33
33
& .required ::after {
34
34
content : " *" ;
@@ -72,10 +72,10 @@ textarea {
72
72
input [type = " checkbox" ],
73
73
input [type = " radio" ] {
74
74
display : inline ;
75
- margin-right : calc ($ small-spacing / 2 );
75
+ margin-right : calc (-- small-spacing / 2 );
76
76
}
77
77
78
78
input [type = " file" ] {
79
- padding-bottom : $ small-spacing ;
79
+ padding-bottom : var ( -- small-spacing) ;
80
80
width : 100% ;
81
81
}
Original file line number Diff line number Diff line change 6
6
7
7
& %default-ul {
8
8
list-style-type : disc ;
9
- margin-bottom : $ small-spacing ;
9
+ margin-bottom : var ( -- small-spacing) ;
10
10
padding-left : $base-spacing ;
11
11
12
12
@media (max-width : $mobile-portrait-screen ){
21
21
> li {
22
22
counter-increment : customlistcounter;
23
23
clear : both ;
24
- padding : $ small-spacing 0 $ small-spacing 2em ;
24
+ padding : var ( -- small-spacing) 0 var ( -- small-spacing) 2em ;
25
25
position : relative ;
26
26
z-index : 1 ;
27
27
28
28
& ::before {
29
- @include position (absolute , ($ small-spacing + 0.5em ) null null 0 );
29
+ @include position (absolute , (var ( -- small-spacing) + 0.5em ) null null 0 );
30
30
@include size (2em );
31
31
content : counter (customlistcounter ) " " ;
32
32
border : 2px solid $base-border-color ;
47
47
}
48
48
49
49
dl {
50
- margin-bottom : $ small-spacing ;
50
+ margin-bottom : var ( -- small-spacing) ;
51
51
52
52
dt {
53
53
font-weight : bold ;
54
- margin-top : $ small-spacing ;
54
+ margin-top : var ( -- small-spacing) ;
55
55
}
56
56
57
57
dd {
Original file line number Diff line number Diff line change 1
1
table {
2
2
font-feature-settings : " kern" , " liga" , " tnum" ;
3
3
border-collapse : collapse ;
4
- margin : $ small-spacing 0 ;
4
+ margin : var ( -- small-spacing) 0 ;
5
5
table-layout : fixed ;
6
6
width : 100% ;
7
7
position : relative ;
23
23
}
24
24
25
25
th , td {
26
- padding : $ small-spacing ;
26
+ padding : var ( -- small-spacing) ;
27
27
}
28
28
29
29
tr ,
Original file line number Diff line number Diff line change 20
20
font-family : $heading-font-family ;
21
21
font-size : $base-font-size ;
22
22
line-height : $heading-line-height ;
23
- margin : 0 0 $ small-spacing ;
23
+ margin : 0 0 var ( -- small-spacing) ;
24
24
font-weight : bold ;
25
25
26
26
code {
43
43
}
44
44
45
45
p {
46
- margin : 1.5em 0 $ small-spacing ;
46
+ margin : 1.5em 0 var ( -- small-spacing) ;
47
47
line-height : 1.5em ;
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -13,9 +13,14 @@ $large-font-size: 1.5rem;
13
13
$base-line-height : 1.5 ;
14
14
$heading-line-height : 1.2 ;
15
15
16
+ :root {
17
+ --base-line-height : 1.5 ;
18
+ --base-spacing : calc (var (--base-line-height ) * 1em );
19
+ --small-spacing : calc (var (--base-spacing ) / 2 );
20
+ }
21
+
16
22
// Spacing
17
23
$base-spacing : $base-line-height * 1em ;
18
- $small-spacing : calc ($base-spacing / 2 );
19
24
$large-spacing : $base-spacing * 2 ;
20
25
$top-spacing : $base-spacing * 3.333 ; // 80px
21
26
Original file line number Diff line number Diff line change 1
1
article {
2
- padding : $large-spacing $ small-spacing ;
2
+ padding : $large-spacing var ( -- small-spacing) ;
3
3
4
4
@media (min-width : $medium-screen ){
5
- padding : $ small-spacing ;
5
+ padding : var ( -- small-spacing) ;
6
6
}
7
7
8
8
.edit-page {
Original file line number Diff line number Diff line change 1
1
.chapter li {
2
- margin : $ small-spacing 0 ;
2
+ margin : var ( -- small-spacing) 0 ;
3
3
4
4
@media (max-width : $mobile-portrait-screen ) {
5
5
margin : 0 ;
Original file line number Diff line number Diff line change 5
5
font-family : $monospace-font-family ;
6
6
font-size : 0.8em ;
7
7
line-height : 1.5em ;
8
- margin : $ small-spacing 0 $large-spacing ;
8
+ margin : var ( -- small-spacing) 0 $large-spacing ;
9
9
overflow : hidden ;
10
10
position : relative ;
11
11
font-variant-ligatures : none ;
28
28
}
29
29
}
30
30
}
31
-
31
+
32
32
.scroller {
33
33
overflow : auto ;
34
34
}
Original file line number Diff line number Diff line change 3
3
border-bottom : $base-border ;
4
4
position : relative ;
5
5
z-index : 1 ;
6
- padding : $ small-spacing 0 ;
6
+ padding : var ( -- small-spacing) 0 ;
7
7
8
8
@include media ($large-screen-up ) {
9
9
// fixed sidebar, full height
12
12
width : 19em ;
13
13
border-bottom : 0 ;
14
14
border-right : $base-border ;
15
- padding : $ small-spacing $base-spacing $base-spacing * 1.5 ;
15
+ padding : var ( -- small-spacing) $base-spacing $base-spacing * 1.5 ;
16
16
17
17
& ::before {
18
18
@include position (absolute , 0 0 0 -100vw );
@@ -123,14 +123,14 @@ ol.toc-level-1 {
123
123
font-size : $base-font-size * 0.9 ;
124
124
transition : max-height 0.5s ease ;
125
125
126
- & .selected {
126
+ & .selected {
127
127
max-height : 3000px ;
128
128
}
129
129
130
130
& :not (.selected ) {
131
131
overflow : hidden ;
132
132
max-height : 0 ;
133
- }
133
+ }
134
134
135
135
li {
136
136
border-left : 3px solid transparent ;
@@ -148,6 +148,6 @@ ol.toc-level-1 {
148
148
}
149
149
150
150
a {
151
- padding-left : $ small-spacing ;
151
+ padding-left : var ( -- small-spacing) ;
152
152
}
153
153
}
You can’t perform that action at this time.
0 commit comments