Skip to content

Commit f262b08

Browse files
committed
Merge branch 'main' of https://github.com/coreui/coreui
2 parents 47ff921 + 6fdaecc commit f262b08

28 files changed

+572
-426
lines changed

package-lock.json

Lines changed: 373 additions & 312 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,25 @@
106106
"@rollup/plugin-node-resolve": "^16.0.3",
107107
"@rollup/plugin-replace": "^6.0.3",
108108
"@stackblitz/sdk": "^1.11.0",
109-
"autoprefixer": "^10.4.22",
109+
"autoprefixer": "^10.4.23",
110110
"bootstrap": "^5.3.8",
111111
"bundlewatch": "^0.4.1",
112112
"clean-css-cli": "^5.6.3",
113113
"clipboard": "^2.0.11",
114114
"cross-env": "^10.1.0",
115-
"eslint": "^9.39.1",
115+
"eslint": "^9.39.2",
116116
"eslint-config-xo": "0.49.0",
117117
"eslint-plugin-html": "^8.1.3",
118118
"eslint-plugin-import": "^2.32.0",
119119
"eslint-plugin-unicorn": "^62.0.0",
120-
"find-unused-sass-variables": "^6.1.0",
120+
"find-unused-sass-variables": "^6.1.1",
121121
"globals": "^16.5.0",
122122
"globby": "^16.0.0",
123123
"hammer-simulator": "0.0.1",
124124
"html-entities": "^2.6.0",
125125
"hugo-bin": "^0.149.2",
126126
"ip": "^2.0.1",
127-
"jasmine": "^5.12.0",
127+
"jasmine": "^5.13.0",
128128
"jquery": "^3.7.1",
129129
"karma": "^6.4.4",
130130
"karma-browserstack-launcher": "1.6.0",
@@ -142,12 +142,12 @@
142142
"postcss-cli": "^11.0.1",
143143
"postcss-combine-duplicated-selectors": "^10.0.3",
144144
"rimraf": "^6.1.2",
145-
"rollup": "^4.53.3",
145+
"rollup": "^4.53.5",
146146
"rollup-plugin-istanbul": "^5.0.0",
147-
"sass-embedded": "^1.93.3",
148-
"sass-true": "^10.0.0",
147+
"sass-embedded": "^1.97.0",
148+
"sass-true": "^10.1.0",
149149
"shelljs": "^0.10.0",
150-
"stylelint": "^16.26.0",
150+
"stylelint": "^16.26.1",
151151
"stylelint-config-twbs-bootstrap": "^16.1.0",
152152
"terser": "5.44.1",
153153
"vnu-jar": "25.11.25"

