-
Notifications
You must be signed in to change notification settings - Fork 990
/
Copy pathstyle.cljs
189 lines (163 loc) · 4.9 KB
/
style.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
(ns quo.components.community.style
(:require
[quo.foundations.colors :as colors]
[quo.foundations.shadows :as shadows]))
(defn community-card
[radius theme]
(assoc
(shadows/get 2 theme)
:border-radius radius
:justify-content :space-between
:background-color (colors/theme-colors
colors/white
colors/neutral-90
theme)))
(def detail-container
{:flex 1})
(def card-stats-container
{:flex-direction :row})
(def list-stats-container
{:flex-direction :row
:align-items :center})
(def card-stats-position
{:position :absolute
:top 116
:right 12
:left 12})
(def community-tags-position
{:position :absolute
:top 154
:right 12
:left 12})
(defn card-view-content-container
[padding-horizontal theme]
{:position :absolute
:top 40
:bottom 0
:left 0
:right 0
:border-radius 20
:padding-horizontal padding-horizontal
:border-top-right-radius 16
:border-top-left-radius 16
:background-color (colors/theme-colors
colors/white
colors/neutral-90
theme)})
(defn card-view-chat-icon
[icon-size theme]
{:border-radius 48
:position :absolute
:top (- (/ icon-size 2))
:left (/ icon-size 4)
:padding 2
:background-color (colors/theme-colors
colors/white
colors/neutral-90
theme)})
(def membership-info-container
{:flex-direction :row
:border-radius 16
:align-items :center
:height 48})
(defn community-title-description-container
[margin-top]
{:margin-top margin-top})
(defn community-cover-container
[height]
{:flex-direction :row
:height height
:border-top-right-radius 20
:border-top-left-radius 20
:background-color colors/primary-50-opa-20})
(def permission-tag-styles
{:position :absolute
:top 8
:right 8})
(defn loading-card
[width theme]
(merge
{:width width
:height 230
:border-radius 16
:background-color (colors/theme-colors colors/neutral-10 colors/neutral-80 theme)}
(shadows/get 2 theme)))
(defn loading-avatar
[theme]
{:width 48
:height 48
:border-radius 24
:position :absolute
:top -24
:left 12
:background-color (colors/theme-colors colors/neutral-20 colors/neutral-70 theme)
:border-color (colors/theme-colors colors/white colors/neutral-90 theme)
:border-width 2})
(defn loading-lock
[theme]
{:width 48
:height 24
:border-radius 20
:position :absolute
:top 8
:right 8
:background-color (colors/theme-colors colors/neutral-10 colors/neutral-80 theme)})
(defn loading-cover-container
[theme]
{:flex-direction :row
:height 64
:border-top-right-radius 16
:border-top-left-radius 16
:background-color (colors/theme-colors colors/neutral-10 colors/neutral-80 theme)})
(defn loading-content-container
[theme]
{:position :absolute
:heigth 190
:top 40
:bottom 0
:left 0
:right 0
:padding-horizontal 12
:border-radius 16
:background-color (colors/theme-colors colors/white colors/neutral-90 theme)})
(def loading-tags-container
{:margin-top 20
:flex-direction :row
:align-items :center})
(def loading-stats-container
{:margin-top 20
:flex-direction :row
:align-items :center})
(defn loading-stat-circle
[theme margin-left]
{:height 14
:width 14
:border-radius 7
:background-color (colors/theme-colors colors/neutral-20 colors/neutral-70 theme)
:margin-left margin-left})
(defn loading-stat-line
[theme margin-left]
{:height 12
:width 50
:border-radius 5
:background-color (colors/theme-colors colors/neutral-20 colors/neutral-80 theme)
:margin-left margin-left})
(defn loading-tag
[theme margin-left]
{:height 24
:width 76
:border-radius 20
:background-color (colors/theme-colors colors/neutral-10 colors/neutral-80 theme)
:margin-left margin-left})
(defn loading-content-line
[{:keys [theme width margin-top]}]
{:width width
:height 16
:background-color (colors/theme-colors colors/neutral-20 colors/neutral-70 theme)
:border-radius 5
:margin-top margin-top})
(def loading-card-content-container {:margin-top 36})
(def notification-container
{:width 20
:display :flex
:align-items :center})