Deprecate sass spacing mixin, use css variables --spacing-x instead.
This commit is contained in:
parent
c97db934af
commit
73a555446b
6 changed files with 41 additions and 33 deletions
|
|
@ -20,8 +20,8 @@
|
|||
.box,
|
||||
%box {
|
||||
// Add vertical rhythm margins.
|
||||
@include margin-block(1);
|
||||
@include padding(.5);
|
||||
margin-block: var(--spacing-m);
|
||||
padding: var(--spacing-xs);
|
||||
border: 5px solid var(--color-border);
|
||||
|
||||
// Sass compiles this to the selector: .box__title, %box__title {}
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@
|
|||
%cards {
|
||||
@extend %grid-group;
|
||||
// Add vertical rhythm margins.
|
||||
@include margin-block(1);
|
||||
margin-block: var(--spacing-m);
|
||||
}
|
||||
|
||||
.card,
|
||||
%card {
|
||||
@include padding(.5);
|
||||
padding: var(--spacing-xs);
|
||||
border: 1px solid var(--color-border);
|
||||
|
||||
&--highlight {
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
.divider,
|
||||
%divider {
|
||||
// Add vertical rhythm margins.
|
||||
@include margin-block(1);
|
||||
margin-block: var(--spacing-m);
|
||||
border: 0;
|
||||
border-block-start: 1px solid var(--color-border);
|
||||
|
||||
// If used as a container, add a top margin to the first child.
|
||||
> :first-child {
|
||||
@include margin-top(1);
|
||||
margin-block-start: var(--spacing-m);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
}
|
||||
|
||||
.language-icon {
|
||||
@include margin-inline-end(.5);
|
||||
margin-inline-end: var(--spacing-xs);
|
||||
fill: var(--color-text);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
display: table-row;
|
||||
|
||||
&::before {
|
||||
@include padding-inline-end(.5);
|
||||
padding-inline-end: var(--spacing-xs);
|
||||
display: table-cell;
|
||||
content: '\2981';
|
||||
font-size: var(--fs-s);
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
counter-increment: table-ol;
|
||||
|
||||
&::before {
|
||||
@include padding-inline-end(.5);
|
||||
padding-inline-end: var(--spacing-xs);
|
||||
display: table-cell;
|
||||
content: counter(table-ol) '.';
|
||||
font-size: var(--fs-s);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
@extend %flex-inline;
|
||||
@extend %link-nav;
|
||||
// Add vertical rhythm margins.
|
||||
@include margin-block(1);
|
||||
margin-block: var(--spacing-m);
|
||||
justify-content: center;
|
||||
|
||||
.page-item {
|
||||
|
|
|
|||
Loading…
Reference in a new issue