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