Skip to content

Commit 5b881c5

Browse files
committed
fix(autolinting): linting fixes
affects: @buildit/gravity-ui-web
1 parent 3593437 commit 5b881c5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

packages/gravity-ui-web/src/sass/03-elements/_headings.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ h4,
55
h5,
66
h6 {
77
font-weight: grav-font-weight('primary', 'bold');
8-
line-height: $grav-line-height-title;
98
letter-spacing: -0.025em;
9+
line-height: $grav-line-height-title;
1010
}
1111

1212
h1 {

packages/gravity-ui-web/src/sass/05-components/03-organisms/00-page-structure/_00-page-header.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ $grav-page-heading-trigger-breakpoint: grav-breakpoint(medium);
55
// is in case we want to give it any kind of full-bleed background styling.
66
// The child elements within therefore need to respect the maximum content
77
// width ($grav-page-content-max-width) themselves, where necessary.
8-
body>header,
8+
body > header,
99
.grav-c-page-header {
1010
margin-top: -1 * $grav-sp-page-content-inset;
1111

12-
>div {
12+
> div {
1313
display: flex;
1414
flex-wrap: wrap;
1515
padding-top: $grav-sp-m;
@@ -30,8 +30,8 @@ body>header,
3030
}
3131

3232
/* stylelint-disable-next-line selector-max-compound-selectors */
33-
&[aria-pressed]~.grav-c-nav-menu,
34-
&[aria-pressed='false']~.grav-c-nav-menu {
33+
&[aria-pressed] ~ .grav-c-nav-menu,
34+
&[aria-pressed='false'] ~ .grav-c-nav-menu {
3535
@include grav-transition(max-height, $grav-tr-speed-slow);
3636
max-height: 0;
3737
overflow: hidden;
@@ -45,7 +45,7 @@ body>header,
4545
}
4646

4747
/* stylelint-disable-next-line selector-max-compound-selectors */
48-
&[aria-pressed='true']~.grav-c-nav-menu {
48+
&[aria-pressed='true'] ~ .grav-c-nav-menu {
4949
max-height: 100vh;
5050

5151
@media (min-width: $grav-page-heading-trigger-breakpoint) {
@@ -66,7 +66,7 @@ body>header,
6666
}
6767

6868
// Special rule for adjacent elements
69-
+* {
69+
+ * {
7070
// This creates a gap equivalent to $grav-sp-vertical-gap-l applied to an element that has
7171
// the base font size, regardless of what the element's actual font-size is. This ensures
7272
// a consistent gap between the page header and the first item that follows it, regardless
@@ -119,11 +119,11 @@ body>header,
119119
// Header within a full-bleed body, should use its DIV
120120
// as a content container
121121
/* stylelint-disable-next-line selector-no-qualifying-type */
122-
body.grav-o-full-bleed>header,
122+
body.grav-o-full-bleed > header,
123123
.grav-o-full-bleed .grav-c-page-header {
124124
margin-top: 0;
125125

126-
>div {
126+
> div {
127127
@include grav-l-container;
128128
}
129129
}

packages/gravity-ui-web/src/sass/05-components/03-organisms/_hero.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
margin: (-1 * $container-vertical-shift) auto 0;
3030
padding: $container-vertical-shift $grav-sp-m $grav-sp-m $grav-sp-m;
3131

32-
>* {
32+
> * {
3333
max-width: $grav-page-content-max-width - ($container-horizontal-max-margin * 2) - ($container-horizontal-max-inset * 2);
3434
margin-right: auto;
3535
margin-left: auto;

0 commit comments

Comments
 (0)