File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/site-kit/src/lib Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 116
116
border : 1px solid var (--sk-back-5 );
117
117
border-radius : var (--sk-border-radius );
118
118
overflow : hidden ;
119
- margin : 2 rem 0 ;
119
+ margin : calc ( 0.5 * var ( --sk-line-height-body )) 0 ;
120
120
/* background: var(--sk-back-3); */
121
121
122
122
@media (min-width : 767px ) {
123
- margin : 3 rem 0 ;
123
+ margin : var ( --sk-line-height-body ) 0 ;
124
124
}
125
125
126
126
.controls {
Original file line number Diff line number Diff line change 39
39
--sk-font-size-ui-large : 3rem ;
40
40
--sk-font-size-mono : 1.4rem ;
41
41
42
- --sk-line-height-body : 1.5 ;
42
+ /* doing it this way (rather than just `1.5`) means it has a unit, and can be used elsewhere */
43
+ --sk-line-height-body : calc (1.5 * var (--sk-font-size-body ));
44
+ --sk-line-height-body-small : calc (1.5 * var (--sk-font-size-body-small ));
43
45
44
46
--sk-font-h1 : 500 var (--sk-font-size-h1 ) / 1.2 var (--sk-font-family-heading );
45
47
--sk-font-h2 : 500 var (--sk-font-size-h2 ) / 1.2 var (--sk-font-family-heading );
You can’t perform that action at this time.
0 commit comments