blob: 779d45d90bc34cf3bf3056454cff45c4cde9d37a [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 Ansarif5851972018-07-23 11:55:07 +0530103 width: 100%;
Suraj Shettyd94701e2018-08-22 16:47:50 +0530104 height: 100%;
105 object-fit: contain;
106 }
107
Faris Ansarif5851972018-07-23 11:55:07 +0530108 .hub-search-container {
109 margin-bottom: 20px;
110
111 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530112 height: 32px;
113 }
114 }
115
116 .hub-sidebar {
117 padding-top: 25px;
118 padding-right: 15px;
119 }
120
121 .hub-sidebar-group {
122 margin-bottom: 10px;
123 }
124
125 .hub-sidebar-item {
126 padding: 5px 8px;
127 margin-bottom: 3px;
128 border-radius: 4px;
129 border: 1px solid transparent;
130
Faris Ansarif5851972018-07-23 11:55:07 +0530131 &.active, &:hover:not(.is-title) {
132 border-color: @border-color;
133 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530134 }
135
Faris Ansariea2d1b02018-07-23 18:44:46 +0530136 .hub-item-image {
137 border: 1px solid @border-color;
138 border-radius: 4px;
139 overflow: hidden;
140 height: 200px;
141 width: 200px;
142 display: flex;
143 align-items: center;
144 }
145
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530146 .hub-item-skeleton-image {
147 border-radius: 4px;
148 background-color: @light-bg;
149 overflow: hidden;
150 height: 200px;
151 width: 200px;
152 }
153
154 .hub-skeleton {
155 background-color: @light-bg;
156 color: @light-bg;
157 max-width: 500px;
158 }
159
Faris Ansariea2d1b02018-07-23 18:44:46 +0530160 .hub-item-seller img {
161 width: 50px;
162 height: 50px;
163 border-radius: 4px;
164 border: 1px solid @border-color;
165 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530166
167 .register-title {
168 font-size: @text-regular;
169 }
170
171 .register-form {
172 border: 1px solid @border-color;
173 border-radius: 4px;
174 padding: 15px 25px;
175 }
176
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530177 .publish-area.filled {
178 .empty-items-container {
179 display: none;
180 }
181 }
182
183 .publish-area.empty {
184 .hub-items-container {
185 display: none;
186 }
187 }
188
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530189 .publish-area-head {
190 display: flex;
191 justify-content: space-between;
192 margin-bottom: 20px;
193 }
Suraj Shettyd94701e2018-08-22 16:47:50 +0530194
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530195 .hub-list-item {
196 display: flex;
197 justify-content: space-between;
198 align-items: center;
199 border: 1px solid @border-color;
Suraj Shetty88700cf2018-08-24 11:25:04 +0530200 margin-bottom: 15px;
201 border-radius: 3px;
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530202 }
203
204 .hub-list-left {
205 display: flex;
206 align-items: center;
207 max-width: 90%;
208 }
209
210 .hub-list-right {
211 padding-right: 15px;
212 }
213
214 .hub-list-image {
215 width: 58px;
216 height: 58px;
217 border-right: 1px solid @border-color;
218
219 &::after {
220 font-size: 12px;
Suraj Shetty341386e2018-08-22 21:31:16 +0530221 }
Suraj Shetty0e59ec32018-08-25 21:22:55 +0530222 }
223
224 .hub-list-body {
225 padding: 12px 15px;
226 }
227
228 .hub-list-title {
229 font-weight: bold;
230 }
231
232 .hub-list-subtitle {
233 color: @text-muted;
Suraj Shetty341386e2018-08-22 21:31:16 +0530234 }
235
Suraj Shetty88700cf2018-08-24 11:25:04 +0530236 .selling-item-message-card {
237 max-width: 500px;
238 margin-bottom: 15px;
239 border-radius: 3px;
240 border: 1px solid @border-color;
241 .selling-item-detail {
242 overflow: auto;
243 .item-image {
244 float: left;
245 height: 80px;
246 width: 80px;
247 object-fit: contain;
248 margin: 5px;
249 }
250 .item-name {
251 margin-left: 10px;
252 }
253 }
254 .received-message-container {
255 clear: left;
256 background-color: @light-bg;
257 .received-message {
258 border-top: 1px solid @border-color;
259 padding: 10px;
260 }
261 .frappe-timestamp {
262 float: right;
263 }
264 }
265 }
266
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530267 .form-container {
268 .frappe-control {
269 max-width: 100% !important;
270 }
271 }
272
273 .form-message {
274 padding-top: 0;
275 padding-bottom: 0;
276 border-bottom: none;
277 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530278
Faris Ansariaa465672018-08-17 14:29:22 +0530279 .hub-items-container {
280 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530281 justify-content: space-between;
282 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530283 }
284 }
285
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530286 .hub-item-container {
287 overflow: hidden;
288 }
289
290 .hub-item-review-container {
291 margin-top: calc(30vh);
292 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530293
294 .hub-item-dropdown {
295 margin-top: 20px;
296 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530297
298 /* messages page */
299
300 .message-list-item {
301 display: flex;
302 align-items: center;
303 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530304
305 &:not(.active) {
306 filter: grayscale(1);
307 color: @text-muted;
308 }
309
310 &:hover {
311 background-color: @light-bg;
312 }
313
314 .list-item-left {
315 width: 30px;
316 border-radius: 4px;
317 overflow: hidden;
318 margin-right: 15px;
319 }
320
321 .list-item-body {
322 font-weight: bold;
323 padding-bottom: 1px;
324 }
325 }
326
Faris Ansarid17aedb2018-08-20 18:33:46 +0530327 .message-container {
328 display: flex;
329 flex-direction: column;
330 border: 1px solid @border-color;
331 border-radius: 3px;
332 height: calc(100vh - 300px);
333 justify-content: space-between;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530334 }
335
Faris Ansarid17aedb2018-08-20 18:33:46 +0530336 .message-list {
337 padding-top: 15px;
338 padding-bottom: 15px;
339 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530340 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530341}