blob: 124374303251787a8389733d3a747ebe9ea1eac0 [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
Faris Ansarif5851972018-07-23 11:55:07 +053034 .hub-card {
35 border: 1px solid @border-color;
36 margin-bottom: 25px;
37 border-radius: 4px;
38 overflow: hidden;
39 cursor: pointer;
Faris Ansariea2d1b02018-07-23 18:44:46 +053040
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053041 &:hover .overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053042 display: block;
43 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053044
45 &.active {
46 .hub-card-header {
47 background-color: #f4ffe5;
48 }
49
50 .octicon-check {
51 display: inline;
52 }
53 }
Faris Ansarif5851972018-07-23 11:55:07 +053054 }
55
56 .hub-card-header {
57 padding: 12px 15px;
58 height: 60px;
Faris Ansariea2d1b02018-07-23 18:44:46 +053059 border-bottom: 1px solid @border-color;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053060
61 display: flex;
62 justify-content: space-between;
63
64 .octicon-check {
65 display: none;
66 font-size: 20px;
67 }
Faris Ansarif5851972018-07-23 11:55:07 +053068 }
69
70 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053071 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053072 height: 200px;
73 }
74
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053075 .overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053076 display: none;
77 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053078 }
79
80 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053081 top: 0;
82 width: 100%;
83 height: 100%;
84 background-color: rgba(0, 0, 0, 0.1);
85 }
86
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053087 .button-overlay {
88 top: 155px;
89 left: 15px;
90 }
91
Faris Ansarif5851972018-07-23 11:55:07 +053092 .hub-card-image {
93 min-width: 100%;
94 width: 100%;
95 }
96
97 .hub-search-container {
98 margin-bottom: 20px;
99
100 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530101 height: 32px;
102 }
103 }
104
105 .hub-sidebar {
106 padding-top: 25px;
107 padding-right: 15px;
108 }
109
110 .hub-sidebar-group {
111 margin-bottom: 10px;
112 }
113
114 .hub-sidebar-item {
115 padding: 5px 8px;
116 margin-bottom: 3px;
117 border-radius: 4px;
118 border: 1px solid transparent;
119
120 cursor: pointer;
121
122 &.active, &:hover:not(.is-title) {
123 border-color: @border-color;
124 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530125 }
126
Faris Ansariea2d1b02018-07-23 18:44:46 +0530127 .hub-item-image {
128 border: 1px solid @border-color;
129 border-radius: 4px;
130 overflow: hidden;
131 height: 200px;
132 width: 200px;
133 display: flex;
134 align-items: center;
135 }
136
137 .hub-item-seller img {
138 width: 50px;
139 height: 50px;
140 border-radius: 4px;
141 border: 1px solid @border-color;
142 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530143
144 .register-title {
145 font-size: @text-regular;
146 }
147
148 .register-form {
149 border: 1px solid @border-color;
150 border-radius: 4px;
151 padding: 15px 25px;
152 }
153
154 .form-container {
155 .frappe-control {
156 max-width: 100% !important;
157 }
158 }
159
160 .form-message {
161 padding-top: 0;
162 padding-bottom: 0;
163 border-bottom: none;
164 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530165}
166
167body[data-route^="Hub/"] {
168 .hub-icon {
169 width: 40px;
170 height: 40px;
171 }
172
Faris Ansarifd345f82017-10-05 11:17:30 +0530173 .img-wrapper {
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530174 border: 1px solid #d1d8dd;
Faris Ansarifd345f82017-10-05 11:17:30 +0530175 border-radius: 3px;
176 padding: 12px;
177 overflow: hidden;
178 text-align: center;
179 white-space: nowrap;
180
Faris Ansarifd345f82017-10-05 11:17:30 +0530181 .helper {
182 height: 100%;
183 display: inline-block;
184 vertical-align: middle;
185 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530186 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530187
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530188 .tree {
189 margin: 10px 0px;
190 padding: 0px;
191 height: 100%;
192 position: relative;
193 }
194
195 .tree.with-skeleton.opened::before {
196 left: 9px;
197 top: 14px;
198 height: calc(~"100% - 32px");
199 }
200
201 .list-header-icon {
202 width: 72px;
203 border-radius: 4px;
204 flex-shrink: 0;
205 margin: 10px;
206 padding: 1px;
207 border: 1px solid @border-color;
208 height: 72px;
209 display: flex;
210 align-items: center;
211 justify-content: center;
212
213 img {
214 border-radius: 4px;
Faris Ansarifd345f82017-10-05 11:17:30 +0530215 }
216 }
217
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530218 .star-icon.fa-star {
219 color: @indicator-orange;
Faris Ansarifd345f82017-10-05 11:17:30 +0530220 }
221
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530222 .octicon-heart.liked {
223 color: @indicator-red;
Faris Ansarifd345f82017-10-05 11:17:30 +0530224 }
225
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530226 .margin-vertical-10 {
227 margin: 10px 0px;
228 }
229
230 .margin-vertical-15 {
231 margin: 15px 0px;
232 }
233
234 .frappe-list .result {
235 min-height: 100px;
236 }
Prateeksha Singh420c7902018-04-05 14:44:16 +0530237
238 .frappe-control[data-fieldtype="Attach Image"] {
239 width: 140px;
240 height: 180px;
241 margin-top: 20px;
242 }
243
244 .frappe-control[data-fieldtype="Attach Image"] .form-group {
245 display: none;
246 }
247
248 .frappe-control[data-fieldtype="Attach Image"] .clearfix {
249 display: none;
250 }
251
252 .missing-image {
253 display: block;
254 position: relative;
255 border-radius: 4px;
256 border: 1px solid #d1d8dd;
257 border-radius: 6px;
258 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
259 }
260 .missing-image .octicon {
261 position: relative;
262 top: 50%;
263 transform: translate(0px, -50%);
264 -webkit-transform: translate(0px, -50%);
265 }
266 .attach-image-display {
267 display: block;
268 position: relative;
269 border-radius: 4px;
270 }
271 .img-container {
272 height: 100%;
273 width: 100%;
274 padding: 2px;
275 display: flex;
276 align-items: center;
277 justify-content: center;
278 position: relative;
279 border: 1px solid #d1d8dd;
280 border-radius: 6px;
281 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
282 }
283 .img-overlay {
284 display: flex;
285 align-items: center;
286 justify-content: center;
287 position: absolute;
288 width: 100%;
289 height: 100%;
290 color: #777777;
291 background-color: rgba(255, 255, 255, 0.7);
292 opacity: 0;
293 }
294 .img-overlay:hover {
295 opacity: 1;
296 cursor: pointer;
297 }
Prateeksha Singhb60a52b2018-04-03 10:44:13 +0530298}
299
300.image-view-container {
301 .image-view-body {
302 &:hover .like-button {
303 opacity: 0.7;
304 }
305 }
306
307 .like-button {
308 bottom: 10px !important;
309 left: 10px !important;
310 width: 36px;
311 height: 36px;
312 opacity: 0;
313 font-size: 16px;
314 color: @text-color;
315 position: absolute;
316
317 // show zoom button on mobile devices
318 @media (max-width: @screen-xs) {
319 opacity: 0.5
320 }
321 }
322
323 .image-view-body:hover .like-button {
324 opacity: 0.7;
325 }
326}
327
328.rating-area .star-icon {
329 cursor: pointer;
330 font-size: 15px;
331}