Skip to content

Commit

Permalink
Fix stylelint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed May 24, 2024
1 parent eaa5b3a commit 05b6d82
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 30 deletions.
3 changes: 2 additions & 1 deletion assets/scss/abstracts/_mobile-only-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// @include mobile-only;
// }

// Mixin for visually hiding elements for accessibility (a11y) with mobile-only visibility
// Mixin for visually hiding elements for accessibility (a11y) with
// mobile-only visibility
@mixin mobile-only {
border: 0;
clip: rect(0, 0, 0, 0);
Expand Down
3 changes: 1 addition & 2 deletions assets/scss/abstracts/_utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ figure[class*=' blur-'] {
.site-header {
position: sticky;
top: var(
--wp-admin--admin-bar--height,
0
--wp-admin--admin-bar--height, 0
) !important; /* stylelint-disable-line declaration-no-important */
transition: top 0.5s;
z-index: 100;
Expand Down
4 changes: 1 addition & 3 deletions assets/scss/blocks/core/cover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
.has-background-dim:not([class*='-background-color']) {
background-color: transparent;
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.6),
rgba(0, 0, 0, 1)
to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)
);
opacity: 1;
}
Expand Down
13 changes: 2 additions & 11 deletions assets/scss/blocks/core/group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@
&.wp-block-group-is-layout-constrained {
&.alignfull {
> :where(
[class*='wp-block-']:not(.alignfull):not([class*='__']),
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol
) {
[class*='wp-block-']:not(.alignfull):not([class*='__']), p, h1, h2, h3, h4, h5, h6, ul, ol
) {
padding-left: var(
--wp--style--root--padding-left
) !important; /* stylelint-disable-line declaration-no-important */
Expand Down
7 changes: 2 additions & 5 deletions assets/scss/blocks/core/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@
display: none !important; /* stylelint-disable-line declaration-no-important */
}
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(
.is-menu-open
) {
.is-menu-open) {
background-color: inherit;
display: block !important; /* stylelint-disable-line declaration-no-important */
position: relative;
Expand All @@ -163,9 +162,7 @@
display: flex;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(
.is-menu-open
) {
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
display: none;
}
}
3 changes: 2 additions & 1 deletion assets/scss/components/_components.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// 'components/' is for files styling components (e.g., posts, comments, grid items).
// 'components/' is for files styling components (e.g., posts,
// comments, grid items).
@import './forms';
3 changes: 2 additions & 1 deletion assets/scss/layout/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 'layout/' includes styles for layout elements (grids, headers, footers, etc.).
// 'layout/' includes styles for layout elements (grids,
// headers, footers, etc.).
@import './header';
@import './footer';
6 changes: 1 addition & 5 deletions assets/scss/pages/_404.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
content: '';
display: block;
left: 20vw;
vertical-align: middle;
width: 19.125rem;
height: 17.8125rem;
}
Expand Down Expand Up @@ -52,10 +51,7 @@
animation: glitchBotom 1.5s linear infinite;
clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
-webkit-clip-path: polygon(
0 67%,
100% 67%,
100% 100%,
0 100%
0 67%, 100% 67%, 100% 100%, 0 100%
);
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/scss/pages/_pages.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// 'templates/' houses files with template-specific styles (e.g., front page template styles, no-sidebar styles).
// 'templates/' houses files with template-specific styles (e.g.,
// front page template styles, no-sidebar styles).
@import './archive';
@import './search';
@import './404';

0 comments on commit 05b6d82

Please sign in to comment.