blob: d40926b7adb854d91dcd1ea3ebd0e858e693aa62 [file] [log] [blame]
Faris Ansarifd345f82017-10-05 11:17:30 +05301@import "../../../../frappe/frappe/public/less/variables.less";
2
Faris Ansariea2d1b02018-07-23 18:44:46 +05303body[data-route^="marketplace/"] {
4 .layout-side-section {
5 padding-top: 25px;
Prateeksha Singh02c176c2018-08-29 14:27:47 +05306 padding-left: 5px;
Faris Ansariea2d1b02018-07-23 18:44:46 +05307 padding-right: 25px;
Prateeksha Singhb8e9c9b2018-01-25 09:18:32 +05308 }
9
Prateeksha Singh305f7372018-08-20 00:25:26 +053010 [data-route], [data-action] {
Prateeksha Singh318cca82018-08-07 12:41:21 +053011 cursor: pointer;
12 }
13
Faris Ansarif5851972018-07-23 11:55:07 +053014 .layout-main-section {
15 border: none;
Faris Ansarif5851972018-07-23 11:55:07 +053016 font-size: @text-medium;
Faris Ansariea2d1b02018-07-23 18:44:46 +053017 padding-top: 25px;
Faris Ansarif5851972018-07-23 11:55:07 +053018
19 @media (max-width: @screen-xs) {
20 padding-left: 20px;
21 padding-right: 20px;
22 }
23 }
24
Prateeksha Singhbc8caef2018-07-25 10:58:56 +053025 input, textarea {
26 font-size: @text-medium;
27 }
28
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053029 .progress-bar {
30 background-color: #89da28;
31 }
32
Prateeksha Singh505f6f12018-07-26 08:06:21 +053033 .subpage-title.flex {
34 align-items: flex-start;
35 justify-content: space-between;
36 }
37
Faris Ansarif5851972018-07-23 11:55:07 +053038 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053039 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053040 position: relative;
41 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053042 border-radius: 4px;
43 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053044
Faris Ansari296848c2018-07-28 16:14:22 +053045 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053046 display: block;
47 }
Faris Ansari296848c2018-07-28 16:14:22 +053048 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053049
Faris Ansari296848c2018-07-28 16:14:22 +053050 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053051 &.active {
52 .hub-card-header {
53 background-color: #f4ffe5;
54 }
55
56 .octicon-check {
57 display: inline;
58 }
59 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053060
61 .octicon-check {
62 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053063 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053064 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053065 right: 15px;
66 top: 50%;
67 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053068 }
Faris Ansarif5851972018-07-23 11:55:07 +053069 }
70
Faris Ansari296848c2018-07-28 16:14:22 +053071 .hub-card-header {
72 position: relative;
73 padding: 12px 15px;
74 height: 60px;
75 border-bottom: 1px solid @border-color;
76 }
77
Faris Ansarif5851972018-07-23 11:55:07 +053078 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053079 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053080 height: 200px;
81 }
82
Faris Ansari296848c2018-07-28 16:14:22 +053083 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053084 display: none;
85 position: absolute;
86 top: 0;
87 width: 100%;
88 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +053089 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +053090 }
91
Faris Ansari296848c2018-07-28 16:14:22 +053092 .hub-card-overlay-body {
93 position: relative;
94 height: 100%;
95 }
96
97 .hub-card-overlay-button {
98 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +053099 right: 15px;
100 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530101 }
102
Faris Ansarif5851972018-07-23 11:55:07 +0530103 .hub-card-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530104 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530105 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530106 height: 100%;
107 object-fit: contain;
108 }
109
Faris Ansarif5851972018-07-23 11:55:07 +0530110 .hub-search-container {
111 margin-bottom: 20px;
112
113 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530114 height: 32px;
115 }
116 }
117
118 .hub-sidebar {
119 padding-top: 25px;
120 padding-right: 15px;
121 }
122
123 .hub-sidebar-group {
124 margin-bottom: 10px;
125 }
126
127 .hub-sidebar-item {
128 padding: 5px 8px;
129 margin-bottom: 3px;
130 border-radius: 4px;
131 border: 1px solid transparent;
132
Faris Ansarif5851972018-07-23 11:55:07 +0530133 &.active, &:hover:not(.is-title) {
134 border-color: @border-color;
135 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530136 }
137
Faris Ansariea2d1b02018-07-23 18:44:46 +0530138 .hub-item-image {
139 border: 1px solid @border-color;
140 border-radius: 4px;
141 overflow: hidden;
142 height: 200px;
143 width: 200px;
144 display: flex;
145 align-items: center;
146 }
147
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530148 .hub-item-skeleton-image {
149 border-radius: 4px;
150 background-color: @light-bg;
151 overflow: hidden;
152 height: 200px;
153 width: 200px;
154 }
155
156 .hub-skeleton {
157 background-color: @light-bg;
158 color: @light-bg;
159 max-width: 500px;
160 }
161
Faris Ansariea2d1b02018-07-23 18:44:46 +0530162 .hub-item-seller img {
163 width: 50px;
164 height: 50px;
165 border-radius: 4px;
166 border: 1px solid @border-color;
167 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530168
169 .register-title {
170 font-size: @text-regular;
171 }
172
173 .register-form {
174 border: 1px solid @border-color;
175 border-radius: 4px;
176 padding: 15px 25px;
177 }
178
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530179 .publish-area.filled {
180 .empty-items-container {
181 display: none;
182 }
183 }
184
185 .publish-area.empty {
186 .hub-items-container {
187 display: none;
188 }
189 }
190
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530191 .publish-area-head {
192 display: flex;
193 justify-content: space-between;
194 margin-bottom: 20px;
195 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530196
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530197 .hub-list-item {
198 display: flex;
199 justify-content: space-between;
200 align-items: center;
201 border: 1px solid @border-color;
Faris Ansari725603c2018-08-27 19:51:36 +0530202 margin-bottom: -1px;
203 overflow: hidden;
204 }
205
206 .hub-list-item:first-child {
207 border-top-left-radius: 4px;
208 border-top-right-radius: 4px;
209 }
210 .hub-list-item:last-child {
211 border-bottom-left-radius: 4px;
212 border-bottom-right-radius: 4px;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530213 }
214
215 .hub-list-left {
216 display: flex;
217 align-items: center;
218 max-width: 90%;
219 }
220
221 .hub-list-right {
222 padding-right: 15px;
223 }
224
225 .hub-list-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530226 position: relative;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530227 width: 58px;
228 height: 58px;
229 border-right: 1px solid @border-color;
230
231 &::after {
232 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530233 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530234 }
235
236 .hub-list-body {
237 padding: 12px 15px;
238 }
239
240 .hub-list-title {
241 font-weight: bold;
242 }
243
244 .hub-list-subtitle {
245 color: @text-muted;
Suraj Shetty341386e2018-08-22 21:31:16 +0530246 }
247
Suraj Shetty88700cf2018-08-24 11:25:04 +0530248 .selling-item-message-card {
249 max-width: 500px;
250 margin-bottom: 15px;
251 border-radius: 3px;
252 border: 1px solid @border-color;
253 .selling-item-detail {
254 overflow: auto;
255 .item-image {
256 float: left;
257 height: 80px;
258 width: 80px;
259 object-fit: contain;
260 margin: 5px;
261 }
262 .item-name {
263 margin-left: 10px;
264 }
265 }
266 .received-message-container {
267 clear: left;
268 background-color: @light-bg;
269 .received-message {
270 border-top: 1px solid @border-color;
271 padding: 10px;
272 }
273 .frappe-timestamp {
274 float: right;
275 }
276 }
277 }
278
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530279 .form-container {
280 .frappe-control {
281 max-width: 100% !important;
282 }
283 }
284
285 .form-message {
286 padding-top: 0;
287 padding-bottom: 0;
288 border-bottom: none;
289 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530290
Faris Ansariaa465672018-08-17 14:29:22 +0530291 .hub-items-container {
292 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530293 justify-content: space-between;
294 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530295 }
296 }
297
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530298 .hub-item-container {
299 overflow: hidden;
300 }
301
302 .hub-item-review-container {
303 margin-top: calc(30vh);
304 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530305
306 .hub-item-dropdown {
307 margin-top: 20px;
308 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530309
310 /* messages page */
311
312 .message-list-item {
313 display: flex;
314 align-items: center;
315 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530316
317 &:not(.active) {
318 filter: grayscale(1);
319 color: @text-muted;
320 }
321
322 &:hover {
323 background-color: @light-bg;
324 }
325
326 .list-item-left {
327 width: 30px;
328 border-radius: 4px;
329 overflow: hidden;
330 margin-right: 15px;
331 }
332
333 .list-item-body {
334 font-weight: bold;
335 padding-bottom: 1px;
336 }
337 }
338
Faris Ansarid17aedb2018-08-20 18:33:46 +0530339 .message-container {
340 display: flex;
341 flex-direction: column;
342 border: 1px solid @border-color;
343 border-radius: 3px;
344 height: calc(100vh - 300px);
345 justify-content: space-between;
Faris Ansaricaebd4a2018-08-26 20:09:02 +0530346 padding: 15px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530347 }
348
Faris Ansarid17aedb2018-08-20 18:33:46 +0530349 .message-list {
Faris Ansarid17aedb2018-08-20 18:33:46 +0530350 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530351 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530352}