Skip to content

Commit 6de419c

Browse files
committed
chore: fix newly generated stylelint error
Color functions `rgb()` and `hsl()` have aliases `rgba()` and `hsla()`. Those are exactly equivalent, and it's preferable to use the first variant without `a`.
1 parent f13930c commit 6de419c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
247247
.modal-overlay {
248248
backdrop-filter: blur(5px);
249-
background-color: rgba(0 0 0 / 0.5);
249+
background-color: rgb(0 0 0 / 0.5);
250250
place-content: center;
251251
place-items: center;
252252
position: fixed;

src/ext/extension-page/Components/ModalWrapper.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
align-items: center;
7171
backdrop-filter: blur(3px);
7272
-webkit-backdrop-filter: blur(3px);
73-
background-color: light-dark(rgba(0 0 0 / 0.15), rgba(0 0 0 / 0.45));
73+
background-color: light-dark(rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.45));
7474
color: var(--text-color-secondary);
7575
display: flex;
7676
font: var(--text-medium);

src/shared/variables.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
--editor-cursor: #e3e7eb;
5959
--editor-matching-bracket-color: #fff;
6060
--editor-matching-bracket-border: var(--editor-number);
61-
--editor-blurred-background: rgba(50 54 57 / 0.65);
61+
--editor-blurred-background: rgb(50 54 57 / 0.65);
6262
}
6363

6464
/* Light theme */
@@ -98,6 +98,6 @@
9898
--editor-cursor: #7e7e7f;
9999
--editor-matching-bracket-color: var(--text-color-primary);
100100
--editor-matching-bracket-border: #ff00ea;
101-
--editor-blurred-background: rgba(255 255 255 / 0.65); /* eeeeeea6 */
101+
--editor-blurred-background: rgb(255 255 255 / 0.65); /* eeeeeea6 */
102102
}
103103
}

0 commit comments

Comments
 (0)