git ssb

10+

Matt McKegg / patchwork



Tree: 5da29345498ec8655898194cf2ab904e54398e37

Files: 5da29345498ec8655898194cf2ab904e54398e37 / styles / light / all-channels.mcss

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

Built with git-ssb-web