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