blob: 27321e5f317249e2090affe735f41d8cca08e535 [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
Prateeksha Singh305f7372018-08-20 00:25:26 +05309 [data-route], [data-action] {
Prateeksha Singh318cca82018-08-07 12:41:21 +053010 cursor: pointer;
11 }
12
Faris Ansarif5851972018-07-23 11:55:07 +053013 .layout-main-section {
14 border: none;
Faris Ansarif5851972018-07-23 11:55:07 +053015 font-size: @text-medium;
Faris Ansariea2d1b02018-07-23 18:44:46 +053016 padding-top: 25px;
Faris Ansarif5851972018-07-23 11:55:07 +053017
18 @media (max-width: @screen-xs) {
19 padding-left: 20px;
20 padding-right: 20px;
21 }
22 }
23
Prateeksha Singhbc8caef2018-07-25 10:58:56 +053024 input, textarea {
25 font-size: @text-medium;
26 }
27
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053028 .progress-bar {
29 background-color: #89da28;
30 }
31
Prateeksha Singh505f6f12018-07-26 08:06:21 +053032 .subpage-title.flex {
33 align-items: flex-start;
34 justify-content: space-between;
35 }
36
Faris Ansarif5851972018-07-23 11:55:07 +053037 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053038 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053039 position: relative;
40 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053041 border-radius: 4px;
42 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053043
Faris Ansari296848c2018-07-28 16:14:22 +053044 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053045 display: block;
46 }
Faris Ansari296848c2018-07-28 16:14:22 +053047 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053048
Faris Ansari296848c2018-07-28 16:14:22 +053049 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053050 &.active {
51 .hub-card-header {
52 background-color: #f4ffe5;
53 }
54
55 .octicon-check {
56 display: inline;
57 }
58 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053059
60 .octicon-check {
61 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053062 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053063 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +053064 right: 15px;
65 top: 50%;
66 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053067 }
Faris Ansarif5851972018-07-23 11:55:07 +053068 }
69
Faris Ansari296848c2018-07-28 16:14:22 +053070 .hub-card-header {
71 position: relative;
72 padding: 12px 15px;
73 height: 60px;
74 border-bottom: 1px solid @border-color;
75 }
76
Faris Ansarif5851972018-07-23 11:55:07 +053077 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +053078 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +053079 height: 200px;
80 }
81
Faris Ansari296848c2018-07-28 16:14:22 +053082 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053083 display: none;
84 position: absolute;
85 top: 0;
86 width: 100%;
87 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +053088 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +053089 }
90
Faris Ansari296848c2018-07-28 16:14:22 +053091 .hub-card-overlay-body {
92 position: relative;
93 height: 100%;
94 }
95
96 .hub-card-overlay-button {
97 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +053098 right: 15px;
99 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530100 }
101
Faris Ansarif5851972018-07-23 11:55:07 +0530102 .hub-card-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530103 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530104 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530105 height: 100%;
106 object-fit: contain;
107 }
108
Faris Ansarif5851972018-07-23 11:55:07 +0530109 .hub-search-container {
110 margin-bottom: 20px;
111
112 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530113 height: 32px;
114 }
115 }
116
117 .hub-sidebar {
118 padding-top: 25px;
119 padding-right: 15px;
120 }
121
122 .hub-sidebar-group {
123 margin-bottom: 10px;
124 }
125
126 .hub-sidebar-item {
127 padding: 5px 8px;
128 margin-bottom: 3px;
129 border-radius: 4px;
130 border: 1px solid transparent;
131
Faris Ansarif5851972018-07-23 11:55:07 +0530132 &.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
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530147 .hub-item-skeleton-image {
148 border-radius: 4px;
149 background-color: @light-bg;
150 overflow: hidden;
151 height: 200px;
152 width: 200px;
153 }
154
155 .hub-skeleton {
156 background-color: @light-bg;
157 color: @light-bg;
158 max-width: 500px;
159 }
160
Faris Ansariea2d1b02018-07-23 18:44:46 +0530161 .hub-item-seller img {
162 width: 50px;
163 height: 50px;
164 border-radius: 4px;
165 border: 1px solid @border-color;
166 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530167
168 .register-title {
169 font-size: @text-regular;
170 }
171
172 .register-form {
173 border: 1px solid @border-color;
174 border-radius: 4px;
175 padding: 15px 25px;
176 }
177
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530178 .publish-area.filled {
179 .empty-items-container {
180 display: none;
181 }
182 }
183
184 .publish-area.empty {
185 .hub-items-container {
186 display: none;
187 }
188 }
189
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530190 .publish-area-head {
191 display: flex;
192 justify-content: space-between;
193 margin-bottom: 20px;
194 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530195
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530196 .hub-list-item {
197 display: flex;
198 justify-content: space-between;
199 align-items: center;
200 border: 1px solid @border-color;
Faris Ansari725603c2018-08-27 19:51:36 +0530201 margin-bottom: -1px;
202 overflow: hidden;
203 }
204
205 .hub-list-item:first-child {
206 border-top-left-radius: 4px;
207 border-top-right-radius: 4px;
208 }
209 .hub-list-item:last-child {
210 border-bottom-left-radius: 4px;
211 border-bottom-right-radius: 4px;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530212 }
213
214 .hub-list-left {
215 display: flex;
216 align-items: center;
217 max-width: 90%;
218 }
219
220 .hub-list-right {
221 padding-right: 15px;
222 }
223
224 .hub-list-image {
Faris Ansarif089dad2018-08-26 22:20:16 +0530225 position: relative;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530226 width: 58px;
227 height: 58px;
228 border-right: 1px solid @border-color;
229
230 &::after {
231 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530232 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530233 }
234
235 .hub-list-body {
236 padding: 12px 15px;
237 }
238
239 .hub-list-title {
240 font-weight: bold;
241 }
242
243 .hub-list-subtitle {
244 color: @text-muted;
Suraj Shetty341386e2018-08-22 21:31:16 +0530245 }
246
Suraj Shetty88700cf2018-08-24 11:25:04 +0530247 .selling-item-message-card {
248 max-width: 500px;
249 margin-bottom: 15px;
250 border-radius: 3px;
251 border: 1px solid @border-color;
252 .selling-item-detail {
253 overflow: auto;
254 .item-image {
255 float: left;
256 height: 80px;
257 width: 80px;
258 object-fit: contain;
259 margin: 5px;
260 }
261 .item-name {
262 margin-left: 10px;
263 }
264 }
265 .received-message-container {
266 clear: left;
267 background-color: @light-bg;
268 .received-message {
269 border-top: 1px solid @border-color;
270 padding: 10px;
271 }
272 .frappe-timestamp {
273 float: right;
274 }
275 }
276 }
277
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530278 .form-container {
279 .frappe-control {
280 max-width: 100% !important;
281 }
282 }
283
284 .form-message {
285 padding-top: 0;
286 padding-bottom: 0;
287 border-bottom: none;
288 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530289
Faris Ansariaa465672018-08-17 14:29:22 +0530290 .hub-items-container {
291 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530292 justify-content: space-between;
293 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530294 }
295 }
296
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530297 .hub-item-container {
298 overflow: hidden;
299 }
300
301 .hub-item-review-container {
302 margin-top: calc(30vh);
303 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530304
305 .hub-item-dropdown {
306 margin-top: 20px;
307 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530308
309 /* messages page */
310
311 .message-list-item {
312 display: flex;
313 align-items: center;
314 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530315
316 &:not(.active) {
317 filter: grayscale(1);
318 color: @text-muted;
319 }
320
321 &:hover {
322 background-color: @light-bg;
323 }
324
325 .list-item-left {
326 width: 30px;
327 border-radius: 4px;
328 overflow: hidden;
329 margin-right: 15px;
330 }
331
332 .list-item-body {
333 font-weight: bold;
334 padding-bottom: 1px;
335 }
336 }
337
Faris Ansarid17aedb2018-08-20 18:33:46 +0530338 .message-container {
339 display: flex;
340 flex-direction: column;
341 border: 1px solid @border-color;
342 border-radius: 3px;
343 height: calc(100vh - 300px);
344 justify-content: space-between;
Faris Ansaricaebd4a2018-08-26 20:09:02 +0530345 padding: 15px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530346 }
347
Faris Ansarid17aedb2018-08-20 18:33:46 +0530348 .message-list {
Faris Ansarid17aedb2018-08-20 18:33:46 +0530349 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530350 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530351}