blob: 29deada8a414333ccce51b2b1005e5e80c45031a [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: " ";
prssanna7e8113c2021-02-16 11:59:12 +053036 position: absolute;
37 left: 0;
38 height: 100%;
39 width: 100%;
40 background-color: var(--bg-light-gray);
Faris Ansari9fb5e1c2018-09-07 23:17:29 +053041 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 Singhefbd2ee2018-07-30 09:17:14 +053051 .progress-bar {
52 background-color: #89da28;
53 }
54
Prateeksha Singh505f6f12018-07-26 08:06:21 +053055 .subpage-title.flex {
56 align-items: flex-start;
57 justify-content: space-between;
58 }
59
Faris Ansarif5851972018-07-23 11:55:07 +053060 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053061 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053062 position: relative;
63 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053064 border-radius: 4px;
65 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053066
Faris Ansari296848c2018-07-28 16:14:22 +053067 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053068 display: block;
69 }
Faris Ansari296848c2018-07-28 16:14:22 +053070 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053071
Faris Ansari296848c2018-07-28 16:14:22 +053072 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053073 &.active {
74 .hub-card-header {
75 background-color: #f4ffe5;
76 }
77
78 .octicon-check {
79 display: inline;
80 }
81 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053082
83 .octicon-check {
84 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053085 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053086 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053087 right: 15px;
88 top: 50%;
89 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053090 }
Faris Ansarif5851972018-07-23 11:55:07 +053091 }
92
Faris Ansari296848c2018-07-28 16:14:22 +053093 .hub-card-header {
94 position: relative;
95 padding: 12px 15px;
96 height: 60px;
97 border-bottom: 1px solid @border-color;
98 }
99
Faris Ansarif5851972018-07-23 11:55:07 +0530100 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530101 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530102 height: 200px;
103 }
104
Faris Ansari296848c2018-07-28 16:14:22 +0530105 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530106 display: none;
107 position: absolute;
108 top: 0;
109 width: 100%;
110 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +0530111 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +0530112 }
113
Faris Ansari296848c2018-07-28 16:14:22 +0530114 .hub-card-overlay-body {
115 position: relative;
116 height: 100%;
117 }
118
119 .hub-card-overlay-button {
120 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +0530121 right: 15px;
122 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530123 }
124
Faris Ansarif5851972018-07-23 11:55:07 +0530125 .hub-card-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530126 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530127 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530128 height: 100%;
129 object-fit: contain;
130 }
131
Faris Ansarif5851972018-07-23 11:55:07 +0530132 .hub-search-container {
133 margin-bottom: 20px;
134
135 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530136 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 Ansarif5851972018-07-23 11:55:07 +0530155 &.active, &:hover:not(.is-title) {
156 border-color: @border-color;
157 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530158 }
159
Faris Ansariea2d1b02018-07-23 18:44:46 +0530160 .hub-item-image {
Faris Ansari9fb5e1c2018-09-07 23:17:29 +0530161 position: relative;
Faris Ansariea2d1b02018-07-23 18:44:46 +0530162 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 Singhf6f429f2018-07-28 12:25:14 +0530171 .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 Ansariea2d1b02018-07-23 18:44:46 +0530185 .hub-item-seller img {
186 width: 50px;
187 height: 50px;
188 border-radius: 4px;
189 border: 1px solid @border-color;
190 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530191
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 Singh96fdbd42018-08-20 10:07:56 +0530202 .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 Shetty12de0ae2018-08-22 11:50:23 +0530214 .publish-area-head {
215 display: flex;
216 justify-content: space-between;
217 margin-bottom: 20px;
218 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530219
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530220 .hub-list-item {
221 display: flex;
222 justify-content: space-between;
223 align-items: center;
224 border: 1px solid @border-color;
Faris Ansari725603c2018-08-27 19:51:36 +0530225 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 Shetty0e59ec32018-08-25 21:22:55 +0530236 }
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 Ansarif089dad2018-08-26 22:20:16 +0530249 position: relative;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530250 width: 58px;
251 height: 58px;
252 border-right: 1px solid @border-color;
253
254 &::after {
255 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530256 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530257 }
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 Shetty341386e2018-08-22 21:31:16 +0530269 }
270
Suraj Shetty88700cf2018-08-24 11:25:04 +0530271 .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 Singhbc8caef2018-07-25 10:58:56 +0530302 .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 Ansariabcc8ab2018-07-28 13:57:16 +0530313
Faris Ansariaa465672018-08-17 14:29:22 +0530314 .hub-items-container {
315 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530316 justify-content: space-between;
317 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530318 }
319 }
320
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530321 .hub-item-container {
322 overflow: hidden;
323 }
324
325 .hub-item-review-container {
326 margin-top: calc(30vh);
327 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530328
329 .hub-item-dropdown {
330 margin-top: 20px;
331 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530332
333 /* messages page */
334
335 .message-list-item {
336 display: flex;
337 align-items: center;
338 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530339
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 Ansarid17aedb2018-08-20 18:33:46 +0530362 .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 Ansaricaebd4a2018-08-26 20:09:02 +0530369 padding: 15px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530370 }
371
Faris Ansarid17aedb2018-08-20 18:33:46 +0530372 .message-list {
Faris Ansarid17aedb2018-08-20 18:33:46 +0530373 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530374 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530375}