blob: bd503fe1e31167faac2188ad6642ab4d6421c120 [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
142 .hub-item-seller img {
143 width: 50px;
144 height: 50px;
145 border-radius: 4px;
146 border: 1px solid @border-color;
147 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530148
149 .register-title {
150 font-size: @text-regular;
151 }
152
153 .register-form {
154 border: 1px solid @border-color;
155 border-radius: 4px;
156 padding: 15px 25px;
157 }
158
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530159 .empty-state {
160 justify-content: center;
161 padding-top: 159px;
162 }
163
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530164 .form-container {
165 .frappe-control {
166 max-width: 100% !important;
167 }
168 }
169
170 .form-message {
171 padding-top: 0;
172 padding-bottom: 0;
173 border-bottom: none;
174 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530175}
176
177body[data-route^="Hub/"] {
178 .hub-icon {
179 width: 40px;
180 height: 40px;
181 }
182
Faris Ansarifd345f82017-10-05 11:17:30 +0530183 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530184 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +0530185 border-radius: 3px;
186 padding: 12px;
187 overflow: hidden;
188 text-align: center;
189 white-space: nowrap;
190
Faris Ansarifd345f82017-10-05 11:17:30 +0530191 .helper {
192 height: 100%;
193 display: inline-block;
194 vertical-align: middle;
195 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530196 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530197
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530198 .tree {
199 margin: 10px 0px;
200 padding: 0px;
201 height: 100%;
202 position: relative;
203 }
204
205 .tree.with-skeleton.opened::before {
206 left: 9px;
207 top: 14px;
208 height: calc(~"100% - 32px");
209 }
210
211 .list-header-icon {
212 width: 72px;
213 border-radius: 4px;
214 flex-shrink: 0;
215 margin: 10px;
216 padding: 1px;
217 border: 1px solid @border-color;
218 height: 72px;
219 display: flex;
220 align-items: center;
221 justify-content: center;
222
223 img {
224 border-radius: 4px;
Faris Ansarifd345f82017-10-05 11:17:30 +0530225 }
226 }
227
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530228 .star-icon.fa-star {
229 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +0530230 }
231
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530232 .octicon-heart.liked {
233 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +0530234 }
235
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530236 .margin-vertical-10 {
237 margin: 10px 0px;
238 }
239
240 .margin-vertical-15 {
241 margin: 15px 0px;
242 }
243
244 .frappe-list .result {
245 min-height: 100px;
246 }
Prateeksha Singh420c7902018-04-05 14:44:16 +0530247
248 .frappe-control[data-fieldtype="Attach Image"] {
249 width: 140px;
250 height: 180px;
251 margin-top: 20px;
252 }
253
254 .frappe-control[data-fieldtype="Attach Image"] .form-group {
255 display: none;
256 }
257
258 .frappe-control[data-fieldtype="Attach Image"] .clearfix {
259 display: none;
260 }
261
262 .missing-image {
263 display: block;
264 position: relative;
265 border-radius: 4px;
266 border: 1px solid #d1d8dd;
267 border-radius: 6px;
268 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
269 }
270 .missing-image .octicon {
271 position: relative;
272 top: 50%;
273 transform: translate(0px, -50%);
274 -webkit-transform: translate(0px, -50%);
275 }
276 .attach-image-display {
277 display: block;
278 position: relative;
279 border-radius: 4px;
280 }
281 .img-container {
282 height: 100%;
283 width: 100%;
284 padding: 2px;
285 display: flex;
286 align-items: center;
287 justify-content: center;
288 position: relative;
289 border: 1px solid #d1d8dd;
290 border-radius: 6px;
291 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
292 }
293 .img-overlay {
294 display: flex;
295 align-items: center;
296 justify-content: center;
297 position: absolute;
298 width: 100%;
299 height: 100%;
300 color: #777777;
301 background-color: rgba(255, 255, 255, 0.7);
302 opacity: 0;
303 }
304 .img-overlay:hover {
305 opacity: 1;
306 cursor: pointer;
307 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530308}
309
310.image-view-container {
311 .image-view-body {
312 &:hover .like-button {
313 opacity: 0.7;
314 }
315 }
316
317 .like-button {
318 bottom: 10px !important;
319 left: 10px !important;
320 width: 36px;
321 height: 36px;
322 opacity: 0;
323 font-size: 16px;
324 color: @text-color;
325 position: absolute;
326
327 // show zoom button on mobile devices
328 @media (max-width: @screen-xs) {
329 opacity: 0.5
330 }
331 }
332
333 .image-view-body:hover .like-button {
334 opacity: 0.7;
335 }
336}
337
338.rating-area .star-icon {
339 cursor: pointer;
340 font-size: 15px;
341}