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