Skip to content

Commit ab8466b

Browse files
author
Jonathan Adeline
committed
Revert to :not simple notation
1 parent b7a9ef1 commit ab8466b

File tree

11 files changed

+28
-32
lines changed

11 files changed

+28
-32
lines changed

premium/web-frontend/modules/baserow_premium/assets/scss/components/views/calendar/calendar_card.scss

+4-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
}
1313

1414
&:hover {
15-
cursor: pointer;
16-
}
17-
18-
&:not(.calendar-card--disabled, .calendar-card--dragging):hover {
19-
cursor: pointer;
20-
background-color: $color-neutral-100;
15+
&:not(.calendar-card--disabled):not(.calendar-card--dragging) {
16+
cursor: pointer;
17+
background-color: $color-neutral-100;
18+
}
2119
}
2220
}
2321

premium/web-frontend/modules/baserow_premium/assets/scss/components/views/kanban.scss

+5-6
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,12 @@
161161
transition: transform 0.1s ease-out 0s;
162162
}
163163

164-
&:not(
165-
.kanban-view__stack-card--disabled,
166-
.kanban-view__stack-card--dragging
167-
):hover {
168-
cursor: pointer;
164+
&:hover {
165+
&:not(.kanban-view__stack-card--disabled):not(.kanban-view__stack-card--dragging) {
166+
cursor: pointer;
169167

170-
@include elevation($elevation-medium);
168+
@include elevation($elevation-medium);
169+
}
171170
}
172171
}
173172

web-frontend/.stylelintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ module.exports = {
4848
'color-function-notation': 'legacy',
4949
'scss/no-global-function-names': null,
5050
'alpha-value-notation': 'number',
51+
'selector-not-notation': 'simple',
5152
},
5253
}

web-frontend/modules/core/assets/scss/components/button.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
text-decoration: none;
2929
}
3030

31-
&:active:not(.button--loading, [disabled]) {
31+
&:active:not(.button--loading):not([disabled]) {
3232
box-shadow: none !important;
3333
}
3434

web-frontend/modules/core/assets/scss/components/button_floating.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
@include rounded($rounded-3xl);
1515
@include elevation($elevation-low);
1616

17-
&:hover:not(.button-floating--loading, [disabled]) {
17+
&:hover:not(.button-floating--loading):not([disabled]) {
1818
background: $palette-neutral-25;
1919
color: $palette-blue-600;
2020
text-decoration: none;
2121
}
2222

23-
&:active:not(.button-floating--loading, [disabled]) {
23+
&:active:not(.button-floating--loading):not([disabled]) {
2424
background: $palette-neutral-50;
2525
color: $palette-blue-700;
2626
box-shadow: none;

web-frontend/modules/core/assets/scss/components/button_icon.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
@include rounded($rounded-md);
1616
@include elevation($elevation-low);
1717

18-
&:hover:not(.button-icon--loading, [disabled]) {
18+
&:hover:not(.button-icon--loading):not([disabled]) {
1919
background: $palette-neutral-25;
2020
color: $palette-blue-600;
2121
text-decoration: none;
2222
}
2323

2424
&.active,
25-
&:active:not(.button-icon--loading, [disabled]) {
25+
&:active:not(.button-icon--loading):not([disabled]) {
2626
background: $palette-neutral-50;
2727
color: $palette-blue-700;
2828
box-shadow: none !important;

web-frontend/modules/core/assets/scss/components/button_text.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
color: $palette-neutral-500;
1919
}
2020

21-
&:hover:not(.button-text--loading, [disabled]) {
21+
&:hover:not(.button-text--loading):not([disabled]) {
2222
color: $palette-neutral-1300;
23-
text-decoration: none;
2423
}
2524

2625
&[disabled]:not(.button-text--loading) {
@@ -71,11 +70,11 @@
7170
color: $palette-neutral-500;
7271
}
7372

74-
.button-text:hover:not(.button-text--loading, [disabled]) & {
73+
.button-text:hover:not(.button-text--loading):not([disabled]) & {
7574
color: $palette-neutral-1300;
7675
}
7776

78-
.button-text:active:not(.button-text--loading, [disabled]) & {
77+
.button-text:active:not(.button-text--loading):not([disabled]) & {
7978
color: $palette-neutral-700;
8079
}
8180
}

web-frontend/modules/core/assets/scss/components/choice_items.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
&:hover {
5050
text-decoration: none;
5151

52-
&:not(.disabled, .active) {
52+
&:not(.disabled):not(.active) {
5353
background-color: $color-neutral-100;
5454
color: $color-neutral-900;
5555
}

web-frontend/modules/core/assets/scss/components/select.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
color: $palette-neutral-1200;
243243
}
244244

245-
:not(.select__item--loading, .select__item--no-options):hover > & {
245+
:not(.select__item--loading):not(.select__item--no-options):hover > & {
246246
display: block;
247247
}
248248
}

web-frontend/modules/core/assets/scss/components/select_row_modal.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
}
1010

1111
.simple-grid__left {
12-
.simple-grid__cell:not(
13-
.simple-grid__cell--first,
12+
.simple-grid__cell:not(.simple-grid__cell--first):not(
1413
.simple-grid__cell--single
1514
) {
1615
width: 200px;

web-frontend/modules/core/assets/scss/components/views/gallery.scss

+7-7
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
transition: transform 0.1s ease-out 0s;
4141
}
4242

43-
&:not(
44-
.card--loading,
45-
.gallery-view__card--disabled,
46-
.gallery-view__card--dragging
47-
):hover {
48-
cursor: pointer;
49-
box-shadow: 0 1px 3px 0 rgba($black, 0.32);
43+
&:hover {
44+
&:not(.card--loading):not(.gallery-view__card--disabled):not(
45+
.gallery-view__card--dragging
46+
) {
47+
cursor: pointer;
48+
box-shadow: 0 1px 3px 0 rgba($black, 0.32);
49+
}
5050
}
5151
}

0 commit comments

Comments
 (0)