Skip to content

Commit b435a16

Browse files
refactor: migrate to new color syntax (#1458)
* refactor: migrate to new color syntax * refactor: remove unnecessary commas
1 parent 4542d68 commit b435a16

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sbs-message {
6363
min-width: 15em;
6464
min-height: 1em;
6565
border-radius: 0.25em;
66-
background-image: linear-gradient(90deg, transparent 40%, rgba(175, 175, 175, 0.7) 80%, transparent 100%);
66+
background-image: linear-gradient(90deg, transparent 40%, rgb(175 175 175 / 0.7) 80%, transparent 100%);
6767
background-size: 200% 100%;
6868
animation: loading-animation 1.5s linear infinite;
6969
}

src/css/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
--md-on-surface: #36373a;
77
--md-on-surface-variant: #768098;
88

9-
--md-sys-color-primary: rgb(73, 113, 214);
9+
--md-sys-color-primary: rgb(73 113 214);
1010
--md-sys-color-on-primary: var(--md-surface);
1111
--md-sys-color-on-surface-variant: #888;
1212
--md-sys-color-on-surface: #aaa;
@@ -20,7 +20,7 @@
2020
--md-on-surface: #ebedf2;
2121
--md-on-surface-variant: #a8b2c7;
2222

23-
--md-sys-color-primary: rgb(98, 125, 194);
23+
--md-sys-color-primary: rgb(98 125 194);
2424
--md-sys-color-on-primary: var(--md-surface);
2525
--md-sys-color-on-surface-variant: #aaa;
2626
--md-sys-color-on-surface: #888;

src/ts/components/sbsMessage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,18 @@ class SbsMessage extends LitElement {
108108
.shadowban-scanner-message md-filled-button {
109109
margin-top: 0.5em;
110110
width: 100%;
111-
--md-filled-button-container-color: rgb(255, 255, 255, 0.2);
111+
--md-filled-button-container-color: rgb(255 255 255 / 0.2);
112112
--md-ripple-hover-color: white;
113113
--md-ripple-pressed-color: white;
114-
--_container-shadow-color: rgba(0, 0, 0, 0.3);
114+
--_container-shadow-color: rgb(0 0 0 / 0.3);
115115
}
116116
117117
[data-sb-translation] {
118118
display: inline-block;
119119
min-width: 15em;
120120
min-height: 1em;
121121
border-radius: 0.25em;
122-
background-image: linear-gradient(90deg, transparent 40%, rgba(175, 175, 175, 0.7) 80%, transparent 100%);
122+
background-image: linear-gradient(90deg, transparent 40%, rgb(175 175 175 / 0.7) 80%, transparent 100%);
123123
background-size: 200% 100%;
124124
animation: loading-animation 1.5s linear infinite;
125125
}

0 commit comments

Comments
 (0)