Skip to content

Commit c916e1a

Browse files
committed
Fix sass warnings
1 parent c2a14e8 commit c916e1a

File tree

5 files changed

+18424
-28290
lines changed

5 files changed

+18424
-28290
lines changed

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
# Run php tests.
1313
php-tests:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515
if: "!contains(github.event.head_commit.message, 'ci skip')"
1616
strategy:
1717
matrix:

assets/sass/abstracts/mixins/_mixins.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:map";
2+
13
// Center block
24
@mixin center-block {
35
display: block;
@@ -7,7 +9,7 @@
79

810
// Column width with margin
911
@mixin column-width($numberColumns: 3) {
10-
width: map-get($columns, $numberColumns) - ( calc(($columns--margin * ($numberColumns - 1)) / $numberColumns) );
12+
width: map.get($columns, $numberColumns) - ( calc(($columns--margin * ($numberColumns - 1)) / $numberColumns) );
1113
}
1214

1315
@mixin font-size($sizeValue: 1) {

assets/sass/plugins/woocommerce/_components.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,12 @@
194194

195195
.quantity-button-style4 {
196196
.quantity {
197+
border-width: 1px;
198+
197199
@media(min-width: 1025px) {
198200
width: 40%;
199201
}
200202

201-
border-width: 1px;
202203
.botiga-quantity-plus,
203204
.botiga-quantity-minus {
204205
font-size: 1.4rem;
@@ -220,10 +221,10 @@
220221

221222
.quantity-button-style5 {
222223
.quantity {
224+
border: none;
223225
@media(min-width: 1025px) {
224226
width: 40%;
225227
}
226-
border: none;
227228
.botiga-quantity-plus,
228229
.botiga-quantity-minus {
229230
font-size: 1.4rem;
@@ -240,10 +241,10 @@
240241

241242
.quantity-button-style6 {
242243
.quantity {
244+
border: none;
243245
@media(min-width: 1025px) {
244246
width: 50%;
245247
}
246-
border: none;
247248
.botiga-quantity-plus,
248249
.botiga-quantity-minus {
249250
font-size: 1.4rem;
@@ -282,10 +283,10 @@
282283

283284
.quantity-button-style7 {
284285
.quantity {
286+
border-width: 1px;
285287
@media(min-width: 1025px) {
286288
width: 22%;
287289
}
288-
border-width: 1px;
289290
.botiga-quantity-plus,
290291
.botiga-quantity-minus {
291292
width: 22px;
@@ -317,11 +318,13 @@
317318

318319
.quantity-button-style8 {
319320
.quantity {
321+
padding: 5px;
322+
border-width: 1px;
323+
320324
@media(min-width: 1025px) {
321325
width: 40%;
322326
}
323-
padding: 5px;
324-
border-width: 1px;
327+
325328
.botiga-quantity-plus,
326329
.botiga-quantity-minus {
327330
font-size: 1.4rem;

gulpfile.babel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const styleTasks = config.styles.map((style) => {
5858
.pipe(plumber(errorHandler))
5959
.pipe(
6060
sass({
61+
silenceDeprecations: ['import', 'legacy-js-api'],
6162
errLogToConsole: config.errLogToConsole,
6263
outputStyle: 'expanded',
6364
precision: config.precision
@@ -91,6 +92,7 @@ const styleMinTasks = config.styles.map((style) => {
9192
.pipe(plumber(errorHandler))
9293
.pipe(
9394
sass({
95+
silenceDeprecations: ['import', 'legacy-js-api'],
9496
errLogToConsole: config.errLogToConsole,
9597
outputStyle: 'compressed',
9698
precision: config.precision

0 commit comments

Comments
 (0)