blob: c0f03946a7080ee7a68193728c56e73c169e88db [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 Singhc5a99722018-08-13 21:36:07 +053028 // .btn-primary {
29 // background-color: #89da28;
30 // border-color: #61ca23;
31 // }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053032
Prateeksha Singhc5a99722018-08-13 21:36:07 +053033 // .btn-primary:hover {
34 // background-color: #61ca23;
35 // border-color: #59b81c;
36 // }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053037
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053038 .progress-bar {
39 background-color: #89da28;
40 }
41
Prateeksha Singh505f6f12018-07-26 08:06:21 +053042 .subpage-title.flex {
43 align-items: flex-start;
44 justify-content: space-between;
45 }
46
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053047 .subpage-message {
48 p {
49 padding: 10px 15px;
50 margin-top: 0px;
51 margin-bottom: 15px;
52 background-color: #f9fbf7;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +053053 border-radius: 4px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053054 justify-content: space-between;
55 }
56
57 .octicon-x {
58 cursor: pointer;
59 }
60 }
61
Faris Ansarif5851972018-07-23 11:55:07 +053062 .hub-card {
Faris Ansarif5851972018-07-23 11:55:07 +053063 margin-bottom: 25px;
Prateeksha Singhefbd2ee2018-07-30 09:17:14 +053064 position: relative;
65 border: 1px solid @border-color;
Faris Ansarif5851972018-07-23 11:55:07 +053066 border-radius: 4px;
67 overflow: hidden;
Faris Ansariea2d1b02018-07-23 18:44:46 +053068
Faris Ansari296848c2018-07-28 16:14:22 +053069 &:hover .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +053070 display: block;
71 }
Prateeksha Singh460e2792018-08-14 11:42:40 +053072
73 .octicon-x {
74 display: none;
75 margin-left: 10px;
76 font-size: 20px;
77 }
78 }
79
80 .hub-card.closable {
81 .octicon-x {
82 display: block;
83 }
Faris Ansari296848c2018-07-28 16:14:22 +053084 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053085
Faris Ansari296848c2018-07-28 16:14:22 +053086 .hub-card.is-local {
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053087 &.active {
88 .hub-card-header {
89 background-color: #f4ffe5;
90 }
91
92 .octicon-check {
93 display: inline;
94 }
95 }
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +053096
97 .octicon-check {
98 display: none;
Faris Ansari296848c2018-07-28 16:14:22 +053099 position: absolute;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530100 font-size: 20px;
Faris Ansari296848c2018-07-28 16:14:22 +0530101 right: 15px;
102 top: 50%;
103 transform: translateY(-50%);
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530104 }
Faris Ansarif5851972018-07-23 11:55:07 +0530105 }
106
Faris Ansari296848c2018-07-28 16:14:22 +0530107 .hub-card-header {
108 position: relative;
109 padding: 12px 15px;
110 height: 60px;
111 border-bottom: 1px solid @border-color;
112 }
113
Faris Ansarif5851972018-07-23 11:55:07 +0530114 .hub-card-body {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530115 position: relative;
Faris Ansarif5851972018-07-23 11:55:07 +0530116 height: 200px;
117 }
118
Faris Ansari296848c2018-07-28 16:14:22 +0530119 .hub-card-overlay {
Faris Ansariea2d1b02018-07-23 18:44:46 +0530120 display: none;
121 position: absolute;
122 top: 0;
123 width: 100%;
124 height: 100%;
Faris Ansaric0a22a62018-08-01 13:35:19 +0530125 background-color: rgba(0, 0, 0, 0.05);
Faris Ansariea2d1b02018-07-23 18:44:46 +0530126 }
127
Faris Ansari296848c2018-07-28 16:14:22 +0530128 .hub-card-overlay-body {
129 position: relative;
130 height: 100%;
131 }
132
133 .hub-card-overlay-button {
134 position: absolute;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +0530135 right: 15px;
136 bottom: 15px;
Prateeksha Singhcf2d2a52018-07-25 20:02:12 +0530137 }
138
Faris Ansarif5851972018-07-23 11:55:07 +0530139 .hub-card-image {
140 min-width: 100%;
141 width: 100%;
142 }
143
144 .hub-search-container {
145 margin-bottom: 20px;
146
147 input {
Faris Ansarif5851972018-07-23 11:55:07 +0530148 height: 32px;
149 }
150 }
151
152 .hub-sidebar {
153 padding-top: 25px;
154 padding-right: 15px;
155 }
156
157 .hub-sidebar-group {
158 margin-bottom: 10px;
159 }
160
161 .hub-sidebar-item {
162 padding: 5px 8px;
163 margin-bottom: 3px;
164 border-radius: 4px;
165 border: 1px solid transparent;
166
Faris Ansarif5851972018-07-23 11:55:07 +0530167 &.active, &:hover:not(.is-title) {
168 border-color: @border-color;
169 }
Faris Ansarifd345f82017-10-05 11:17:30 +0530170 }
171
Faris Ansariea2d1b02018-07-23 18:44:46 +0530172 .hub-item-image {
173 border: 1px solid @border-color;
174 border-radius: 4px;
175 overflow: hidden;
176 height: 200px;
177 width: 200px;
178 display: flex;
179 align-items: center;
180 }
181
Prateeksha Singhf6f429f2018-07-28 12:25:14 +0530182 .hub-item-skeleton-image {
183 border-radius: 4px;
184 background-color: @light-bg;
185 overflow: hidden;
186 height: 200px;
187 width: 200px;
188 }
189
190 .hub-skeleton {
191 background-color: @light-bg;
192 color: @light-bg;
193 max-width: 500px;
194 }
195
Faris Ansariea2d1b02018-07-23 18:44:46 +0530196 .hub-item-seller img {
197 width: 50px;
198 height: 50px;
199 border-radius: 4px;
200 border: 1px solid @border-color;
201 }
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530202
203 .register-title {
204 font-size: @text-regular;
205 }
206
207 .register-form {
208 border: 1px solid @border-color;
209 border-radius: 4px;
210 padding: 15px 25px;
211 }
212
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530213 .empty-state {
Faris Ansari24d5f172018-07-26 19:22:58 +0530214 height: 500px;
Prateeksha Singhd450c0a2018-07-26 17:24:33 +0530215 }
216
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530217 .empty-items-container {
218 height: 80px;
219 border-radius: 4px;
220 border: 1px solid @border-color;
Prateeksha Singhb0a3a102018-08-21 17:43:30 +0530221 border-style: dashed;
Prateeksha Singh96fdbd42018-08-20 10:07:56 +0530222 margin: 15px 0px;
223 }
224
225 .publish-area.filled {
226 .empty-items-container {
227 display: none;
228 }
229 }
230
231 .publish-area.empty {
232 .hub-items-container {
233 display: none;
234 }
235 }
236
Suraj Shetty12de0ae2018-08-22 11:50:23 +0530237 .publish-area-head {
238 display: flex;
239 justify-content: space-between;
240 margin-bottom: 20px;
241 }
242
Prateeksha Singhbc8caef2018-07-25 10:58:56 +0530243 .form-container {
244 .frappe-control {
245 max-width: 100% !important;
246 }
247 }
248
249 .form-message {
250 padding-top: 0;
251 padding-bottom: 0;
252 border-bottom: none;
253 }
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530254
Faris Ansariaa465672018-08-17 14:29:22 +0530255 .hub-items-container {
256 .hub-items-header {
Prateeksha Singh318cca82018-08-07 12:41:21 +0530257 justify-content: space-between;
258 align-items: baseline;
Prateeksha Singh658d1bb2018-08-06 19:13:10 +0530259 }
260 }
261
Faris Ansariabcc8ab2018-07-28 13:57:16 +0530262 .hub-item-container {
263 overflow: hidden;
264 }
265
266 .hub-item-review-container {
267 margin-top: calc(30vh);
268 }
Faris Ansaric0a22a62018-08-01 13:35:19 +0530269
270 .hub-item-dropdown {
271 margin-top: 20px;
272 }
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530273
274 /* messages page */
275
276 .message-list-item {
277 display: flex;
278 align-items: center;
279 padding: 8px 12px;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530280
281 &:not(.active) {
282 filter: grayscale(1);
283 color: @text-muted;
284 }
285
286 &:hover {
287 background-color: @light-bg;
288 }
289
290 .list-item-left {
291 width: 30px;
292 border-radius: 4px;
293 overflow: hidden;
294 margin-right: 15px;
295 }
296
297 .list-item-body {
298 font-weight: bold;
299 padding-bottom: 1px;
300 }
301 }
302
Faris Ansarid17aedb2018-08-20 18:33:46 +0530303 .message-container {
304 display: flex;
305 flex-direction: column;
306 border: 1px solid @border-color;
307 border-radius: 3px;
308 height: calc(100vh - 300px);
309 justify-content: space-between;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530310 }
311
Faris Ansarid17aedb2018-08-20 18:33:46 +0530312 .message-list {
313 padding-top: 15px;
314 padding-bottom: 15px;
315 overflow: scroll;
Faris Ansari2a81b4a2018-08-01 19:19:53 +0530316 }
Faris Ansariea2d1b02018-07-23 18:44:46 +0530317}