Skip to content

Commit 8b16bd5

Browse files
authored
Move ft-list-channel specific css to ft-list-channel.scss (#4873)
1 parent 64be1c1 commit 8b16bd5

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

src/renderer/components/ft-list-channel/ft-list-channel.scss

+39
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
@use '../../scss-partials/_ft-list-item';
22

3+
.ft-list-channel {
4+
&.grid {
5+
align-items: center;
6+
text-align: center;
7+
8+
.infoAndSubscribe {
9+
flex-flow: column wrap;
10+
align-items: center;
11+
12+
.info {
13+
margin-block-end: 12px;
14+
15+
.infoLine {
16+
text-align: center;
17+
}
18+
}
19+
}
20+
}
21+
22+
&.list {
23+
.infoAndSubscribe {
24+
flex-flow: row wrap;
25+
justify-content: center;
26+
27+
.channelSubscribeButton {
28+
margin-block: auto;
29+
margin-inline: 7px;
30+
}
31+
}
32+
}
33+
}
34+
35+
.infoAndSubscribe {
36+
display: flex;
37+
flex-flow: row wrap;
38+
justify-content: center;
39+
inline-size: 100%;
40+
}
41+
342
.handle {
443
color: inherit;
544
text-decoration: none;

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

-39
Original file line numberDiff line numberDiff line change
@@ -386,45 +386,6 @@ $watched-transition-duration: 0.5s;
386386
}
387387
}
388388

389-
.ft-list-channel {
390-
.infoAndSubscribe {
391-
display: flex;
392-
flex-flow: row wrap;
393-
justify-content: center;
394-
inline-size: 100%;
395-
}
396-
397-
&.grid {
398-
align-items: center;
399-
text-align: center;
400-
401-
.infoAndSubscribe {
402-
flex-flow: column wrap;
403-
align-items: center;
404-
405-
.info {
406-
margin-block-end: 12px;
407-
408-
.infoLine {
409-
text-align: center;
410-
}
411-
}
412-
}
413-
}
414-
415-
&.list {
416-
.infoAndSubscribe {
417-
flex-flow: row wrap;
418-
justify-content: center;
419-
420-
.channelSubscribeButton {
421-
margin-block: auto;
422-
margin-inline: 7px;
423-
}
424-
}
425-
}
426-
}
427-
428389
.videoWatched,
429390
.live,
430391
.upcoming {

0 commit comments

Comments
 (0)