blob: 20bf3c1219b4a62b44b34530e27b396e99a4a81a [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
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053046 &:hover .overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053047 display: block;
48 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053049
50 &.active {
51 .hub-card-header {
52 background-color: #f4ffe5;
53 }
54
55 .octicon-check {
56 display: inline;
57 }
58 }
Faris Ansarif5851972018-07-23 11:55:07 +053059 }
60
61 .hub-card-header {
62 padding: 12px 15px;
63 height: 60px;
Faris Ansariea2d1b02018-07-23 18:44:46 +053064 border-bottom: 1px solid @border-color;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053065
66 display: flex;
67 justify-content: space-between;
68
69 .octicon-check {
70 display: none;
71 font-size: 20px;
72 }
Faris Ansarif5851972018-07-23 11:55:07 +053073 }
74
75 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053076 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053077 height: 200px;
78 }
79
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053080 .overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053081 display: none;
82 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053083 }
84
85 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053086 top: 0;
87 width: 100%;
88 height: 100%;
89 background-color: rgba(0, 0, 0, 0.1);
90 }
91
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053092 .button-overlay {
93 top: 155px;
94 left: 15px;
95 }
96
Faris Ansarif5851972018-07-23 11:55:07 +053097 .hub-card-image {
98 min-width: 100%;
99 width: 100%;
100 }
101
102 .hub-search-container {
103 margin-bottom: 20px;
104
105 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530106 height: 32px;
107 }
108 }
109
110 .hub-sidebar {
111 padding-top: 25px;
112 padding-right: 15px;
113 }
114
115 .hub-sidebar-group {
116 margin-bottom: 10px;
117 }
118
119 .hub-sidebar-item {
120 padding: 5px 8px;
121 margin-bottom: 3px;
122 border-radius: 4px;
123 border: 1px solid transparent;
124
125 cursor: pointer;
126
127 &.active, &:hover:not(.is-title) {
128 border-color: @border-color;
129 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530130 }
131
Faris Ansariea2d1b02018-07-23 18:44:46 +0530132 .hub-item-image {
133 border: 1px solid @border-color;
134 border-radius: 4px;
135 overflow: hidden;
136 height: 200px;
137 width: 200px;
138 display: flex;
139 align-items: center;
140 }
141
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530142 .hub-item-skeleton-image {
143 border-radius: 4px;
144 background-color: @light-bg;
145 overflow: hidden;
146 height: 200px;
147 width: 200px;
148 }
149
150 .hub-skeleton {
151 background-color: @light-bg;
152 color: @light-bg;
153 max-width: 500px;
154 }
155
Faris Ansariea2d1b02018-07-23 18:44:46 +0530156 .hub-item-seller img {
157 width: 50px;
158 height: 50px;
159 border-radius: 4px;
160 border: 1px solid @border-color;
161 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530162
163 .register-title {
164 font-size: @text-regular;
165 }
166
167 .register-form {
168 border: 1px solid @border-color;
169 border-radius: 4px;
170 padding: 15px 25px;
171 }
172
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530173 .empty-state {
Faris Ansari24d5f172018-07-26 19:22:58 +0530174 height: 500px;
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530175 }
176
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530177 .form-container {
178 .frappe-control {
179 max-width: 100% !important;
180 }
181 }
182
183 .form-message {
184 padding-top: 0;
185 padding-bottom: 0;
186 border-bottom: none;
187 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530188}
189
190body[data-route^="Hub/"] {
191 .hub-icon {
192 width: 40px;
193 height: 40px;
194 }
195
Faris Ansarifd345f82017-10-05 11:17:30 +0530196 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530197 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +0530198 border-radius: 3px;
199 padding: 12px;
200 overflow: hidden;
201 text-align: center;
202 white-space: nowrap;
203
Faris Ansarifd345f82017-10-05 11:17:30 +0530204 .helper {
205 height: 100%;
206 display: inline-block;
207 vertical-align: middle;
208 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530209 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530210
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530211 .tree {
212 margin: 10px 0px;
213 padding: 0px;
214 height: 100%;
215 position: relative;
216 }
217
218 .tree.with-skeleton.opened::before {
219 left: 9px;
220 top: 14px;
221 height: calc(~"100% - 32px");
222 }
223
224 .list-header-icon {
225 width: 72px;
226 border-radius: 4px;
227 flex-shrink: 0;
228 margin: 10px;
229 padding: 1px;
230 border: 1px solid @border-color;
231 height: 72px;
232 display: flex;
233 align-items: center;
234 justify-content: center;
235
236 img {
237 border-radius: 4px;
Faris Ansarifd345f82017-10-05 11:17:30 +0530238 }
239 }
240
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530241 .star-icon.fa-star {
242 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +0530243 }
244
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530245 .octicon-heart.liked {
246 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +0530247 }
248
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530249 .margin-vertical-10 {
250 margin: 10px 0px;
251 }
252
253 .margin-vertical-15 {
254 margin: 15px 0px;
255 }
256
257 .frappe-list .result {
258 min-height: 100px;
259 }
Prateeksha Singh420c7902018-04-05 14:44:16 +0530260
261 .frappe-control[data-fieldtype="Attach Image"] {
262 width: 140px;
263 height: 180px;
264 margin-top: 20px;
265 }
266
267 .frappe-control[data-fieldtype="Attach Image"] .form-group {
268 display: none;
269 }
270
271 .frappe-control[data-fieldtype="Attach Image"] .clearfix {
272 display: none;
273 }
274
275 .missing-image {
276 display: block;
277 position: relative;
278 border-radius: 4px;
279 border: 1px solid #d1d8dd;
280 border-radius: 6px;
281 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
282 }
283 .missing-image .octicon {
284 position: relative;
285 top: 50%;
286 transform: translate(0px, -50%);
287 -webkit-transform: translate(0px, -50%);
288 }
289 .attach-image-display {
290 display: block;
291 position: relative;
292 border-radius: 4px;
293 }
294 .img-container {
295 height: 100%;
296 width: 100%;
297 padding: 2px;
298 display: flex;
299 align-items: center;
300 justify-content: center;
301 position: relative;
302 border: 1px solid #d1d8dd;
303 border-radius: 6px;
304 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
305 }
306 .img-overlay {
307 display: flex;
308 align-items: center;
309 justify-content: center;
310 position: absolute;
311 width: 100%;
312 height: 100%;
313 color: #777777;
314 background-color: rgba(255, 255, 255, 0.7);
315 opacity: 0;
316 }
317 .img-overlay:hover {
318 opacity: 1;
319 cursor: pointer;
320 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530321}
322
323.image-view-container {
324 .image-view-body {
325 &:hover .like-button {
326 opacity: 0.7;
327 }
328 }
329
330 .like-button {
331 bottom: 10px !important;
332 left: 10px !important;
333 width: 36px;
334 height: 36px;
335 opacity: 0;
336 font-size: 16px;
337 color: @text-color;
338 position: absolute;
339
340 // show zoom button on mobile devices
341 @media (max-width: @screen-xs) {
342 opacity: 0.5
343 }
344 }
345
346 .image-view-body:hover .like-button {
347 opacity: 0.7;
348 }
349}
350
351.rating-area .star-icon {
352 cursor: pointer;
353 font-size: 15px;
354}