Faris Ansari | 9fb5e1c | 2018-09-07 23:17:29 +0530 | [diff] [blame] | 1 | @import "variables.less"; |
2 | @import (reference) "desk.less"; | ||||
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 3 | |
Faris Ansari | 76b31de | 2018-09-11 17:38:31 +0530 | [diff] [blame] | 4 | body[data-route*="marketplace"] { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 5 | .layout-side-section { |
6 | padding-top: 25px; | ||||
Prateeksha Singh | 02c176c | 2018-08-29 14:27:47 +0530 | [diff] [blame] | 7 | padding-left: 5px; |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 8 | padding-right: 25px; |
Prateeksha Singh | b8e9c9b | 2018-01-25 09:18:32 +0530 | [diff] [blame] | 9 | } |
10 | |||||
Prateeksha Singh | 305f737 | 2018-08-20 00:25:26 +0530 | [diff] [blame] | 11 | [data-route], [data-action] { |
Prateeksha Singh | 318cca8 | 2018-08-07 12:41:21 +0530 | [diff] [blame] | 12 | cursor: pointer; |
13 | } | ||||
14 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 15 | .layout-main-section { |
16 | border: none; | ||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 17 | font-size: @text-medium; |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 18 | padding-top: 25px; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 19 | |
20 | @media (max-width: @screen-xs) { | ||||
21 | padding-left: 20px; | ||||
22 | padding-right: 20px; | ||||
23 | } | ||||
24 | } | ||||
25 | |||||
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 26 | input, textarea { |
27 | font-size: @text-medium; | ||||
28 | } | ||||
29 | |||||
Faris Ansari | 9fb5e1c | 2018-09-07 23:17:29 +0530 | [diff] [blame] | 30 | .hub-image { |
31 | height: 200px; | ||||
32 | } | ||||
33 | |||||
34 | .hub-image-loading, .hub-image-broken { | ||||
prssanna | 7e8113c | 2021-02-16 11:59:12 +0530 | [diff] [blame] | 35 | content: " "; |
prssanna | 7e8113c | 2021-02-16 11:59:12 +0530 | [diff] [blame] | 36 | position: absolute; |
37 | left: 0; | ||||
38 | height: 100%; | ||||
39 | width: 100%; | ||||
40 | background-color: var(--bg-light-gray); | ||||
Faris Ansari | 9fb5e1c | 2018-09-07 23:17:29 +0530 | [diff] [blame] | 41 | display: flex; |
42 | align-items: center; | ||||
43 | justify-content: center; | ||||
44 | |||||
45 | span { | ||||
46 | font-size: 32px; | ||||
47 | color: @text-extra-muted; | ||||
48 | } | ||||
49 | } | ||||
50 | |||||
Prateeksha Singh | efbd2ee | 2018-07-30 09:17:14 +0530 | [diff] [blame] | 51 | .progress-bar { |
52 | background-color: #89da28; | ||||
53 | } | ||||
54 | |||||
Prateeksha Singh | 505f6f1 | 2018-07-26 08:06:21 +0530 | [diff] [blame] | 55 | .subpage-title.flex { |
56 | align-items: flex-start; | ||||
57 | justify-content: space-between; | ||||
58 | } | ||||
59 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 60 | .hub-card { |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 61 | margin-bottom: 25px; |
Prateeksha Singh | efbd2ee | 2018-07-30 09:17:14 +0530 | [diff] [blame] | 62 | position: relative; |
63 | border: 1px solid @border-color; | ||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 64 | border-radius: 4px; |
65 | overflow: hidden; | ||||
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 66 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 67 | &:hover .hub-card-overlay { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 68 | display: block; |
69 | } | ||||
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 70 | } |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 71 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 72 | .hub-card.is-local { |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 73 | &.active { |
74 | .hub-card-header { | ||||
75 | background-color: #f4ffe5; | ||||
76 | } | ||||
77 | |||||
78 | .octicon-check { | ||||
79 | display: inline; | ||||
80 | } | ||||
81 | } | ||||
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 82 | |
83 | .octicon-check { | ||||
84 | display: none; | ||||
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 85 | position: absolute; |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 86 | font-size: 20px; |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 87 | right: 15px; |
88 | top: 50%; | ||||
89 | transform: translateY(-50%); | ||||
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 90 | } |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 91 | } |
92 | |||||
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 93 | .hub-card-header { |
94 | position: relative; | ||||
95 | padding: 12px 15px; | ||||
96 | height: 60px; | ||||
97 | border-bottom: 1px solid @border-color; | ||||
98 | } | ||||
99 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 100 | .hub-card-body { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 101 | position: relative; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 102 | height: 200px; |
103 | } | ||||
104 | |||||
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 105 | .hub-card-overlay { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 106 | display: none; |
107 | position: absolute; | ||||
108 | top: 0; | ||||
109 | width: 100%; | ||||
110 | height: 100%; | ||||
Faris Ansari | c0a22a6 | 2018-08-01 13:35:19 +0530 | [diff] [blame] | 111 | background-color: rgba(0, 0, 0, 0.05); |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 112 | } |
113 | |||||
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 114 | .hub-card-overlay-body { |
115 | position: relative; | ||||
116 | height: 100%; | ||||
117 | } | ||||
118 | |||||
119 | .hub-card-overlay-button { | ||||
120 | position: absolute; | ||||
Prateeksha Singh | b0a3a10 | 2018-08-21 17:43:30 +0530 | [diff] [blame] | 121 | right: 15px; |
122 | bottom: 15px; | ||||
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 123 | } |
124 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 125 | .hub-card-image { |
Faris Ansari | f089dad | 2018-08-26 22:20:16 +0530 | [diff] [blame] | 126 | position: relative; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 127 | width: 100%; |
Suraj Shetty | d94701e | 2018-08-22 16:47:50 +0530 | [diff] [blame] | 128 | height: 100%; |
129 | object-fit: contain; | ||||
130 | } | ||||
131 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 132 | .hub-search-container { |
133 | margin-bottom: 20px; | ||||
134 | |||||
135 | input { | ||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 136 | height: 32px; |
137 | } | ||||
138 | } | ||||
139 | |||||
140 | .hub-sidebar { | ||||
141 | padding-top: 25px; | ||||
142 | padding-right: 15px; | ||||
143 | } | ||||
144 | |||||
145 | .hub-sidebar-group { | ||||
146 | margin-bottom: 10px; | ||||
147 | } | ||||
148 | |||||
149 | .hub-sidebar-item { | ||||
150 | padding: 5px 8px; | ||||
151 | margin-bottom: 3px; | ||||
152 | border-radius: 4px; | ||||
153 | border: 1px solid transparent; | ||||
154 | |||||
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 155 | &.active, &:hover:not(.is-title) { |
156 | border-color: @border-color; | ||||
157 | } | ||||
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 158 | } |
159 | |||||
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 160 | .hub-item-image { |
Faris Ansari | 9fb5e1c | 2018-09-07 23:17:29 +0530 | [diff] [blame] | 161 | position: relative; |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 162 | border: 1px solid @border-color; |
163 | border-radius: 4px; | ||||
164 | overflow: hidden; | ||||
165 | height: 200px; | ||||
166 | width: 200px; | ||||
167 | display: flex; | ||||
168 | align-items: center; | ||||
169 | } | ||||
170 | |||||
Prateeksha Singh | f6f429f | 2018-07-28 12:25:14 +0530 | [diff] [blame] | 171 | .hub-item-skeleton-image { |
172 | border-radius: 4px; | ||||
173 | background-color: @light-bg; | ||||
174 | overflow: hidden; | ||||
175 | height: 200px; | ||||
176 | width: 200px; | ||||
177 | } | ||||
178 | |||||
179 | .hub-skeleton { | ||||
180 | background-color: @light-bg; | ||||
181 | color: @light-bg; | ||||
182 | max-width: 500px; | ||||
183 | } | ||||
184 | |||||
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 185 | .hub-item-seller img { |
186 | width: 50px; | ||||
187 | height: 50px; | ||||
188 | border-radius: 4px; | ||||
189 | border: 1px solid @border-color; | ||||
190 | } | ||||
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 191 | |
192 | .register-title { | ||||
193 | font-size: @text-regular; | ||||
194 | } | ||||
195 | |||||
196 | .register-form { | ||||
197 | border: 1px solid @border-color; | ||||
198 | border-radius: 4px; | ||||
199 | padding: 15px 25px; | ||||
200 | } | ||||
201 | |||||
Prateeksha Singh | 96fdbd4 | 2018-08-20 10:07:56 +0530 | [diff] [blame] | 202 | .publish-area.filled { |
203 | .empty-items-container { | ||||
204 | display: none; | ||||
205 | } | ||||
206 | } | ||||
207 | |||||
208 | .publish-area.empty { | ||||
209 | .hub-items-container { | ||||
210 | display: none; | ||||
211 | } | ||||
212 | } | ||||
213 | |||||
Suraj Shetty | 12de0ae | 2018-08-22 11:50:23 +0530 | [diff] [blame] | 214 | .publish-area-head { |
215 | display: flex; | ||||
216 | justify-content: space-between; | ||||
217 | margin-bottom: 20px; | ||||
218 | } | ||||
Suraj Shetty | d94701e | 2018-08-22 16:47:50 +0530 | [diff] [blame] | 219 | |
Suraj Shetty | 0e59ec3 | 2018-08-25 21:22:55 +0530 | [diff] [blame] | 220 | .hub-list-item { |
221 | display: flex; | ||||
222 | justify-content: space-between; | ||||
223 | align-items: center; | ||||
224 | border: 1px solid @border-color; | ||||
Faris Ansari | 725603c | 2018-08-27 19:51:36 +0530 | [diff] [blame] | 225 | margin-bottom: -1px; |
226 | overflow: hidden; | ||||
227 | } | ||||
228 | |||||
229 | .hub-list-item:first-child { | ||||
230 | border-top-left-radius: 4px; | ||||
231 | border-top-right-radius: 4px; | ||||
232 | } | ||||
233 | .hub-list-item:last-child { | ||||
234 | border-bottom-left-radius: 4px; | ||||
235 | border-bottom-right-radius: 4px; | ||||
Suraj Shetty | 0e59ec3 | 2018-08-25 21:22:55 +0530 | [diff] [blame] | 236 | } |
237 | |||||
238 | .hub-list-left { | ||||
239 | display: flex; | ||||
240 | align-items: center; | ||||
241 | max-width: 90%; | ||||
242 | } | ||||
243 | |||||
244 | .hub-list-right { | ||||
245 | padding-right: 15px; | ||||
246 | } | ||||
247 | |||||
248 | .hub-list-image { | ||||
Faris Ansari | f089dad | 2018-08-26 22:20:16 +0530 | [diff] [blame] | 249 | position: relative; |
Suraj Shetty | 0e59ec3 | 2018-08-25 21:22:55 +0530 | [diff] [blame] | 250 | width: 58px; |
251 | height: 58px; | ||||
252 | border-right: 1px solid @border-color; | ||||
253 | |||||
254 | &::after { | ||||
255 | font-size: 12px; | ||||
Suraj Shetty | 341386e | 2018-08-22 21:31:16 +0530 | [diff] [blame] | 256 | } |
Suraj Shetty | 0e59ec3 | 2018-08-25 21:22:55 +0530 | [diff] [blame] | 257 | } |
258 | |||||
259 | .hub-list-body { | ||||
260 | padding: 12px 15px; | ||||
261 | } | ||||
262 | |||||
263 | .hub-list-title { | ||||
264 | font-weight: bold; | ||||
265 | } | ||||
266 | |||||
267 | .hub-list-subtitle { | ||||
268 | color: @text-muted; | ||||
Suraj Shetty | 341386e | 2018-08-22 21:31:16 +0530 | [diff] [blame] | 269 | } |
270 | |||||
Suraj Shetty | 88700cf | 2018-08-24 11:25:04 +0530 | [diff] [blame] | 271 | .selling-item-message-card { |
272 | max-width: 500px; | ||||
273 | margin-bottom: 15px; | ||||
274 | border-radius: 3px; | ||||
275 | border: 1px solid @border-color; | ||||
276 | .selling-item-detail { | ||||
277 | overflow: auto; | ||||
278 | .item-image { | ||||
279 | float: left; | ||||
280 | height: 80px; | ||||
281 | width: 80px; | ||||
282 | object-fit: contain; | ||||
283 | margin: 5px; | ||||
284 | } | ||||
285 | .item-name { | ||||
286 | margin-left: 10px; | ||||
287 | } | ||||
288 | } | ||||
289 | .received-message-container { | ||||
290 | clear: left; | ||||
291 | background-color: @light-bg; | ||||
292 | .received-message { | ||||
293 | border-top: 1px solid @border-color; | ||||
294 | padding: 10px; | ||||
295 | } | ||||
296 | .frappe-timestamp { | ||||
297 | float: right; | ||||
298 | } | ||||
299 | } | ||||
300 | } | ||||
301 | |||||
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 302 | .form-container { |
303 | .frappe-control { | ||||
304 | max-width: 100% !important; | ||||
305 | } | ||||
306 | } | ||||
307 | |||||
308 | .form-message { | ||||
309 | padding-top: 0; | ||||
310 | padding-bottom: 0; | ||||
311 | border-bottom: none; | ||||
312 | } | ||||
Faris Ansari | abcc8ab | 2018-07-28 13:57:16 +0530 | [diff] [blame] | 313 | |
Faris Ansari | aa46567 | 2018-08-17 14:29:22 +0530 | [diff] [blame] | 314 | .hub-items-container { |
315 | .hub-items-header { | ||||
Prateeksha Singh | 318cca8 | 2018-08-07 12:41:21 +0530 | [diff] [blame] | 316 | justify-content: space-between; |
317 | align-items: baseline; | ||||
Prateeksha Singh | 658d1bb | 2018-08-06 19:13:10 +0530 | [diff] [blame] | 318 | } |
319 | } | ||||
320 | |||||
Faris Ansari | abcc8ab | 2018-07-28 13:57:16 +0530 | [diff] [blame] | 321 | .hub-item-container { |
322 | overflow: hidden; | ||||
323 | } | ||||
324 | |||||
325 | .hub-item-review-container { | ||||
326 | margin-top: calc(30vh); | ||||
327 | } | ||||
Faris Ansari | c0a22a6 | 2018-08-01 13:35:19 +0530 | [diff] [blame] | 328 | |
329 | .hub-item-dropdown { | ||||
330 | margin-top: 20px; | ||||
331 | } | ||||
Faris Ansari | 2a81b4a | 2018-08-01 19:19:53 +0530 | [diff] [blame] | 332 | |
333 | /* messages page */ | ||||
334 | |||||
335 | .message-list-item { | ||||
336 | display: flex; | ||||
337 | align-items: center; | ||||
338 | padding: 8px 12px; | ||||
Faris Ansari | 2a81b4a | 2018-08-01 19:19:53 +0530 | [diff] [blame] | 339 | |
340 | &:not(.active) { | ||||
341 | filter: grayscale(1); | ||||
342 | color: @text-muted; | ||||
343 | } | ||||
344 | |||||
345 | &:hover { | ||||
346 | background-color: @light-bg; | ||||
347 | } | ||||
348 | |||||
349 | .list-item-left { | ||||
350 | width: 30px; | ||||
351 | border-radius: 4px; | ||||
352 | overflow: hidden; | ||||
353 | margin-right: 15px; | ||||
354 | } | ||||
355 | |||||
356 | .list-item-body { | ||||
357 | font-weight: bold; | ||||
358 | padding-bottom: 1px; | ||||
359 | } | ||||
360 | } | ||||
361 | |||||
Faris Ansari | d17aedb | 2018-08-20 18:33:46 +0530 | [diff] [blame] | 362 | .message-container { |
363 | display: flex; | ||||
364 | flex-direction: column; | ||||
365 | border: 1px solid @border-color; | ||||
366 | border-radius: 3px; | ||||
367 | height: calc(100vh - 300px); | ||||
368 | justify-content: space-between; | ||||
Faris Ansari | caebd4a | 2018-08-26 20:09:02 +0530 | [diff] [blame] | 369 | padding: 15px; |
Faris Ansari | 2a81b4a | 2018-08-01 19:19:53 +0530 | [diff] [blame] | 370 | } |
371 | |||||
Faris Ansari | d17aedb | 2018-08-20 18:33:46 +0530 | [diff] [blame] | 372 | .message-list { |
Faris Ansari | d17aedb | 2018-08-20 18:33:46 +0530 | [diff] [blame] | 373 | overflow: scroll; |
Faris Ansari | 2a81b4a | 2018-08-01 19:19:53 +0530 | [diff] [blame] | 374 | } |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 375 | } |