scss/_buttons.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
4040
line-height: var(--#{$prefix}btn-line-height);
4141
color: var(--#{$prefix}btn-color);
4242
text-align: center;
43-
text-decoration: if($link-decoration == none, null, none);
43+
text-decoration: if(not sass($link-decoration == none): none);
4444
white-space: $btn-white-space;
4545
vertical-align: middle;
46-
cursor: if($enable-button-pointers, pointer, null);
46+
// stylelint-disable-next-line scss/at-function-named-arguments
47+
cursor: if(sass($enable-button-pointers): pointer);
4748
user-select: none;
4849
border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
4950
@include border-radius(var(--#{$prefix}btn-border-radius));
@@ -53,7 +54,8 @@
5354

5455
&:hover {
5556
color: var(--#{$prefix}btn-hover-color);
56-
text-decoration: if($link-hover-decoration == underline, none, null);
57+
// stylelint-disable-next-line scss/at-function-named-arguments
58+
text-decoration: if(sass($link-hover-decoration == underline): none);
5759
background-color: var(--#{$prefix}btn-hover-bg);
5860
border-color: var(--#{$prefix}btn-hover-border-color);
5961
}
@@ -97,7 +99,8 @@
9799
color: var(--#{$prefix}btn-active-color);
98100
background-color: var(--#{$prefix}btn-active-bg);
99101
// Remove CSS gradients if they're enabled
100-
background-image: if($enable-gradients, none, null);
102+
// stylelint-disable-next-line scss/at-function-named-arguments
103+
background-image: if(sass($enable-gradients): none);
101104
border-color: var(--#{$prefix}btn-active-border-color);
102105
@include box-shadow(var(--#{$prefix}btn-active-shadow));
103106

@@ -126,7 +129,8 @@
126129
color: var(--#{$prefix}btn-disabled-color);
127130
pointer-events: none;
128131
background-color: var(--#{$prefix}btn-disabled-bg);
129-
background-image: if($enable-gradients, none, null);
132+
// stylelint-disable-next-line scss/at-function-named-arguments
133+
background-image: if(sass($enable-gradients): none);
130134
border-color: var(--#{$prefix}btn-disabled-border-color);
131135
opacity: var(--#{$prefix}btn-disabled-opacity);
132136
@include box-shadow(none);

scss/_card.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898

9999
.card-link {
100100
&:hover {
101-
text-decoration: if($link-hover-decoration == underline, none, null);
101+
// stylelint-disable-next-line scss/at-function-named-arguments
102+
text-decoration: if(sass($link-hover-decoration == underline): none);
102103
}
103104

104105
+ .card-link {

scss/_carousel.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,13 @@
123123
}
124124
.carousel-control-prev {
125125
left: 0;
126-
background-image: if($enable-gradients, linear-gradient(90deg, rgba($black, .25), rgba($black, .001)), null);
126+
// stylelint-disable-next-line scss/at-function-named-arguments
127+
background-image: if(sass($enable-gradients): linear-gradient(90deg, rgba($black, .25), rgba($black, .001)));
127128
}
128129
.carousel-control-next {
129130
right: 0;
130-
background-image: if($enable-gradients, linear-gradient(270deg, rgba($black, .25), rgba($black, .001)), null);
131+
// stylelint-disable-next-line scss/at-function-named-arguments
132+
background-image: if(sass($enable-gradients): linear-gradient(270deg, rgba($black, .25), rgba($black, .001)));
131133
}
132134

133135
// Icons for within

scss/_dropdown.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
font-weight: $font-weight-normal;
192192
color: var(--#{$prefix}dropdown-link-color);
193193
text-align: inherit; // For `<button>`s
194-
text-decoration: if($link-decoration == none, null, none);
194+
text-decoration: if(not sass($link-decoration == none): none);
195195
white-space: nowrap; // prevent links from randomly breaking onto new lines
196196
background-color: transparent; // For `<button>`s
197197
border: 0; // For `<button>`s
@@ -200,7 +200,8 @@
200200
&:hover,
201201
&:focus {
202202
color: var(--#{$prefix}dropdown-link-hover-color);
203-
text-decoration: if($link-hover-decoration == underline, none, null);
203+
// stylelint-disable-next-line scss/at-function-named-arguments
204+
text-decoration: if(sass($link-hover-decoration == underline): none);
204205
@include gradient-bg(var(--#{$prefix}dropdown-link-hover-bg));
205206
}
206207

@@ -217,7 +218,8 @@
217218
pointer-events: none;
218219
background-color: transparent;
219220
// Remove CSS gradients if they're enabled
220-
background-image: if($enable-gradients, none, null);
221+
// stylelint-disable-next-line scss/at-function-named-arguments
222+
background-image: if(sass($enable-gradients): none);
221223
}
222224
}
223225

scss/_header.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,14 @@
9191
margin-inline-end: $header-brand-margin-end;
9292
@include font-size($header-brand-font-size);
9393
color: var(--#{$prefix}header-brand-color);
94-
text-decoration: if($link-decoration == none, null, none);
94+
text-decoration: if(not sass($link-decoration == none): none);
9595
white-space: nowrap;
9696

9797
&:hover,
9898
&:focus {
9999
color: var(--#{$prefix}header-brand-hover-color);
100-
text-decoration: if($link-hover-decoration == underline, none, null);
100+
// stylelint-disable-next-line scss/at-function-named-arguments
101+
text-decoration: if(sass($link-hover-decoration == underline): none);
101102
}
102103
}
103104

scss/_list-group.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
display: block;
5858
padding: var(--#{$prefix}list-group-item-padding-y) var(--#{$prefix}list-group-item-padding-x);
5959
color: var(--#{$prefix}list-group-color);
60-
text-decoration: if($link-decoration == none, null, none);
60+
text-decoration: if(not sass($link-decoration == none): none);
6161
background-color: var(--#{$prefix}list-group-bg);
6262
border: var(--#{$prefix}list-group-border-width) solid var(--#{$prefix}list-group-border-color);
6363

scss/_maps.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ $utilities-border-subtle: (
181181

182182
$utilities-links-underline: map-loop($utilities-colors, rgba-css-var, "$prefix", "$key", "link-underline") !default;
183183

184-
$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default;
184+
// stylelint-disable-next-line scss/at-function-named-arguments
185+
$negative-spacers: if(sass($enable-negative-margins): negativify-map($spacers)) !default;
185186

186187
$gutters: $spacers !default;

scss/_modal.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@
219219
// scss-docs-start modal-fullscreen-loop
220220
@each $breakpoint in map.keys($grid-breakpoints) {
221221
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
222-
$postfix: if($infix != "", $infix + "-down", "");
222+
// stylelint-disable-next-line scss/at-function-named-arguments
223+
$postfix: if(sass($infix != ""): $infix + "-down"; else: "");
223224

224225
@include media-breakpoint-down($breakpoint) {
225226
.modal-fullscreen#{$postfix} {

0 commit comments

Comments
 (0)