1
1
:root {
2
2
// line-height
3
- --body-line-height : 1.4 ;
4
3
--heading-line-height : 1.2 ;
4
+ --body-line-height : 1.4 ;
5
5
}
6
6
7
7
body {
@@ -63,24 +63,21 @@ u, .text-underline {
63
63
}
64
64
65
65
.text-component {
66
- --component-body-line-height : calc (var (--body-line-height ) * var (--line-height-multiplier , 1 ));
67
- --component-heading-line-height : calc (var (--heading-line-height ) * var (--line-height-multiplier , 1 ));
68
-
69
66
h1 , h2 , h3 , h4 {
70
- line-height : var (--component- heading-line-height , 1.2 );
71
- margin-bottom : calc (var (--space-xxxs ) * var (--text-vspace-multiplier , 1 ));
67
+ line-height : calc ( var (--heading-line-height ) * var ( --line-height-multiplier , 1 ) );
68
+ margin-bottom : calc (var (--space-unit ) * 0.25 * var (--text-vspace-multiplier , 1 ));
72
69
}
73
70
74
71
h2 , h3 , h4 {
75
- margin-top : calc (var (--space-sm ) * var (--text-vspace-multiplier , 1 ));
72
+ margin-top : calc (var (--space-unit ) * 0.75 * var (--text-vspace-multiplier , 1 ));
76
73
}
77
74
78
75
p , blockquote , ul li , ol li {
79
- line-height : var (--component- body-line-height );
76
+ line-height : calc ( var (--body-line-height ) * var ( --line-height-multiplier , 1 ) );
80
77
}
81
78
82
79
ul , ol , p , blockquote , .text-component__block {
83
- margin-bottom : calc (var (--space-sm ) * var (--text-vspace-multiplier , 1 ));
80
+ margin-bottom : calc (var (--space-unit ) * 0.75 * var (--text-vspace-multiplier , 1 ));
84
81
}
85
82
86
83
ul , ol {
@@ -102,16 +99,16 @@ u, .text-underline {
102
99
103
100
figcaption {
104
101
text-align : center ;
105
- margin-top : var (--space-xs );
102
+ margin-top : calc ( var (--space-unit ) * 0.5 );
106
103
}
107
104
108
105
em {
109
106
font-style : italic ;
110
107
}
111
108
112
109
hr {
113
- margin-top : calc (var (--space-lg ) * var (--text-vspace-multiplier , 1 ));
114
- margin-bottom : calc (var (--space-lg ) * var (--text-vspace-multiplier , 1 ));
110
+ margin-top : calc (var (--space-unit ) * 2 * var (--text-vspace-multiplier , 1 ));
111
+ margin-bottom : calc (var (--space-unit ) * 2 * var (--text-vspace-multiplier , 1 ));
115
112
margin-left : auto ;
116
113
margin-right : auto ;
117
114
}
@@ -143,34 +140,34 @@ u, .text-underline {
143
140
144
141
.text-component__block--left {
145
142
float : left ;
146
- margin-right : calc (var (--space-sm ) * var (--text-vspace-multiplier , 1 ));
143
+ margin-right : calc (var (--space-unit ) * 0.75 * var (--text-vspace-multiplier , 1 ));
147
144
}
148
145
149
146
.text-component__block--right {
150
147
float : right ;
151
- margin-left : calc (var (--space-sm ) * var (--text-vspace-multiplier , 1 ));
148
+ margin-left : calc (var (--space-unit ) * 0.75 * var (--text-vspace-multiplier , 1 ));
152
149
}
153
150
}
154
151
155
152
// outset content
156
153
@include breakpoint (xl) {
157
154
.text-component__block--outset {
158
- width : calc (100% + 2 * var (--space-xxl ));
155
+ width : calc (100% + 10.5 * var (--space-unit ));
159
156
160
157
img {
161
158
width : 100% ;
162
159
}
163
160
}
164
161
165
162
.text-component__block--outset :not (.text-component__block--right ) {
166
- margin-left : calc (-1 * var (--space-xxl ));
163
+ margin-left : calc (-5.25 * var (--space-unit ));
167
164
}
168
165
169
166
.text-component__block--left , .text-component__block--right {
170
167
width : 50% ;
171
168
}
172
169
173
170
.text-component__block--right.text-component__block--outset {
174
- margin-right : calc (-1 * var (--space-xxl ));
171
+ margin-right : calc (-5.25 * var (--space-unit ));
175
172
}
176
173
}
0 commit comments