Skip to content

Commit e4d4589

Browse files
authored
Fix scss deprecation warnings (#5429)
1 parent 10c7aae commit e4d4589

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/renderer/components/ft-icon-button/ft-icon-button.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@
101101
&.favorite,
102102
&.favorite:hover,
103103
&.favorite:focus-visible {
104+
color: var(--favorite-icon-color);
105+
104106
&:not(.disabled) {
105107
color: var(--favorite-icon-color);
106108
}
107-
108-
color: var(--favorite-icon-color);
109109
}
110110
}
111111

src/renderer/components/ft-refresh-widget/ft-refresh-widget.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@use '../../scss-partials/utils';
22

33
.floatingRefreshSection {
4-
@include utils.fixed-top-bar;
5-
64
box-sizing: border-box;
75
padding-block: 5px;
86
padding-inline: 10px;
@@ -13,6 +11,8 @@
1311
align-items: center;
1412
gap: 5px;
1513
justify-content: flex-end;
14+
15+
@include utils.fixed-top-bar;
1616
}
1717

1818
.floatingRefreshSection:has(.lastRefreshTimestamp + .refreshButton) {

src/renderer/scss-partials/_ft-list-item.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ $watched-transition-duration: 0.5s;
5656
padding: 6px;
5757

5858
&.watched {
59-
@include low-contrast-when-watched(var(--primary-text-color));
60-
6159
background-color: var(--bg-color);
6260

61+
@include low-contrast-when-watched(var(--primary-text-color));
62+
6363
.thumbnailImage {
6464
opacity: 0.3;
6565
transition: opacity $watched-transition-duration;
@@ -227,14 +227,14 @@ $watched-transition-duration: 0.5s;
227227
}
228228

229229
.title {
230-
@include low-contrast-when-watched(var(--primary-text-color));
231-
232230
font-size: 20px;
233231
grid-area: title;
234232
text-decoration: none;
235233
word-break: break-word;
236234
word-wrap: break-word;
237235

236+
@include low-contrast-when-watched(var(--primary-text-color));
237+
238238
@include is-sidebar-item {
239239
font-size: 15px;
240240
}
@@ -247,24 +247,24 @@ $watched-transition-duration: 0.5s;
247247
overflow-wrap: anywhere;
248248
text-align: start;
249249

250+
@include low-contrast-when-watched(var(--secondary-text-color));
251+
250252
@include is-sidebar-item {
251253
font-size: 12px;
252254
}
253255

254-
@include low-contrast-when-watched(var(--secondary-text-color));
255-
256256
.channelName {
257257
@include low-contrast-when-watched(var(--secondary-text-color));
258258
}
259259
}
260260

261261
.description {
262-
@include low-contrast-when-watched(var(--secondary-text-color));
263-
264262
font-size: 14px;
265263
grid-area: description;
266264
max-block-size: 50px;
267265
overflow-y: hidden;
266+
267+
@include low-contrast-when-watched(var(--secondary-text-color));
268268
}
269269
}
270270

0 commit comments

Comments
 (0)