blob: 8cb7a9c1ce5b1c5449fb07493a61b6924eec18ba [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 {
35 .img-background();
36 display: flex;
37 align-items: center;
38 justify-content: center;
39
40 span {
41 font-size: 32px;
42 color: @text-extra-muted;
43 }
44 }
45
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053046 .progress-bar {
47 background-color: #89da28;
48 }
49
Prateeksha Singh505f6f12018-07-26 08:06:21 +053050 .subpage-title.flex {
51 align-items: flex-start;
52 justify-content: space-between;
53 }
54
Faris Ansarif5851972018-07-23 11:55:07 +053055 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053056 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053057 position: relative;
58 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053059 border-radius: 4px;
60 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053061
Faris Ansari296848c2018-07-28 16:14:22 +053062 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053063 display: block;
64 }
Faris Ansari296848c2018-07-28 16:14:22 +053065 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053066
Faris Ansari296848c2018-07-28 16:14:22 +053067 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053068 &.active {
69 .hub-card-header {
70 background-color: #f4ffe5;
71 }
72
73 .octicon-check {
74 display: inline;
75 }
76 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053077
78 .octicon-check {
79 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053080 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053081 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053082 right: 15px;
83 top: 50%;
84 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053085 }
Faris Ansarif5851972018-07-23 11:55:07 +053086 }
87
Faris Ansari296848c2018-07-28 16:14:22 +053088 .hub-card-header {
89 position: relative;
90 padding: 12px 15px;
91 height: 60px;
92 border-bottom: 1px solid @border-color;
93 }
94
Faris Ansarif5851972018-07-23 11:55:07 +053095 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053096 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053097 height: 200px;
98 }
99
Faris Ansari296848c2018-07-28 16:14:22 +0530100 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530101 display: none;
102 position: absolute;
103 top: 0;
104 width: 100%;
105 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +0530106 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +0530107 }
108
Faris Ansari296848c2018-07-28 16:14:22 +0530109 .hub-card-overlay-body {
110 position: relative;
111 height: 100%;
112 }
113
114 .hub-card-overlay-button {
115 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +0530116 right: 15px;
117 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530118 }
119
Faris Ansarif5851972018-07-23 11:55:07 +0530120 .hub-card-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530121 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530122 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530123 height: 100%;
124 object-fit: contain;
125 }
126
Faris Ansarif5851972018-07-23 11:55:07 +0530127 .hub-search-container {
128 margin-bottom: 20px;
129
130 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530131 height: 32px;
132 }
133 }
134
135 .hub-sidebar {
136 padding-top: 25px;
137 padding-right: 15px;
138 }
139
140 .hub-sidebar-group {
141 margin-bottom: 10px;
142 }
143
144 .hub-sidebar-item {
145 padding: 5px 8px;
146 margin-bottom: 3px;
147 border-radius: 4px;
148 border: 1px solid transparent;
149
Faris Ansarif5851972018-07-23 11:55:07 +0530150 &.active, &:hover:not(.is-title) {
151 border-color: @border-color;
152 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530153 }
154
Faris Ansariea2d1b02018-07-23 18:44:46 +0530155 .hub-item-image {
Faris Ansari9fb5e1c2018-09-07 23:17:29 +0530156 position: relative;
Faris Ansariea2d1b02018-07-23 18:44:46 +0530157 border: 1px solid @border-color;
158 border-radius: 4px;
159 overflow: hidden;
160 height: 200px;
161 width: 200px;
162 display: flex;
163 align-items: center;
164 }
165
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530166 .hub-item-skeleton-image {
167 border-radius: 4px;
168 background-color: @light-bg;
169 overflow: hidden;
170 height: 200px;
171 width: 200px;
172 }
173
174 .hub-skeleton {
175 background-color: @light-bg;
176 color: @light-bg;
177 max-width: 500px;
178 }
179
Faris Ansariea2d1b02018-07-23 18:44:46 +0530180 .hub-item-seller img {
181 width: 50px;
182 height: 50px;
183 border-radius: 4px;
184 border: 1px solid @border-color;
185 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530186
187 .register-title {
188 font-size: @text-regular;
189 }
190
191 .register-form {
192 border: 1px solid @border-color;
193 border-radius: 4px;
194 padding: 15px 25px;
195 }
196
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530197 .publish-area.filled {
198 .empty-items-container {
199 display: none;
200 }
201 }
202
203 .publish-area.empty {
204 .hub-items-container {
205 display: none;
206 }
207 }
208
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530209 .publish-area-head {
210 display: flex;
211 justify-content: space-between;
212 margin-bottom: 20px;
213 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530214
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530215 .hub-list-item {
216 display: flex;
217 justify-content: space-between;
218 align-items: center;
219 border: 1px solid @border-color;
Faris Ansari725603c2018-08-27 19:51:36 +0530220 margin-bottom: -1px;
221 overflow: hidden;
222 }
223
224 .hub-list-item:first-child {
225 border-top-left-radius: 4px;
226 border-top-right-radius: 4px;
227 }
228 .hub-list-item:last-child {
229 border-bottom-left-radius: 4px;
230 border-bottom-right-radius: 4px;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530231 }
232
233 .hub-list-left {
234 display: flex;
235 align-items: center;
236 max-width: 90%;
237 }
238
239 .hub-list-right {
240 padding-right: 15px;
241 }
242
243 .hub-list-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530244 position: relative;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530245 width: 58px;
246 height: 58px;
247 border-right: 1px solid @border-color;
248
249 &::after {
250 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530251 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530252 }
253
254 .hub-list-body {
255 padding: 12px 15px;
256 }
257
258 .hub-list-title {
259 font-weight: bold;
260 }
261
262 .hub-list-subtitle {
263 color: @text-muted;
Suraj Shetty341386e2018-08-22 21:31:16 +0530264 }
265
Suraj Shetty88700cf2018-08-24 11:25:04 +0530266 .selling-item-message-card {
267 max-width: 500px;
268 margin-bottom: 15px;
269 border-radius: 3px;
270 border: 1px solid @border-color;
271 .selling-item-detail {
272 overflow: auto;
273 .item-image {
274 float: left;
275 height: 80px;
276 width: 80px;
277 object-fit: contain;
278 margin: 5px;
279 }
280 .item-name {
281 margin-left: 10px;
282 }
283 }
284 .received-message-container {
285 clear: left;
286 background-color: @light-bg;
287 .received-message {
288 border-top: 1px solid @border-color;
289 padding: 10px;
290 }
291 .frappe-timestamp {
292 float: right;
293 }
294 }
295 }
296
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530297 .form-container {
298 .frappe-control {
299 max-width: 100% !important;
300 }
301 }
302
303 .form-message {
304 padding-top: 0;
305 padding-bottom: 0;
306 border-bottom: none;
307 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530308
Faris Ansariaa465672018-08-17 14:29:22 +0530309 .hub-items-container {
310 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530311 justify-content: space-between;
312 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530313 }
314 }
315
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530316 .hub-item-container {
317 overflow: hidden;
318 }
319
320 .hub-item-review-container {
321 margin-top: calc(30vh);
322 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530323
324 .hub-item-dropdown {
325 margin-top: 20px;
326 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530327
328 /* messages page */
329
330 .message-list-item {
331 display: flex;
332 align-items: center;
333 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530334
335 &:not(.active) {
336 filter: grayscale(1);
337 color: @text-muted;
338 }
339
340 &:hover {
341 background-color: @light-bg;
342 }
343
344 .list-item-left {
345 width: 30px;
346 border-radius: 4px;
347 overflow: hidden;
348 margin-right: 15px;
349 }
350
351 .list-item-body {
352 font-weight: bold;
353 padding-bottom: 1px;
354 }
355 }
356
Faris Ansarid17aedb2018-08-20 18:33:46 +0530357 .message-container {
358 display: flex;
359 flex-direction: column;
360 border: 1px solid @border-color;
361 border-radius: 3px;
362 height: calc(100vh - 300px);
363 justify-content: space-between;
Faris Ansaricaebd4a2018-08-26 20:09:02 +0530364 padding: 15px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530365 }
366
Faris Ansarid17aedb2018-08-20 18:33:46 +0530367 .message-list {
Faris Ansarid17aedb2018-08-20 18:33:46 +0530368 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530369 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530370}