Files: 6fd3ee341a376214993d0363c4c72161700b7fbc / styles / channel-list.mcss
1538 bytesRaw
1 | ChannelList { |
2 | a.channel { |
3 | display: flex; |
4 | padding: 8px 10px; |
5 | font-size: 110%; |
6 | margin: 4px 0; |
7 | background: rgba(255, 255, 255, 0.66); |
8 | border-radius: 5px; |
9 | position: relative |
10 | transition: background-color 0.2s |
11 | max-width: 250px; |
12 | |
13 | background-repeat: no-repeat |
14 | background-position: right |
15 | |
16 | -subscribed { |
17 | background-image: svg(subscribed) |
18 | span.name { |
19 | font-weight: bold |
20 | } |
21 | } |
22 | |
23 | @svg subscribed { |
24 | width: 20px |
25 | height: 12px |
26 | content: "<circle cx='6' stroke='#888' fill='none' cy='6' r='5' /> <circle cx='6' cy='6' r='3' fill='#888'/>" |
27 | } |
28 | |
29 | :hover { |
30 | background: rgba(255, 255, 255, 0.4); |
31 | text-decoration: none; |
32 | a { |
33 | transition: opacity 0.05s |
34 | opacity: 1 |
35 | } |
36 | } |
37 | |
38 | span.name { |
39 | flex: 1 |
40 | white-space: nowrap; |
41 | min-width: 0; |
42 | } |
43 | |
44 | a { |
45 | display: inline |
46 | opacity: 0; |
47 | font-size: 80%; |
48 | background-color: rgb(112, 112, 112); |
49 | transition: opacity 0.2s, background-color 0.4s |
50 | padding: 9px 10px; |
51 | color: white; |
52 | border-radius: 4px; |
53 | font-weight: bold; |
54 | margin: -8px -10px -8px 4px; |
55 | border-top-left-radius: 0; |
56 | border-bottom-left-radius: 0; |
57 | border-left: 2px solid rgba(255, 255, 255, 0.9); |
58 | text-decoration: none |
59 | |
60 | -subscribe { |
61 | :hover { |
62 | background-color: rgb(112, 184, 212); |
63 | } |
64 | } |
65 | |
66 | -unsubscribe { |
67 | :hover { |
68 | background: rgb(212, 112, 112); |
69 | } |
70 | } |
71 | } |
72 | } |
73 | } |
74 |
Built with git-ssb-web