blob: 177ec427283d6aef7ba649d7200237ab668cdc98 [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 Singh505f6f12018-07-26 08:06:21 +053034 .subpage-title.flex {
35 align-items: flex-start;
36 justify-content: space-between;
37 }
38
Faris Ansarif5851972018-07-23 11:55:07 +053039 .hub-card {
40 border: 1px solid @border-color;
41 margin-bottom: 25px;
42 border-radius: 4px;
43 overflow: hidden;
44 cursor: pointer;
Faris Ansariea2d1b02018-07-23 18:44:46 +053045
Faris Ansari296848c2018-07-28 16:14:22 +053046 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053047 display: block;
48 }
Faris Ansari296848c2018-07-28 16:14:22 +053049 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053050
Faris Ansari296848c2018-07-28 16:14:22 +053051 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053052 &.active {
53 .hub-card-header {
54 background-color: #f4ffe5;
55 }
56
57 .octicon-check {
58 display: inline;
59 }
60 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053061
62 .octicon-check {
63 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053064 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053065 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053066 right: 15px;
67 top: 50%;
68 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053069 }
Faris Ansarif5851972018-07-23 11:55:07 +053070 }
71
Faris Ansari296848c2018-07-28 16:14:22 +053072 .hub-card-header {
73 position: relative;
74 padding: 12px 15px;
75 height: 60px;
76 border-bottom: 1px solid @border-color;
77 }
78
Faris Ansarif5851972018-07-23 11:55:07 +053079 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053080 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053081 height: 200px;
82 }
83
Faris Ansari296848c2018-07-28 16:14:22 +053084 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053085 display: none;
86 position: absolute;
87 top: 0;
88 width: 100%;
89 height: 100%;
90 background-color: rgba(0, 0, 0, 0.1);
91 }
92
Faris Ansari296848c2018-07-28 16:14:22 +053093 .hub-card-overlay-body {
94 position: relative;
95 height: 100%;
96 }
97
98 .hub-card-overlay-button {
99 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530100 }
101
Faris Ansarif5851972018-07-23 11:55:07 +0530102 .hub-card-image {
103 min-width: 100%;
104 width: 100%;
105 }
106
107 .hub-search-container {
108 margin-bottom: 20px;
109
110 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530111 height: 32px;
112 }
113 }
114
115 .hub-sidebar {
116 padding-top: 25px;
117 padding-right: 15px;
118 }
119
120 .hub-sidebar-group {
121 margin-bottom: 10px;
122 }
123
124 .hub-sidebar-item {
125 padding: 5px 8px;
126 margin-bottom: 3px;
127 border-radius: 4px;
128 border: 1px solid transparent;
129
130 cursor: pointer;
131
132 &.active, &:hover:not(.is-title) {
133 border-color: @border-color;
134 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530135 }
136
Faris Ansariea2d1b02018-07-23 18:44:46 +0530137 .hub-item-image {
138 border: 1px solid @border-color;
139 border-radius: 4px;
140 overflow: hidden;
141 height: 200px;
142 width: 200px;
143 display: flex;
144 align-items: center;
145 }
146
147 .hub-item-seller img {
148 width: 50px;
149 height: 50px;
150 border-radius: 4px;
151 border: 1px solid @border-color;
152 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530153
154 .register-title {
155 font-size: @text-regular;
156 }
157
158 .register-form {
159 border: 1px solid @border-color;
160 border-radius: 4px;
161 padding: 15px 25px;
162 }
163
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530164 .empty-state {
Faris Ansari24d5f172018-07-26 19:22:58 +0530165 height: 500px;
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530166 }
167
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530168 .form-container {
169 .frappe-control {
170 max-width: 100% !important;
171 }
172 }
173
174 .form-message {
175 padding-top: 0;
176 padding-bottom: 0;
177 border-bottom: none;
178 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530179
180 .hub-item-container {
181 overflow: hidden;
182 }
183
184 .hub-item-review-container {
185 margin-top: calc(30vh);
186 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530187}
188
189body[data-route^="Hub/"] {
190 .hub-icon {
191 width: 40px;
192 height: 40px;
193 }
194
Faris Ansarifd345f82017-10-05 11:17:30 +0530195 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530196 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +0530197 border-radius: 3px;
198 padding: 12px;
199 overflow: hidden;
200 text-align: center;
201 white-space: nowrap;
202
Faris Ansarifd345f82017-10-05 11:17:30 +0530203 .helper {
204 height: 100%;
205 display: inline-block;
206 vertical-align: middle;
207 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530208 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530209
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530210 .tree {
211 margin: 10px 0px;
212 padding: 0px;
213 height: 100%;
214 position: relative;
215 }
216
217 .tree.with-skeleton.opened::before {
218 left: 9px;
219 top: 14px;
220 height: calc(~"100% - 32px");
221 }
222
223 .list-header-icon {
224 width: 72px;
225 border-radius: 4px;
226 flex-shrink: 0;
227 margin: 10px;
228 padding: 1px;
229 border: 1px solid @border-color;
230 height: 72px;
231 display: flex;
232 align-items: center;
233 justify-content: center;
234
235 img {
236 border-radius: 4px;
Faris Ansarifd345f82017-10-05 11:17:30 +0530237 }
238 }
239
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530240 .star-icon.fa-star {
241 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +0530242 }
243
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530244 .octicon-heart.liked {
245 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +0530246 }
247
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530248 .margin-vertical-10 {
249 margin: 10px 0px;
250 }
251
252 .margin-vertical-15 {
253 margin: 15px 0px;
254 }
255
256 .frappe-list .result {
257 min-height: 100px;
258 }
Prateeksha Singh420c7902018-04-05 14:44:16 +0530259
260 .frappe-control[data-fieldtype="Attach Image"] {
261 width: 140px;
262 height: 180px;
263 margin-top: 20px;
264 }
265
266 .frappe-control[data-fieldtype="Attach Image"] .form-group {
267 display: none;
268 }
269
270 .frappe-control[data-fieldtype="Attach Image"] .clearfix {
271 display: none;
272 }
273
274 .missing-image {
275 display: block;
276 position: relative;
277 border-radius: 4px;
278 border: 1px solid #d1d8dd;
279 border-radius: 6px;
280 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
281 }
282 .missing-image .octicon {
283 position: relative;
284 top: 50%;
285 transform: translate(0px, -50%);
286 -webkit-transform: translate(0px, -50%);
287 }
288 .attach-image-display {
289 display: block;
290 position: relative;
291 border-radius: 4px;
292 }
293 .img-container {
294 height: 100%;
295 width: 100%;
296 padding: 2px;
297 display: flex;
298 align-items: center;
299 justify-content: center;
300 position: relative;
301 border: 1px solid #d1d8dd;
302 border-radius: 6px;
303 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
304 }
305 .img-overlay {
306 display: flex;
307 align-items: center;
308 justify-content: center;
309 position: absolute;
310 width: 100%;
311 height: 100%;
312 color: #777777;
313 background-color: rgba(255, 255, 255, 0.7);
314 opacity: 0;
315 }
316 .img-overlay:hover {
317 opacity: 1;
318 cursor: pointer;
319 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530320}
321
322.image-view-container {
323 .image-view-body {
324 &:hover .like-button {
325 opacity: 0.7;
326 }
327 }
328
329 .like-button {
330 bottom: 10px !important;
331 left: 10px !important;
332 width: 36px;
333 height: 36px;
334 opacity: 0;
335 font-size: 16px;
336 color: @text-color;
337 position: absolute;
338
339 // show zoom button on mobile devices
340 @media (max-width: @screen-xs) {
341 opacity: 0.5
342 }
343 }
344
345 .image-view-body:hover .like-button {
346 opacity: 0.7;
347 }
348}
349
350.rating-area .star-icon {
351 cursor: pointer;
352 font-size: 15px;
353}