blob: c08121f7043b4faf14212f656785e72db237e9d8 [file] [log] [blame]
Faris Ansari9fb5e1c2018-09-07 23:17:29 +05301@import "variables.less";
2@import (reference) "desk.less";
Faris Ansarifd345f82017-10-05 11:17:30 +05303
Faris Ansari76b31de2018-09-11 17:38:31 +05304body[data-route*="marketplace"] {
Faris Ansariea2d1b02018-07-23 18:44:46 +05305 .layout-side-section {
6 padding-top: 25px;
Prateeksha Singh02c176c2018-08-29 14:27:47 +05307 padding-left: 5px;
Faris Ansariea2d1b02018-07-23 18:44:46 +05308 padding-right: 25px;
Prateeksha Singhb8e9c9b2018-01-25 09:18:32 +05309 }
10
Prateeksha Singh305f7372018-08-20 00:25:26 +053011 [data-route], [data-action] {
Prateeksha Singh318cca82018-08-07 12:41:21 +053012 cursor: pointer;
13 }
14
Faris Ansarif5851972018-07-23 11:55:07 +053015 .layout-main-section {
16 border: none;
Faris Ansarif5851972018-07-23 11:55:07 +053017 font-size: @text-medium;
Faris Ansariea2d1b02018-07-23 18:44:46 +053018 padding-top: 25px;
Faris Ansarif5851972018-07-23 11:55:07 +053019
20 @media (max-width: @screen-xs) {
21 padding-left: 20px;
22 padding-right: 20px;
23 }
24 }
25
Prateeksha Singhbc8caef2018-07-25 10:58:56 +053026 input, textarea {
27 font-size: @text-medium;
28 }
29
Faris Ansari9fb5e1c2018-09-07 23:17:29 +053030 .hub-image {
31 height: 200px;
32 }
33
34 .hub-image-loading, .hub-image-broken {
prssanna7e8113c2021-02-16 11:59:12 +053035 content: " ";
36 display: block;
37 position: absolute;
38 left: 0;
39 height: 100%;
40 width: 100%;
41 background-color: var(--bg-light-gray);
Faris Ansari9fb5e1c2018-09-07 23:17:29 +053042 display: flex;
43 align-items: center;
44 justify-content: center;
45
46 span {
47 font-size: 32px;
48 color: @text-extra-muted;
49 }
50 }
51
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053052 .progress-bar {
53 background-color: #89da28;
54 }
55
Prateeksha Singh505f6f12018-07-26 08:06:21 +053056 .subpage-title.flex {
57 align-items: flex-start;
58 justify-content: space-between;
59 }
60
Faris Ansarif5851972018-07-23 11:55:07 +053061 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053062 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053063 position: relative;
64 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053065 border-radius: 4px;
66 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053067
Faris Ansari296848c2018-07-28 16:14:22 +053068 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053069 display: block;
70 }
Faris Ansari296848c2018-07-28 16:14:22 +053071 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053072
Faris Ansari296848c2018-07-28 16:14:22 +053073 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053074 &.active {
75 .hub-card-header {
76 background-color: #f4ffe5;
77 }
78
79 .octicon-check {
80 display: inline;
81 }
82 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053083
84 .octicon-check {
85 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053086 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053087 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053088 right: 15px;
89 top: 50%;
90 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053091 }
Faris Ansarif5851972018-07-23 11:55:07 +053092 }
93
Faris Ansari296848c2018-07-28 16:14:22 +053094 .hub-card-header {
95 position: relative;
96 padding: 12px 15px;
97 height: 60px;
98 border-bottom: 1px solid @border-color;
99 }
100
Faris Ansarif5851972018-07-23 11:55:07 +0530101 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530102 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530103 height: 200px;
104 }
105
Faris Ansari296848c2018-07-28 16:14:22 +0530106 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530107 display: none;
108 position: absolute;
109 top: 0;
110 width: 100%;
111 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +0530112 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +0530113 }
114
Faris Ansari296848c2018-07-28 16:14:22 +0530115 .hub-card-overlay-body {
116 position: relative;
117 height: 100%;
118 }
119
120 .hub-card-overlay-button {
121 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +0530122 right: 15px;
123 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530124 }
125
Faris Ansarif5851972018-07-23 11:55:07 +0530126 .hub-card-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530127 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530128 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530129 height: 100%;
130 object-fit: contain;
131 }
132
Faris Ansarif5851972018-07-23 11:55:07 +0530133 .hub-search-container {
134 margin-bottom: 20px;
135
136 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530137 height: 32px;
138 }
139 }
140
141 .hub-sidebar {
142 padding-top: 25px;
143 padding-right: 15px;
144 }
145
146 .hub-sidebar-group {
147 margin-bottom: 10px;
148 }
149
150 .hub-sidebar-item {
151 padding: 5px 8px;
152 margin-bottom: 3px;
153 border-radius: 4px;
154 border: 1px solid transparent;
155
Faris Ansarif5851972018-07-23 11:55:07 +0530156 &.active, &:hover:not(.is-title) {
157 border-color: @border-color;
158 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530159 }
160
Faris Ansariea2d1b02018-07-23 18:44:46 +0530161 .hub-item-image {
Faris Ansari9fb5e1c2018-09-07 23:17:29 +0530162 position: relative;
Faris Ansariea2d1b02018-07-23 18:44:46 +0530163 border: 1px solid @border-color;
164 border-radius: 4px;
165 overflow: hidden;
166 height: 200px;
167 width: 200px;
168 display: flex;
169 align-items: center;
170 }
171
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530172 .hub-item-skeleton-image {
173 border-radius: 4px;
174 background-color: @light-bg;
175 overflow: hidden;
176 height: 200px;
177 width: 200px;
178 }
179
180 .hub-skeleton {
181 background-color: @light-bg;
182 color: @light-bg;
183 max-width: 500px;
184 }
185
Faris Ansariea2d1b02018-07-23 18:44:46 +0530186 .hub-item-seller img {
187 width: 50px;
188 height: 50px;
189 border-radius: 4px;
190 border: 1px solid @border-color;
191 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530192
193 .register-title {
194 font-size: @text-regular;
195 }
196
197 .register-form {
198 border: 1px solid @border-color;
199 border-radius: 4px;
200 padding: 15px 25px;
201 }
202
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530203 .publish-area.filled {
204 .empty-items-container {
205 display: none;
206 }
207 }
208
209 .publish-area.empty {
210 .hub-items-container {
211 display: none;
212 }
213 }
214
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530215 .publish-area-head {
216 display: flex;
217 justify-content: space-between;
218 margin-bottom: 20px;
219 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530220
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530221 .hub-list-item {
222 display: flex;
223 justify-content: space-between;
224 align-items: center;
225 border: 1px solid @border-color;
Faris Ansari725603c2018-08-27 19:51:36 +0530226 margin-bottom: -1px;
227 overflow: hidden;
228 }
229
230 .hub-list-item:first-child {
231 border-top-left-radius: 4px;
232 border-top-right-radius: 4px;
233 }
234 .hub-list-item:last-child {
235 border-bottom-left-radius: 4px;
236 border-bottom-right-radius: 4px;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530237 }
238
239 .hub-list-left {
240 display: flex;
241 align-items: center;
242 max-width: 90%;
243 }
244
245 .hub-list-right {
246 padding-right: 15px;
247 }
248
249 .hub-list-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530250 position: relative;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530251 width: 58px;
252 height: 58px;
253 border-right: 1px solid @border-color;
254
255 &::after {
256 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530257 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530258 }
259
260 .hub-list-body {
261 padding: 12px 15px;
262 }
263
264 .hub-list-title {
265 font-weight: bold;
266 }
267
268 .hub-list-subtitle {
269 color: @text-muted;
Suraj Shetty341386e2018-08-22 21:31:16 +0530270 }
271
Suraj Shetty88700cf2018-08-24 11:25:04 +0530272 .selling-item-message-card {
273 max-width: 500px;
274 margin-bottom: 15px;
275 border-radius: 3px;
276 border: 1px solid @border-color;
277 .selling-item-detail {
278 overflow: auto;
279 .item-image {
280 float: left;
281 height: 80px;
282 width: 80px;
283 object-fit: contain;
284 margin: 5px;
285 }
286 .item-name {
287 margin-left: 10px;
288 }
289 }
290 .received-message-container {
291 clear: left;
292 background-color: @light-bg;
293 .received-message {
294 border-top: 1px solid @border-color;
295 padding: 10px;
296 }
297 .frappe-timestamp {
298 float: right;
299 }
300 }
301 }
302
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530303 .form-container {
304 .frappe-control {
305 max-width: 100% !important;
306 }
307 }
308
309 .form-message {
310 padding-top: 0;
311 padding-bottom: 0;
312 border-bottom: none;
313 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530314
Faris Ansariaa465672018-08-17 14:29:22 +0530315 .hub-items-container {
316 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530317 justify-content: space-between;
318 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530319 }
320 }
321
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530322 .hub-item-container {
323 overflow: hidden;
324 }
325
326 .hub-item-review-container {
327 margin-top: calc(30vh);
328 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530329
330 .hub-item-dropdown {
331 margin-top: 20px;
332 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530333
334 /* messages page */
335
336 .message-list-item {
337 display: flex;
338 align-items: center;
339 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530340
341 &:not(.active) {
342 filter: grayscale(1);
343 color: @text-muted;
344 }
345
346 &:hover {
347 background-color: @light-bg;
348 }
349
350 .list-item-left {
351 width: 30px;
352 border-radius: 4px;
353 overflow: hidden;
354 margin-right: 15px;
355 }
356
357 .list-item-body {
358 font-weight: bold;
359 padding-bottom: 1px;
360 }
361 }
362
Faris Ansarid17aedb2018-08-20 18:33:46 +0530363 .message-container {
364 display: flex;
365 flex-direction: column;
366 border: 1px solid @border-color;
367 border-radius: 3px;
368 height: calc(100vh - 300px);
369 justify-content: space-between;
Faris Ansaricaebd4a2018-08-26 20:09:02 +0530370 padding: 15px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530371 }
372
Faris Ansarid17aedb2018-08-20 18:33:46 +0530373 .message-list {
Faris Ansarid17aedb2018-08-20 18:33:46 +0530374 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530375 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530376}