git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: e90da2f27b61cf784fcae42a35492b32c3e19af3

Files: e90da2f27b61cf784fcae42a35492b32c3e19af3 / styles / light / profile-list.mcss

2278 bytesRaw
1ProfileList {
2 a.profile {
3 display: flex;
4 padding: 4px;
5 font-size: 110%;
6 margin: 4px 0;
7 background: rgba(255, 255, 255, 0.74);
8 border-radius: 5px;
9 position: relative
10 text-decoration: none
11 transition: background-color 0.2s
12
13 background-repeat: no-repeat
14 background-position: right
15
16 -more {
17 padding-top: 10px
18 padding-bottom: 10px
19 }
20
21 -following {
22 background-image: svg(following)
23 }
24
25 -connected {
26 background-image: svg(connected)
27 }
28
29 @svg connected {
30 width: 20px
31 height: 12px
32 content: "<circle cx='6' stroke='none' fill='green' cy='6' r='5' />"
33 }
34
35 @svg following {
36 width: 20px
37 height: 12px
38 content: "<circle cx='6' stroke='#888' fill='none' cy='6' r='5' /> <circle cx='6' cy='6' r='3' fill='#888'/>"
39 }
40
41 div.avatar {
42 img {
43 width: 40px
44 height: 40px
45 display: block
46 }
47 }
48
49 div.main {
50 display: flex
51 flex-direction: column
52 flex: 1
53 margin-left: 10px
54 justify-content: center
55 min-width: 0px
56 div.name {
57 white-space: nowrap
58 font-weight: bold
59 font-size: 110%
60 color: #636363
61 -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 90%, rgba(0,0,0,0))
62 }
63 }
64
65 div.progress {
66 display: flex
67 flex-direction: column
68 svg {
69 transition: opacity 0.2s
70 opacity: 0
71 -pending {
72 opacity: 1
73 }
74 width: 20px
75 flex: 1
76 }
77 }
78
79 div.controls {
80 opacity: 0
81 position: absolute
82 right: 7px
83 top: 0
84 bottom: 0
85 display: flex;
86 justify-content: center;
87 flex-direction: column;
88 width: 15px;
89 transition: opacity 0.2s
90 a.disconnect {
91 color: white;
92 border-radius: 10px;
93 height: 16px;
94 width: 16px;
95 background-color: #777
96 text-align: center
97 vertical-align: middle
98 font-size: 14px;
99 overflow: hidden;
100 :hover {
101 text-decoration: none
102 background-color: #F77
103 }
104 }
105 }
106
107 :hover {
108 background-color: rgba(255, 255, 255, 0.4);
109 div.controls {
110 opacity: 1
111 }
112 }
113 }
114}
115

Built with git-ssb-web