Skip to content

Commit e42bb46

Browse files
committed
Adjust to scss change
1 parent 502ce98 commit e42bb46

File tree

5 files changed

+33
-32
lines changed

5 files changed

+33
-32
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
@import "src/constants/style.scss";
1+
@use "constants/styles";
22

33
.drag-lock-indicator {
44
position: absolute;
5-
bottom: -$spacing--sm;
6-
right: -$spacing--sm;
7-
z-index: $tooltip-z-index + 1;
5+
bottom: -styles.$spacing--sm;
6+
right: -styles.$spacing--sm;
7+
z-index: styles.$tooltip-z-index + 1;
88
pointer-events: none;
99
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
@import "src/constants/style.scss";
1+
@use "constants/styles";
22

33
.drag-overlay {
44
.note {
55
background-color: rgba(var(--accent-color--light-rgb), 0.5);
66
border: 1px solid rgba(var(--accent-color--light-rgb), 0.5);
77
box-shadow:
8-
0 $spacing--xxs $spacing--xs rgba(var(--accent-color--light-rgb), 0.1),
9-
$box-shadow--light;
8+
0 styles.$spacing--xxs styles.$spacing--xs rgba(var(--accent-color--light-rgb), 0.1),
9+
styles.$box-shadow--light;
1010
}
1111

1212
.note__in-stack {
1313
background-color: rgba(var(--accent-color--light-rgb), 0.03);
14-
box-shadow: 0 $spacing--xxs $spacing--xs rgba(var(--accent-color--light-rgb), 0.08);
14+
box-shadow: 0 styles.$spacing--xxs styles.$spacing--xs rgba(var(--accent-color--light-rgb), 0.08);
1515
}
1616
}
1717

@@ -21,13 +21,13 @@
2121
background-color: rgba(var(--accent-color--dark-rgb), 0.5);
2222
border: 1px solid rgba(var(--accent-color--dark-rgb), 0.5);
2323
box-shadow:
24-
0 $spacing--xxs $spacing--xs rgba(var(--accent-color--dark-rgb), 0.15),
25-
$box-shadow--dark;
24+
0 styles.$spacing--xxs styles.$spacing--xs rgba(var(--accent-color--dark-rgb), 0.15),
25+
styles.$box-shadow--dark;
2626
}
2727

2828
.note__in-stack {
2929
background-color: rgba(var(--accent-color--dark-rgb), 0.05);
30-
box-shadow: 0 $spacing--xxs $spacing--xs rgba(var(--accent-color--dark-rgb), 0.12);
30+
box-shadow: 0 styles.$spacing--xxs styles.$spacing--xs rgba(var(--accent-color--dark-rgb), 0.12);
3131
}
3232
}
3333
}
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
@import "src/constants/style.scss";
1+
@use "constants/styles";
22

33
.drag-indicator-pill {
44
display: flex;
55
align-items: center;
6-
gap: $spacing--xs;
6+
gap: styles.$spacing--xs;
77

88
background-color: rgba(var(--accent-color--light-rgb), 0.95);
9-
color: $gray--000;
10-
padding: $spacing--xxs $spacing--xs;
11-
border-radius: $spacing--lg;
12-
font-size: $text--xs;
9+
color: styles.$gray--000;
10+
padding: styles.$spacing--xxs styles.$spacing--xs;
11+
border-radius: styles.$spacing--lg;
12+
font-size: styles.$text--xs;
1313
font-weight: 600;
1414
white-space: nowrap;
15-
box-shadow: 0 $spacing--xxs $spacing--sm rgba(0, 0, 0, 0.2);
16-
border: 1px solid rgba($gray--000, 0.2);
15+
box-shadow: 0 styles.$spacing--xxs styles.$spacing--sm rgba(0, 0, 0, 0.2);
16+
border: 1px solid rgba(styles.$gray--000, 0.2);
1717

1818
pointer-events: none;
1919

2020
&__avatar {
2121
display: flex;
2222
justify-content: center;
2323
align-items: center;
24-
width: $icon--medium;
25-
height: $icon--medium;
26-
border-radius: $rounded--full;
27-
border: 2px solid $gray--000;
28-
background-color: $gray--000;
24+
width: styles.$icon--medium;
25+
height: styles.$icon--medium;
26+
border-radius: styles.$rounded--full;
27+
border: 2px solid styles.$gray--000;
28+
background-color: styles.$gray--000;
2929
overflow: hidden;
3030
flex-shrink: 0;
31-
margin-left: -$spacing--xxs;
31+
margin-left: -styles.$spacing--xxs;
3232
}
3333

3434
&__avatar-image {
35-
width: $icon--medium;
36-
height: $icon--medium;
35+
width: styles.$icon--medium;
36+
height: styles.$icon--medium;
3737
}
3838

3939
&__text {
@@ -44,12 +44,12 @@
4444
[theme="dark"] {
4545
.drag-indicator-pill {
4646
background-color: rgba(var(--accent-color--dark-rgb), 0.95);
47-
border: 1px solid rgba($navy--900, 0.3);
48-
box-shadow: 0 $spacing--xxs $spacing--sm rgba($navy--900, 0.4);
47+
border: 1px solid rgba(styles.$navy--900, 0.3);
48+
box-shadow: 0 styles.$spacing--xxs styles.$spacing--sm rgba(styles.$navy--900, 0.4);
4949

5050
&__avatar {
51-
border: 2px solid $navy--400;
52-
background-color: $navy--400;
51+
border: 2px solid styles.$navy--400;
52+
background-color: styles.$navy--400;
5353
}
5454
}
5555
}

src/constants/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// tooltip
88
@mixin tooltip {
9-
z-index: styles.$request-z-index;
9+
z-index: styles.$tooltip-z-index;
1010
border-radius: styles.$rounded--large;
1111
max-width: 80%;
1212
font-size: styles.$text--sm;

src/constants/_styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ $backdrop-z-index: $base-z-index + (9 * $base-z-index-step);
9191
$note-dialog-z-index: $base-z-index + (6 * $base-z-index-step);
9292
$infobar-z-index: $base-z-index + (5 * $base-z-index-step);
9393
$request-z-index: $base-z-index + (9 * $base-z-index-step);
94+
$tooltip-z-index: $request-z-index;
9495
$board-reaction-z-index: $backdrop-z-index + $base-z-index-step;
9596

9697
// breakpoints

0 commit comments

Comments
 (0)