Skip to content

Commit 19f941c

Browse files
.stylelintrc: Change to "declaration-empty-line-before": "never",, Ref: DEV-449
1 parent 0e72a20 commit 19f941c

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.stylelintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"comment-whitespace-inside": "always",
7878
"selector-max-specificity": "0,5,5",
7979
"block-no-empty": true,
80-
"declaration-empty-line-before": null,
80+
"declaration-empty-line-before": "never",
8181
"font-family-no-missing-generic-family-keyword": true,
8282
"font-family-name-quotes": "always-where-required",
8383
"at-rule-no-unknown": null,
@@ -206,4 +206,4 @@
206206
"background"
207207
]
208208
}
209-
}
209+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[Unreleased]
2+
* .stylelintrc: Change to `"declaration-empty-line-before": "never",`
3+
14
### 9.6.2: 2025-08-29
25

36
* Fix deprecated workflow that still uses devpackages, fix build DEV-83, DEV-385

sass/navigation/_nav-desktop.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
--color-hover-sub-menu: var(--color-white);
2828
--color-background-sub-menu: var(--color-black);
2929
--gap-dropdown: 1.6rem;
30-
3130
list-style: none;
3231
width: unset;
3332
}
@@ -56,7 +55,7 @@
5655
margin: 0;
5756
padding: 0;
5857
position: relative;
59-
row-gap: .625rem;
58+
row-gap: 0.625rem;
6059
}
6160

6261
// Navigation list item
@@ -109,7 +108,7 @@
109108

110109
// Let's make space for the nav-toggle/arrow
111110
.menu-item.menu-item-has-children a {
112-
transition: background-color .2s cubic-bezier(.19, 1, .22, 1);
111+
transition: background-color 0.2s cubic-bezier(0.19, 1, 0.22, 1);
113112
}
114113

115114
.menu-item > a:hover,
@@ -140,14 +139,12 @@
140139
.nav-primary > ul:first-of-type > .menu-item-has-children:focus::before,
141140
.nav-primary > ul:first-of-type > .menu-item-has-children:hover::before {
142141
transform: scale(1);
143-
transition: all .2s cubic-bezier(.19, 1, .22, 1);
142+
transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
144143
}
145144

146-
147145
// stop flash of submenus on page load, reduce CLS
148146
// add progressive enhancement for no JS
149147
.no-js {
150-
151148
// pretend its out of viewport since we cant measure it
152149
.sub-menu {
153150
display: none;
@@ -196,7 +193,7 @@
196193
padding-top: 0;
197194
position: absolute;
198195
top: 100%;
199-
transition: all .2s cubic-bezier(.19, 1, .22, 1);
196+
transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
200197
width: var(--width-sub-menu);
201198
z-index: 9;
202199

@@ -279,7 +276,7 @@
279276
// Toggle icon dimensions on desktop
280277
.dropdown-toggle svg {
281278
height: var(--dropdown-toggle-size);
282-
transition: all .35s cubic-bezier(.19, 1, .22, 1);
279+
transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
283280
width: var(--dropdown-toggle-size);
284281
}
285282

@@ -325,8 +322,14 @@
325322

326323
// Smooth animation
327324
// stylelint-disable-next-line selector-max-specificity, selector-max-class
328-
.menu-item.menu-item-has-children .menu-item.menu-item-has-children.hover-intent > .dropdown-toggle svg,
329-
.menu-item.menu-item-has-children .menu-item.menu-item-has-children:focus > .dropdown-toggle svg {
325+
.menu-item.menu-item-has-children
326+
.menu-item.menu-item-has-children.hover-intent
327+
> .dropdown-toggle
328+
svg,
329+
.menu-item.menu-item-has-children
330+
.menu-item.menu-item-has-children:focus
331+
> .dropdown-toggle
332+
svg {
330333
transform: translateY(0%) rotate(90deg);
331334
}
332335

0 commit comments

Comments
 (0)