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

chore: upgrade to stylelint 16 #727

Merged
merged 1 commit into from
Dec 24, 2024
Merged
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
1 change: 1 addition & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": ["config:recommended"],
"enabled": true,
"baseBranches": ["main"],
"branchNameStrict": true,
Expand Down
8 changes: 2 additions & 6 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"rules": {
"declaration-block-no-redundant-longhand-properties": [true, { "severity": "warning" }],
"no-descending-specificity": [true, { "severity": "warning" }]
}
}
"extends": ["stylelint-config-standard"]
}
6 changes: 3 additions & 3 deletions blocks/author-box/author-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ main .author-box-container > div {
display: none;
}

@media (min-width: 600px) {
@media (width >= 600px) {
main .author-box {
margin-left: auto;
margin-right: auto;
Expand All @@ -96,7 +96,7 @@ main .author-box-container > div {
}
}

@media (min-width: 768px) {
@media (width >= 768px) {
main .author-box-info .blog-author-blurb {
max-width: 380px;
margin-left: 20px;
Expand All @@ -108,7 +108,7 @@ main .author-box-container > div {
}
}

@media (min-width: 900px) {
@media (width >= 900px) {
main .author-box-info .blog-author-blurb {
max-width: 450px;
font-size: 20px;
Expand Down
4 changes: 2 additions & 2 deletions blocks/availability/availability.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
max-width: calc(100% - 6vw);
}

@media (min-width: 900px) {
@media (width >= 900px) {
.availability .tooltip-wrapper {
max-width: calc(100% - 6rem);
}
Expand Down Expand Up @@ -63,7 +63,7 @@
transition: opacity .4s;
}

@media (min-width: 900px) {
@media (width >= 900px) {
.availability .tooltip {
transform: translate(-50%, calc(-50% - (12px + var(--type-detail-m-lh))));
}
Expand Down
6 changes: 3 additions & 3 deletions blocks/card-list/card-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
margin-bottom: var(--spacing-xs);
}

@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
.card-list .cards-card-body h3 {
font-size: var(--type-heading-l-size);
line-height: var(--type-heading-l-lh);
margin-top: var(--spacing-m);
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.card-list > ul {
grid-gap: var(--spacing-s);
}
Expand All @@ -73,7 +73,7 @@
cursor: pointer;
}

.card-list-wrapper .cards .cards-card-details p.description:not([aria-expanded="true"]):not(.noextra)::after {
.card-list-wrapper .cards .cards-card-details p.description:not([aria-expanded="true"], .noextra)::after {
content: '...';
}

Expand Down
9 changes: 3 additions & 6 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@
content: '';
position: absolute;
z-index: -1;
top: 0;
left: 0;
right: 0;
bottom: 0;
inset: 0;
opacity: 0;
box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
transition: opacity 0.3s ease-in-out;
Expand Down Expand Up @@ -107,13 +104,13 @@
justify-content: space-between;
}

@media (min-width: 900px) {
@media (width >= 900px) {
.cards.two .cards-card, .cards.three .cards-card, .cards.four .cards-card {
width: calc(50% - 1rem);
}
}

@media (min-width: 1200px) {
@media (width >= 1200px) {
.cards.three .cards-card {
width: calc(33% - 1rem);
}
Expand Down
6 changes: 3 additions & 3 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ main.without-full-width-hero .section.content .columns-wrapper {
margin-top: var(--spacing-m);
}

@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
/* tall cards */
.columns.tall > div > div {
padding: var(--spacing-xl) var(--spacing-s) var(--spacing-m);
Expand Down Expand Up @@ -219,7 +219,7 @@ main.without-full-width-hero .section.content .columns-wrapper {
/* adapt for 3 column layout in redesign for 4-columns - End */
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.columns-wrapper {
margin: var(--spacing-xl) 0 0;
}
Expand Down Expand Up @@ -295,7 +295,7 @@ main.without-full-width-hero .section.content .columns-wrapper {
}
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.columns.colored-icon h3 {
line-height: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/copy/copy.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
padding: 5px 20px;
}

@media (min-width: 900px) {
@media (width >= 900px) {
.copy > div {
flex-direction: unset;
justify-content: stretch;
Expand Down
4 changes: 2 additions & 2 deletions blocks/feature-list/feature-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
max-width: 100%;
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.feature-list > div:last-of-type {
grid-template-columns: 1fr 1fr;
grid-template-areas: "copy image";
grid-gap: var(--spacing-xxl);
}
}

@media screen and (min-width: 1440px) {
@media screen and (width >= 1440px) {
.feature-list.contained > div {
max-width: var(--grid-desktop-container-width);
}
Expand Down
7 changes: 4 additions & 3 deletions blocks/feed/feed.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@
.feed.recent .desc {
/* stylelint-disable-next-line value-no-vendor-prefix */
display: -webkit-box;
line-clamp: 5;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
.feed.recent > div > div {
grid-template-columns: 1fr 1fr 1fr;
grid-gap: var(--spacing-xs);
Expand All @@ -82,7 +83,7 @@
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.feed.recent > div {
margin-bottom: 0;
flex-direction: column;
Expand Down Expand Up @@ -120,7 +121,7 @@
}
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.feed.recent h3 {
font-size: var(--type-heading-l-size);
line-height: var(--type-heading-l-lh);
Expand Down
4 changes: 2 additions & 2 deletions blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ footer .new-footer {
margin-right: 0;
}

@media screen and (min-width: 600px) {
@media screen and (width >= 600px) {
footer .new-footer {
margin: auto;
}
Expand All @@ -135,7 +135,7 @@ footer .new-footer {
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.redesign .footer-wrapper {
padding-top: var(--spacing-xxl);
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/form/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ main .form button {
font-family: var(--body-font-family);
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
main .form {
padding: var(--spacing-ml);
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/get-started/get-started.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
max-width: 128px;
}

@media (min-width: 900px) {
@media (width >= 900px) {
.get-started > div:last-of-type {
display: grid;
grid-template-columns: 1fr 1fr;
Expand All @@ -46,7 +46,7 @@
}
}

@media (min-width: 1440px) {
@media (width >= 1440px) {
.get-started > div {
max-width: 1200px;
}
Expand Down
20 changes: 7 additions & 13 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--nav-animation-transition: all 0.2s ease-in-out;
}

@media screen and (min-width: 600px) {
@media screen and (width >= 600px) {
:root {
--curtain-width: calc(100% - var(--grid-tablet-container-width));
}
Expand Down Expand Up @@ -57,7 +57,7 @@ header .gnav {
"navlist navlist navlist navlist mobileCurtain";
}

@media (max-width: 1199px) {
@media (width <= 1199px) {
.franklin button.gnav-toggle,
.franklin .brand-wrapper,
.franklin .gnav-brand-wrapper,
Expand Down Expand Up @@ -443,10 +443,7 @@ button.gnav-toggle::after {
/* curtain */
.gnav-curtain {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
transition: var(--nav-animation-transition);
pointer-events: none;
}
Expand Down Expand Up @@ -618,16 +615,13 @@ button.gnav-toggle::after {
content: "";
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: -4px;
right: -4px;
inset: 0 -4px;
background-color: rgb(255 208 0 / 30%);
border-radius: 4px;
}

/* redesign responsive */
@media screen and (min-width: 600px) {
@media screen and (width >= 600px) {
.franklin .gnav .gnav-brand {
font-size: 16px;
line-height: 18px;
Expand All @@ -638,7 +632,7 @@ button.gnav-toggle::after {
}
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.gnav .gnav-cta-button-wrapper.mobile {
display: none;
}
Expand Down Expand Up @@ -915,7 +909,7 @@ button.gnav-toggle::after {
}
}

@media (min-width: 1440px) {
@media (width >= 1440px) {
.gnav,
.gnav-search-field,
.gnav-search-results {
Expand Down
12 changes: 6 additions & 6 deletions blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
margin-bottom: -10px;
}

@media screen and (min-width: 600px) {
@media screen and (width >= 600px) {
.inner-content p {
display: block;
line-height: 1.5;
Expand All @@ -111,7 +111,7 @@
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.inner-content p {
margin-bottom: var(--spacing-m);
}
Expand Down Expand Up @@ -168,7 +168,7 @@
height: auto;
}

@media screen and (min-width: 768px) {
@media screen and (width >= 768px) {
.hero.side-by-side .contained-wrapper{
width: 90vw;
grid-template-columns: 1fr 1fr;
Expand All @@ -194,7 +194,7 @@
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.hero.side-by-side .inner-content h1 {
font-size: var(--type-heading-xxl-size);
margin: var(--spacing-s) 0;
Expand Down Expand Up @@ -222,13 +222,13 @@
margin-bottom: 0;
}

@media screen and (min-width: 600px) {
@media screen and (width >= 600px) {
.hero.multiple-cta ul.cta-button-list {
margin-top: 8px;
}
}

@media screen and (min-width: 900px) {
@media screen and (width >= 900px) {
.hero.multiple-cta ul.cta-button-list {
margin-top: 16px;
}
Expand Down
8 changes: 3 additions & 5 deletions blocks/logo-wall/logo-wall.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
display: flex;
flex-wrap: wrap;
justify-content: center;
column-gap: var(--spacing-s);
row-gap: var(--spacing-s);
gap: var(--spacing-s);
width: 100%;
max-width: 740px;
padding-inline-start: 0;
Expand Down Expand Up @@ -55,7 +54,7 @@
max-height: 80px;
}

@media (min-width: 900px) {
@media (width >= 900px) {
.logo-wall {
padding: var(--spacing-xxl) 0;
}
Expand All @@ -65,8 +64,7 @@
}

.logo-wall .logo-wall-list {
column-gap: var(--spacing-xl);
row-gap: var(--spacing-l);
gap: var(--spacing-l) var(--spacing-xl);
max-width: 1200px;
}

Expand Down
Loading
Loading