Skip to content

Commit

Permalink
fix(autolinting): linting fixes
Browse files Browse the repository at this point in the history
affects: @buildit/gravity-ui-web
  • Loading branch information
allancorbett committed Aug 10, 2020
1 parent 3593437 commit 5b881c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ h4,
h5,
h6 {
font-weight: grav-font-weight('primary', 'bold');
line-height: $grav-line-height-title;
letter-spacing: -0.025em;
line-height: $grav-line-height-title;
}

h1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ $grav-page-heading-trigger-breakpoint: grav-breakpoint(medium);
// is in case we want to give it any kind of full-bleed background styling.
// The child elements within therefore need to respect the maximum content
// width ($grav-page-content-max-width) themselves, where necessary.
body>header,
body > header,
.grav-c-page-header {
margin-top: -1 * $grav-sp-page-content-inset;

>div {
> div {
display: flex;
flex-wrap: wrap;
padding-top: $grav-sp-m;
Expand All @@ -30,8 +30,8 @@ body>header,
}

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

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

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

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

>div {
> div {
@include grav-l-container;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
margin: (-1 * $container-vertical-shift) auto 0;
padding: $container-vertical-shift $grav-sp-m $grav-sp-m $grav-sp-m;

>* {
> * {
max-width: $grav-page-content-max-width - ($container-horizontal-max-margin * 2) - ($container-horizontal-max-inset * 2);
margin-right: auto;
margin-left: auto;
Expand Down

0 comments on commit 5b881c5

Please sign in to comment.