Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stylelint errors #704

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/prev-next/prev-next.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ ul.lgd-prev-next__list li.lgd-prev-next__list-item {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: var(--button-padding-vertical) var(--button-padding-horizontal)
var(--button-padding-vertical) var(--button-padding-horizontal);
padding: var(--button-padding-vertical) var(--button-padding-horizontal) var(--button-padding-vertical) var(--button-padding-horizontal);
text-decoration: none;
color: var(--button-text-color);
border: var(--border);
Expand Down
260 changes: 65 additions & 195 deletions css/base/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ body {
We choose basic fonts that most people have in browser cache from visiting other websites.
This will help with page speed, rather than calling fonts from Google Fonts or somewhere.
*/
--font-primary: roboto, oxygen, ubuntu, cantarell, "Open Sans",
"Helvetica Neue", sans-serif;
--font-primary: roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--font-secondary: georgia, "Times New Roman", times, serif;
--font-heading-1: var(--font-secondary);
--font-heading-2: var(--font-secondary);
Expand All @@ -94,11 +93,7 @@ body {
--font-size-large: calc(var(--font-size) * 1.3125);
--font-size-larger: calc(var(--font-size) * 1.6875);
--font-size-largest: calc(var(--font-size) * 2.875);
--font-size-h1: clamp(
var(--font-size-larger),
10vw,
var(--font-size-largest)
);
--font-size-h1: clamp(var(--font-size-larger), 10vw, var(--font-size-largest));
--font-size-h2: clamp(var(--font-size-large), 8vw, var(--font-size-larger));
--font-size-h3: clamp(var(--font-size-medium), 6vw, var(--font-size-large));
--font-size-h4: var(--font-size-medium);
Expand Down Expand Up @@ -140,10 +135,8 @@ body {
--border-style: solid;
--border-radius: var(--spacing-smallest);
--border: var(--border-width) var(--border-style) var(--border-color);
--border-large: var(--border-width-large) var(--border-style)
var(--border-color);
--border-dark: var(--border-width) var(--border-style)
var(--border-color-dark);
--border-large: var(--border-width-large) var(--border-style) var(--border-color);
--border-dark: var(--border-width) var(--border-style) var(--border-color-dark);
--border-transparent: var(--border-width) var(--border-style) transparent;

/* Animation */
Expand Down Expand Up @@ -292,10 +285,7 @@ body {
--sidebar-exposed-form-item-spacing: var(--spacing);

/* Guide Navigation */
--section-spacing-vertical-guide-nav: calc(
var(--spacing-large) + 1rem
); /* 1rem to account for padding on left of bullets */

--section-spacing-vertical-guide-nav: calc(var(--spacing-large) + 1rem); /* 1rem to account for padding on left of bullets */
--section-spacing-horizontal-guide-nav: var(--spacing-large);
--guide-nav-column-count: 3;

Expand Down Expand Up @@ -501,188 +491,68 @@ body {
--color-page-section-background-color-6-text-color: var(--color-white);
--color-page-section-background-color-6-link-color: var(--color-white);
/* Page Sections - Newsroom Teasers */
--color-page-section-background-color-1-newsroom-teaser-background-color: var(
--color-white
);
--color-page-section-background-color-1-newsroom-teaser-text-color: var(
--color-black
);
--color-page-section-background-color-1-newsroom-teaser-link-color: var(
--color-black
);
--color-page-section-background-color-2-newsroom-teaser-background-color: var(
--color-white
);
--color-page-section-background-color-2-newsroom-teaser-text-color: var(
--color-black
);
--color-page-section-background-color-2-newsroom-teaser-link-color: var(
--color-black
);
--color-page-section-background-color-3-newsroom-teaser-background-color: var(
--color-black
);
--color-page-section-background-color-3-newsroom-teaser-text-color: var(
--color-white
);
--color-page-section-background-color-3-newsroom-teaser-link-color: var(
--color-white
);
--color-page-section-background-color-4-newsroom-teaser-background-color: var(
--color-white
);
--color-page-section-background-color-4-newsroom-teaser-text-color: var(
--color-black
);
--color-page-section-background-color-4-newsroom-teaser-link-color: var(
--color-black
);
--color-page-section-background-color-5-newsroom-teaser-background-color: var(
--color-white
);
--color-page-section-background-color-5-newsroom-teaser-text-color: var(
--color-black
);
--color-page-section-background-color-5-newsroom-teaser-link-color: var(
--color-black
);
--color-page-section-background-color-6-newsroom-teaser-background-color: var(
--color-white
);
--color-page-section-background-color-6-newsroom-teaser-text-color: var(
--color-black
);
--color-page-section-background-color-6-newsroom-teaser-link-color: var(
--color-black
);
--color-page-section-background-color-1-newsroom-teaser-background-color: var(--color-white);
--color-page-section-background-color-1-newsroom-teaser-text-color: var(--color-black);
--color-page-section-background-color-1-newsroom-teaser-link-color: var(--color-black);
--color-page-section-background-color-2-newsroom-teaser-background-color: var(--color-white);
--color-page-section-background-color-2-newsroom-teaser-text-color: var(--color-black);
--color-page-section-background-color-2-newsroom-teaser-link-color: var(--color-black);
--color-page-section-background-color-3-newsroom-teaser-background-color: var(--color-black);
--color-page-section-background-color-3-newsroom-teaser-text-color: var(--color-white);
--color-page-section-background-color-3-newsroom-teaser-link-color: var(--color-white);
--color-page-section-background-color-4-newsroom-teaser-background-color: var(--color-white);
--color-page-section-background-color-4-newsroom-teaser-text-color: var(--color-black);
--color-page-section-background-color-4-newsroom-teaser-link-color: var(--color-black);
--color-page-section-background-color-5-newsroom-teaser-background-color: var(--color-white);
--color-page-section-background-color-5-newsroom-teaser-text-color: var(--color-black);
--color-page-section-background-color-5-newsroom-teaser-link-color: var(--color-black);
--color-page-section-background-color-6-newsroom-teaser-background-color: var(--color-white);
--color-page-section-background-color-6-newsroom-teaser-text-color: var(--color-black);
--color-page-section-background-color-6-newsroom-teaser-link-color: var(--color-black);
/* Page Sections - Box Links */
--color-page-section-background-color-1-box-link-border-color: var(
--color-white
);
--color-page-section-background-color-1-box-link-background-color: var(
--color-white
);
--color-page-section-background-color-1-box-link-text-color: var(
--color-black
);
--color-page-section-background-color-1-box-link-link-color: var(
--color-black
);
--color-page-section-background-color-2-box-link-border-color: var(
--color-white
);
--color-page-section-background-color-2-box-link-background-color: var(
--color-white
);
--color-page-section-background-color-2-box-link-text-color: var(
--color-black
);
--color-page-section-background-color-2-box-link-link-color: var(
--color-black
);
--color-page-section-background-color-3-box-link-border-color: var(
--color-black
);
--color-page-section-background-color-3-box-link-background-color: var(
--color-black
);
--color-page-section-background-color-3-box-link-text-color: var(
--color-white
);
--color-page-section-background-color-3-box-link-link-color: var(
--color-white
);
--color-page-section-background-color-4-box-link-border-color: var(
--color-white
);
--color-page-section-background-color-4-box-link-background-color: var(
--color-white
);
--color-page-section-background-color-4-box-link-text-color: var(
--color-black
);
--color-page-section-background-color-4-box-link-link-color: var(
--color-black
);
--color-page-section-background-color-5-box-link-border-color: var(
--color-white
);
--color-page-section-background-color-5-box-link-background-color: var(
--color-white
);
--color-page-section-background-color-5-box-link-text-color: var(
--color-black
);
--color-page-section-background-color-5-box-link-link-color: var(
--color-black
);
--color-page-section-background-color-6-box-link-border-color: var(
--color-white
);
--color-page-section-background-color-6-box-link-background-color: var(
--color-white
);
--color-page-section-background-color-6-box-link-text-color: var(
--color-black
);
--color-page-section-background-color-6-box-link-link-color: var(
--color-black
);
--color-page-section-background-color-1-box-link-border-color: var(--color-white);
--color-page-section-background-color-1-box-link-background-color: var(--color-white);
--color-page-section-background-color-1-box-link-text-color: var(--color-black);
--color-page-section-background-color-1-box-link-link-color: var(--color-black);
--color-page-section-background-color-2-box-link-border-color: var(--color-white);
--color-page-section-background-color-2-box-link-background-color: var(--color-white);
--color-page-section-background-color-2-box-link-text-color: var(--color-black);
--color-page-section-background-color-2-box-link-link-color: var(--color-black);
--color-page-section-background-color-3-box-link-border-color: var(--color-black);
--color-page-section-background-color-3-box-link-background-color: var(--color-black);
--color-page-section-background-color-3-box-link-text-color: var(--color-white);
--color-page-section-background-color-3-box-link-link-color: var(--color-white);
--color-page-section-background-color-4-box-link-border-color: var(--color-white);
--color-page-section-background-color-4-box-link-background-color: var(--color-white);
--color-page-section-background-color-4-box-link-text-color: var(--color-black);
--color-page-section-background-color-4-box-link-link-color: var(--color-black);
--color-page-section-background-color-5-box-link-border-color: var(--color-white);
--color-page-section-background-color-5-box-link-background-color: var(--color-white);
--color-page-section-background-color-5-box-link-text-color: var(--color-black);
--color-page-section-background-color-5-box-link-link-color: var(--color-black);
--color-page-section-background-color-6-box-link-border-color: var(--color-white);
--color-page-section-background-color-6-box-link-background-color: var(--color-white);
--color-page-section-background-color-6-box-link-text-color: var(--color-black);
--color-page-section-background-color-6-box-link-link-color: var(--color-black);
/* Page Sections - Featured Subsites */
--color-page-section-background-color-1-featured-subsite-background-color: var(
--color-grey-lightest
);
--color-page-section-background-color-1-featured-subsite-text-color: var(
--color-black
);
--color-page-section-background-color-1-featured-subsite-link-color: var(
--color-black
);
--color-page-section-background-color-2-featured-subsite-background-color: var(
--color-grey-lightest
);
--color-page-section-background-color-2-featured-subsite-text-color: var(
--color-black
);
--color-page-section-background-color-2-featured-subsite-link-color: var(
--color-black
);
--color-page-section-background-color-3-featured-subsite-background-color: var(
--color-black
);
--color-page-section-background-color-3-featured-subsite-text-color: var(
--color-grey-lightest
);
--color-page-section-background-color-3-featured-subsite-link-color: var(
--color-grey-lightest
);
--color-page-section-background-color-4-featured-subsite-background-color: var(
--color-grey-lightest
);
--color-page-section-background-color-4-featured-subsite-text-color: var(
--color-black
);
--color-page-section-background-color-4-featured-subsite-link-color: var(
--color-black
);
--color-page-section-background-color-5-featured-subsite-background-color: var(
--color-grey-lightest
);
--color-page-section-background-color-5-featured-subsite-text-color: var(
--color-black
);
--color-page-section-background-color-5-featured-subsite-link-color: var(
--color-black
);
--color-page-section-background-color-6-featured-subsite-background-color: var(
--color-grey-lightest
);
--color-page-section-background-color-6-featured-subsite-text-color: var(
--color-black
);
--color-page-section-background-color-6-featured-subsite-link-color: var(
--color-black
);
--color-page-section-background-color-1-featured-subsite-background-color: var(--color-grey-lightest);
--color-page-section-background-color-1-featured-subsite-text-color: var(--color-black);
--color-page-section-background-color-1-featured-subsite-link-color: var(--color-black);
--color-page-section-background-color-2-featured-subsite-background-color: var(--color-grey-lightest);
--color-page-section-background-color-2-featured-subsite-text-color: var(--color-black);
--color-page-section-background-color-2-featured-subsite-link-color: var(--color-black);
--color-page-section-background-color-3-featured-subsite-background-color: var(--color-black);
--color-page-section-background-color-3-featured-subsite-text-color: var(--color-grey-lightest);
--color-page-section-background-color-3-featured-subsite-link-color: var(--color-grey-lightest);
--color-page-section-background-color-4-featured-subsite-background-color: var(--color-grey-lightest);
--color-page-section-background-color-4-featured-subsite-text-color: var(--color-black);
--color-page-section-background-color-4-featured-subsite-link-color: var(--color-black);
--color-page-section-background-color-5-featured-subsite-background-color: var(--color-grey-lightest);
--color-page-section-background-color-5-featured-subsite-text-color: var(--color-black);
--color-page-section-background-color-5-featured-subsite-link-color: var(--color-black);
--color-page-section-background-color-6-featured-subsite-background-color: var(--color-grey-lightest);
--color-page-section-background-color-6-featured-subsite-text-color: var(--color-black);
--color-page-section-background-color-6-featured-subsite-link-color: var(--color-black);

/* Add to Calendar */
--add-to-calendar-dialog-max-width: 80%;
Expand Down
9 changes: 3 additions & 6 deletions css/components/alert-banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ dialog.localgov-alert-banner::backdrop {
}

.localgov-alert-banner__close {
padding: var(--alert-banner-close-padding-vertical)
var(--alert-banner-close-padding-horizontal);
padding: var(--alert-banner-close-padding-vertical) var(--alert-banner-close-padding-horizontal);
color: var(--alert-banner-color);
border: var(--alert-banner-close-border);
border-color: var(--alert-banner-close-border-color);
Expand Down Expand Up @@ -75,10 +74,8 @@ dialog.localgov-alert-banner::backdrop {
}

.localgov-alert-banner__inner {
margin: var(--alert-banner-inner-margin-vertical)
var(--alert-banner-inner-margin-horizontal);
padding: var(--alert-banner-inner-padding-vertical)
var(--alert-banner-inner-padding-horizontal);
margin: var(--alert-banner-inner-margin-vertical) var(--alert-banner-inner-margin-horizontal);
padding: var(--alert-banner-inner-padding-vertical) var(--alert-banner-inner-padding-horizontal);
}

.localgov-alert-banner--announcement .localgov-alert-banner__title {
Expand Down
5 changes: 2 additions & 3 deletions css/components/banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
.banner--primary .banner__content {
position: relative;
max-width: var(--banner-content-width);
margin: calc(var(--banner-content-margin) * -1) auto
var(--banner-content-margin);
margin: calc(var(--banner-content-margin) * -1) auto var(--banner-content-margin);
padding: var(--banner-content-padding);
color: var(--banner-content-text-color);
background-color: var(--banner-content-bg-color);
Expand All @@ -34,6 +33,6 @@
color: var(--color-banner-title-link-hover);
}
.banner__link.banner__link:focus-visible {
outline-offset: 2px;
outline: 2px dashed var(--color-banner-title-link-hover);
outline-offset: 2px;
}
4 changes: 1 addition & 3 deletions css/components/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
gap: var(--vertical-rhythm-spacing);
}

.field--name-localgov-blog-channel-featured
> .field__items
> .field__item:first-of-type {
.field--name-localgov-blog-channel-featured > .field__items > .field__item:first-of-type {
grid-column-start: 1;
grid-column-end: 3;
padding: var(--vertical-rhythm-spacing);
Expand Down
3 changes: 1 addition & 2 deletions css/components/breadcrumbs.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
}

.breadcrumbs {
padding: var(--breadcrumbs-padding-vertical)
var(--breadcrumbs-padding-horizontal);
padding: var(--breadcrumbs-padding-vertical) var(--breadcrumbs-padding-horizontal);
border-block-end: var(--breadcrumbs-border);
}

Expand Down
6 changes: 1 addition & 5 deletions css/components/callout-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
.call-out-box--has-image .call-out-box__content {
width: 75%;
padding-inline-end: 20%;
background: linear-gradient(
to right,
var(--call-out-box-bg-color) 75%,
transparent
);
background: linear-gradient(to right, var(--call-out-box-bg-color) 75%, transparent);
}
}
4 changes: 1 addition & 3 deletions css/components/directories.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
margin-block-end: var(--vertical-rhythm-spacing);
}

.localgov-directory__content
.views-element-container
+ .views-element-container {
.localgov-directory__content .views-element-container + .views-element-container {
margin-block-start: var(--vertical-rhythm-spacing);
}
Loading
Loading