blob: c610aad25fbf03d8336cea05cbda7444b05c419f [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;
6 padding-right: 25px;
Prateeksha Singhb8e9c9b2018-01-25 09:18:32 +05307 }
8
Faris Ansarif5851972018-07-23 11:55:07 +05309 .layout-main-section {
10 border: none;
Faris Ansarif5851972018-07-23 11:55:07 +053011 font-size: @text-medium;
Faris Ansariea2d1b02018-07-23 18:44:46 +053012 padding-top: 25px;
Faris Ansarif5851972018-07-23 11:55:07 +053013
14 @media (max-width: @screen-xs) {
15 padding-left: 20px;
16 padding-right: 20px;
17 }
18 }
19
Prateeksha Singhbc8caef2018-07-25 10:58:56 +053020 input, textarea {
21 font-size: @text-medium;
22 }
23
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053024 .btn-primary {
25 background-color: #89da28;
26 border-color: #61ca23;
27 }
28
29 .btn-primary:hover {
30 background-color: #61ca23;
31 border-color: #59b81c;
32 }
33
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053034 .progress-bar {
35 background-color: #89da28;
36 }
37
Prateeksha Singh505f6f12018-07-26 08:06:21 +053038 .subpage-title.flex {
39 align-items: flex-start;
40 justify-content: space-between;
41 }
42
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053043 .subpage-message {
44 p {
45 padding: 10px 15px;
46 margin-top: 0px;
47 margin-bottom: 15px;
48 background-color: #f9fbf7;
49 justify-content: space-between;
50 }
51
52 .octicon-x {
53 cursor: pointer;
54 }
55 }
56
Faris Ansarif5851972018-07-23 11:55:07 +053057 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053058 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053059 position: relative;
60 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053061 border-radius: 4px;
62 overflow: hidden;
63 cursor: pointer;
Faris Ansariea2d1b02018-07-23 18:44:46 +053064
Faris Ansari296848c2018-07-28 16:14:22 +053065 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053066 display: block;
67 }
Faris Ansari296848c2018-07-28 16:14:22 +053068 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053069
Faris Ansari296848c2018-07-28 16:14:22 +053070 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053071 &.active {
72 .hub-card-header {
73 background-color: #f4ffe5;
74 }
75
76 .octicon-check {
77 display: inline;
78 }
79 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053080
81 .octicon-check {
82 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053083 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053084 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053085 right: 15px;
86 top: 50%;
87 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053088 }
Faris Ansarif5851972018-07-23 11:55:07 +053089 }
90
Faris Ansari296848c2018-07-28 16:14:22 +053091 .hub-card-header {
92 position: relative;
93 padding: 12px 15px;
94 height: 60px;
95 border-bottom: 1px solid @border-color;
96 }
97
Faris Ansarif5851972018-07-23 11:55:07 +053098 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053099 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530100 height: 200px;
101 }
102
Faris Ansari296848c2018-07-28 16:14:22 +0530103 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530104 display: none;
105 position: absolute;
106 top: 0;
107 width: 100%;
108 height: 100%;
109 background-color: rgba(0, 0, 0, 0.1);
110 }
111
Faris Ansari296848c2018-07-28 16:14:22 +0530112 .hub-card-overlay-body {
113 position: relative;
114 height: 100%;
115 }
116
117 .hub-card-overlay-button {
118 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530119 }
120
Faris Ansarif5851972018-07-23 11:55:07 +0530121 .hub-card-image {
122 min-width: 100%;
123 width: 100%;
124 }
125
126 .hub-search-container {
127 margin-bottom: 20px;
128
129 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530130 height: 32px;
131 }
132 }
133
134 .hub-sidebar {
135 padding-top: 25px;
136 padding-right: 15px;
137 }
138
139 .hub-sidebar-group {
140 margin-bottom: 10px;
141 }
142
143 .hub-sidebar-item {
144 padding: 5px 8px;
145 margin-bottom: 3px;
146 border-radius: 4px;
147 border: 1px solid transparent;
148
149 cursor: pointer;
150
151 &.active, &:hover:not(.is-title) {
152 border-color: @border-color;
153 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530154 }
155
Faris Ansariea2d1b02018-07-23 18:44:46 +0530156 .hub-item-image {
157 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 Singhd450c0a2018-07-26 17:24:33 +0530197 .empty-state {
Faris Ansari24d5f172018-07-26 19:22:58 +0530198 height: 500px;
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530199 }
200
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530201 .form-container {
202 .frappe-control {
203 max-width: 100% !important;
204 }
205 }
206
207 .form-message {
208 padding-top: 0;
209 padding-bottom: 0;
210 border-bottom: none;
211 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530212
213 .hub-item-container {
214 overflow: hidden;
215 }
216
217 .hub-item-review-container {
218 margin-top: calc(30vh);
219 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530220}
221
222body[data-route^="Hub/"] {
223 .hub-icon {
224 width: 40px;
225 height: 40px;
226 }
227
Faris Ansarifd345f82017-10-05 11:17:30 +0530228 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530229 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +0530230 border-radius: 3px;
231 padding: 12px;
232 overflow: hidden;
233 text-align: center;
234 white-space: nowrap;
235
Faris Ansarifd345f82017-10-05 11:17:30 +0530236 .helper {
237 height: 100%;
238 display: inline-block;
239 vertical-align: middle;
240 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530241 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530242
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530243 .tree {
244 margin: 10px 0px;
245 padding: 0px;
246 height: 100%;
247 position: relative;
248 }
249
250 .tree.with-skeleton.opened::before {
251 left: 9px;
252 top: 14px;
253 height: calc(~"100% - 32px");
254 }
255
256 .list-header-icon {
257 width: 72px;
258 border-radius: 4px;
259 flex-shrink: 0;
260 margin: 10px;
261 padding: 1px;
262 border: 1px solid @border-color;
263 height: 72px;
264 display: flex;
265 align-items: center;
266 justify-content: center;
267
268 img {
269 border-radius: 4px;
Faris Ansarifd345f82017-10-05 11:17:30 +0530270 }
271 }
272
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530273 .star-icon.fa-star {
274 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +0530275 }
276
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530277 .octicon-heart.liked {
278 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +0530279 }
280
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530281 .margin-vertical-10 {
282 margin: 10px 0px;
283 }
284
285 .margin-vertical-15 {
286 margin: 15px 0px;
287 }
288
289 .frappe-list .result {
290 min-height: 100px;
291 }
Prateeksha Singh420c7902018-04-05 14:44:16 +0530292
293 .frappe-control[data-fieldtype="Attach Image"] {
294 width: 140px;
295 height: 180px;
296 margin-top: 20px;
297 }
298
299 .frappe-control[data-fieldtype="Attach Image"] .form-group {
300 display: none;
301 }
302
303 .frappe-control[data-fieldtype="Attach Image"] .clearfix {
304 display: none;
305 }
306
307 .missing-image {
308 display: block;
309 position: relative;
310 border-radius: 4px;
311 border: 1px solid #d1d8dd;
312 border-radius: 6px;
313 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
314 }
315 .missing-image .octicon {
316 position: relative;
317 top: 50%;
318 transform: translate(0px, -50%);
319 -webkit-transform: translate(0px, -50%);
320 }
321 .attach-image-display {
322 display: block;
323 position: relative;
324 border-radius: 4px;
325 }
326 .img-container {
327 height: 100%;
328 width: 100%;
329 padding: 2px;
330 display: flex;
331 align-items: center;
332 justify-content: center;
333 position: relative;
334 border: 1px solid #d1d8dd;
335 border-radius: 6px;
336 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
337 }
338 .img-overlay {
339 display: flex;
340 align-items: center;
341 justify-content: center;
342 position: absolute;
343 width: 100%;
344 height: 100%;
345 color: #777777;
346 background-color: rgba(255, 255, 255, 0.7);
347 opacity: 0;
348 }
349 .img-overlay:hover {
350 opacity: 1;
351 cursor: pointer;
352 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530353}
354
355.image-view-container {
356 .image-view-body {
357 &:hover .like-button {
358 opacity: 0.7;
359 }
360 }
361
362 .like-button {
363 bottom: 10px !important;
364 left: 10px !important;
365 width: 36px;
366 height: 36px;
367 opacity: 0;
368 font-size: 16px;
369 color: @text-color;
370 position: absolute;
371
372 // show zoom button on mobile devices
373 @media (max-width: @screen-xs) {
374 opacity: 0.5
375 }
376 }
377
378 .image-view-body:hover .like-button {
379 opacity: 0.7;
380 }
381}
382
383.rating-area .star-icon {
384 cursor: pointer;
385 font-size: 15px;
386}