Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 1 | @import "../../../../frappe/frappe/public/less/variables.less"; |
| 2 | |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 3 | body[data-route^="marketplace/"] { |
| 4 | .layout-side-section { |
| 5 | padding-top: 25px; |
| 6 | padding-right: 25px; |
Prateeksha Singh | b8e9c9b | 2018-01-25 09:18:32 +0530 | [diff] [blame] | 7 | } |
| 8 | |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 9 | .layout-main-section { |
| 10 | border: none; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 11 | font-size: @text-medium; |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 12 | padding-top: 25px; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 13 | |
| 14 | @media (max-width: @screen-xs) { |
| 15 | padding-left: 20px; |
| 16 | padding-right: 20px; |
| 17 | } |
| 18 | } |
| 19 | |
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 20 | input, textarea { |
| 21 | font-size: @text-medium; |
| 22 | } |
| 23 | |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 24 | .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 Singh | efbd2ee | 2018-07-30 09:17:14 +0530 | [diff] [blame] | 34 | .progress-bar { |
| 35 | background-color: #89da28; |
| 36 | } |
| 37 | |
Prateeksha Singh | 505f6f1 | 2018-07-26 08:06:21 +0530 | [diff] [blame] | 38 | .subpage-title.flex { |
| 39 | align-items: flex-start; |
| 40 | justify-content: space-between; |
| 41 | } |
| 42 | |
Prateeksha Singh | efbd2ee | 2018-07-30 09:17:14 +0530 | [diff] [blame] | 43 | .subpage-message { |
| 44 | p { |
| 45 | padding: 10px 15px; |
| 46 | margin-top: 0px; |
| 47 | margin-bottom: 15px; |
| 48 | background-color: #f9fbf7; |
| 49 | justify-content: space-between; |
| 50 | } |
| 51 | |
| 52 | .octicon-x { |
| 53 | cursor: pointer; |
| 54 | } |
| 55 | } |
| 56 | |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 57 | .hub-card { |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 58 | margin-bottom: 25px; |
Prateeksha Singh | efbd2ee | 2018-07-30 09:17:14 +0530 | [diff] [blame] | 59 | position: relative; |
| 60 | border: 1px solid @border-color; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 61 | border-radius: 4px; |
| 62 | overflow: hidden; |
| 63 | cursor: pointer; |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 64 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 65 | &:hover .hub-card-overlay { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 66 | display: block; |
| 67 | } |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 68 | } |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 69 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 70 | .hub-card.is-local { |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 71 | &.active { |
| 72 | .hub-card-header { |
| 73 | background-color: #f4ffe5; |
| 74 | } |
| 75 | |
| 76 | .octicon-check { |
| 77 | display: inline; |
| 78 | } |
| 79 | } |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 80 | |
| 81 | .octicon-check { |
| 82 | display: none; |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 83 | position: absolute; |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 84 | font-size: 20px; |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 85 | right: 15px; |
| 86 | top: 50%; |
| 87 | transform: translateY(-50%); |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 88 | } |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 89 | } |
| 90 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 91 | .hub-card-header { |
| 92 | position: relative; |
| 93 | padding: 12px 15px; |
| 94 | height: 60px; |
| 95 | border-bottom: 1px solid @border-color; |
| 96 | } |
| 97 | |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 98 | .hub-card-body { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 99 | position: relative; |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 100 | height: 200px; |
| 101 | } |
| 102 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 103 | .hub-card-overlay { |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 104 | display: none; |
| 105 | position: absolute; |
| 106 | top: 0; |
| 107 | width: 100%; |
| 108 | height: 100%; |
| 109 | background-color: rgba(0, 0, 0, 0.1); |
| 110 | } |
| 111 | |
Faris Ansari | 296848c | 2018-07-28 16:14:22 +0530 | [diff] [blame] | 112 | .hub-card-overlay-body { |
| 113 | position: relative; |
| 114 | height: 100%; |
| 115 | } |
| 116 | |
| 117 | .hub-card-overlay-button { |
| 118 | position: absolute; |
Prateeksha Singh | cf2d2a5 | 2018-07-25 20:02:12 +0530 | [diff] [blame] | 119 | } |
| 120 | |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 121 | .hub-card-image { |
| 122 | min-width: 100%; |
| 123 | width: 100%; |
| 124 | } |
| 125 | |
| 126 | .hub-search-container { |
| 127 | margin-bottom: 20px; |
| 128 | |
| 129 | input { |
Faris Ansari | f585197 | 2018-07-23 11:55:07 +0530 | [diff] [blame] | 130 | height: 32px; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | .hub-sidebar { |
| 135 | padding-top: 25px; |
| 136 | padding-right: 15px; |
| 137 | } |
| 138 | |
| 139 | .hub-sidebar-group { |
| 140 | margin-bottom: 10px; |
| 141 | } |
| 142 | |
| 143 | .hub-sidebar-item { |
| 144 | padding: 5px 8px; |
| 145 | margin-bottom: 3px; |
| 146 | border-radius: 4px; |
| 147 | border: 1px solid transparent; |
| 148 | |
| 149 | cursor: pointer; |
| 150 | |
| 151 | &.active, &:hover:not(.is-title) { |
| 152 | border-color: @border-color; |
| 153 | } |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 154 | } |
| 155 | |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 156 | .hub-item-image { |
| 157 | border: 1px solid @border-color; |
| 158 | border-radius: 4px; |
| 159 | overflow: hidden; |
| 160 | height: 200px; |
| 161 | width: 200px; |
| 162 | display: flex; |
| 163 | align-items: center; |
| 164 | } |
| 165 | |
Prateeksha Singh | f6f429f | 2018-07-28 12:25:14 +0530 | [diff] [blame] | 166 | .hub-item-skeleton-image { |
| 167 | border-radius: 4px; |
| 168 | background-color: @light-bg; |
| 169 | overflow: hidden; |
| 170 | height: 200px; |
| 171 | width: 200px; |
| 172 | } |
| 173 | |
| 174 | .hub-skeleton { |
| 175 | background-color: @light-bg; |
| 176 | color: @light-bg; |
| 177 | max-width: 500px; |
| 178 | } |
| 179 | |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 180 | .hub-item-seller img { |
| 181 | width: 50px; |
| 182 | height: 50px; |
| 183 | border-radius: 4px; |
| 184 | border: 1px solid @border-color; |
| 185 | } |
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 186 | |
| 187 | .register-title { |
| 188 | font-size: @text-regular; |
| 189 | } |
| 190 | |
| 191 | .register-form { |
| 192 | border: 1px solid @border-color; |
| 193 | border-radius: 4px; |
| 194 | padding: 15px 25px; |
| 195 | } |
| 196 | |
Prateeksha Singh | d450c0a | 2018-07-26 17:24:33 +0530 | [diff] [blame] | 197 | .empty-state { |
Faris Ansari | 24d5f17 | 2018-07-26 19:22:58 +0530 | [diff] [blame] | 198 | height: 500px; |
Prateeksha Singh | d450c0a | 2018-07-26 17:24:33 +0530 | [diff] [blame] | 199 | } |
| 200 | |
Prateeksha Singh | bc8caef | 2018-07-25 10:58:56 +0530 | [diff] [blame] | 201 | .form-container { |
| 202 | .frappe-control { |
| 203 | max-width: 100% !important; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | .form-message { |
| 208 | padding-top: 0; |
| 209 | padding-bottom: 0; |
| 210 | border-bottom: none; |
| 211 | } |
Faris Ansari | abcc8ab | 2018-07-28 13:57:16 +0530 | [diff] [blame] | 212 | |
| 213 | .hub-item-container { |
| 214 | overflow: hidden; |
| 215 | } |
| 216 | |
| 217 | .hub-item-review-container { |
| 218 | margin-top: calc(30vh); |
| 219 | } |
Faris Ansari | ea2d1b0 | 2018-07-23 18:44:46 +0530 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | body[data-route^="Hub/"] { |
| 223 | .hub-icon { |
| 224 | width: 40px; |
| 225 | height: 40px; |
| 226 | } |
| 227 | |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 228 | .img-wrapper { |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 229 | border: 1px solid #d1d8dd; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 230 | border-radius: 3px; |
| 231 | padding: 12px; |
| 232 | overflow: hidden; |
| 233 | text-align: center; |
| 234 | white-space: nowrap; |
| 235 | |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 236 | .helper { |
| 237 | height: 100%; |
| 238 | display: inline-block; |
| 239 | vertical-align: middle; |
| 240 | } |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 241 | } |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 242 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 243 | .tree { |
| 244 | margin: 10px 0px; |
| 245 | padding: 0px; |
| 246 | height: 100%; |
| 247 | position: relative; |
| 248 | } |
| 249 | |
| 250 | .tree.with-skeleton.opened::before { |
| 251 | left: 9px; |
| 252 | top: 14px; |
| 253 | height: calc(~"100% - 32px"); |
| 254 | } |
| 255 | |
| 256 | .list-header-icon { |
| 257 | width: 72px; |
| 258 | border-radius: 4px; |
| 259 | flex-shrink: 0; |
| 260 | margin: 10px; |
| 261 | padding: 1px; |
| 262 | border: 1px solid @border-color; |
| 263 | height: 72px; |
| 264 | display: flex; |
| 265 | align-items: center; |
| 266 | justify-content: center; |
| 267 | |
| 268 | img { |
| 269 | border-radius: 4px; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 270 | } |
| 271 | } |
| 272 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 273 | .star-icon.fa-star { |
| 274 | color: @indicator-orange; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 275 | } |
| 276 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 277 | .octicon-heart.liked { |
| 278 | color: @indicator-red; |
Faris Ansari | fd345f8 | 2017-10-05 11:17:30 +0530 | [diff] [blame] | 279 | } |
| 280 | |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 281 | .margin-vertical-10 { |
| 282 | margin: 10px 0px; |
| 283 | } |
| 284 | |
| 285 | .margin-vertical-15 { |
| 286 | margin: 15px 0px; |
| 287 | } |
| 288 | |
| 289 | .frappe-list .result { |
| 290 | min-height: 100px; |
| 291 | } |
Prateeksha Singh | 420c790 | 2018-04-05 14:44:16 +0530 | [diff] [blame] | 292 | |
| 293 | .frappe-control[data-fieldtype="Attach Image"] { |
| 294 | width: 140px; |
| 295 | height: 180px; |
| 296 | margin-top: 20px; |
| 297 | } |
| 298 | |
| 299 | .frappe-control[data-fieldtype="Attach Image"] .form-group { |
| 300 | display: none; |
| 301 | } |
| 302 | |
| 303 | .frappe-control[data-fieldtype="Attach Image"] .clearfix { |
| 304 | display: none; |
| 305 | } |
| 306 | |
| 307 | .missing-image { |
| 308 | display: block; |
| 309 | position: relative; |
| 310 | border-radius: 4px; |
| 311 | border: 1px solid #d1d8dd; |
| 312 | border-radius: 6px; |
| 313 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); |
| 314 | } |
| 315 | .missing-image .octicon { |
| 316 | position: relative; |
| 317 | top: 50%; |
| 318 | transform: translate(0px, -50%); |
| 319 | -webkit-transform: translate(0px, -50%); |
| 320 | } |
| 321 | .attach-image-display { |
| 322 | display: block; |
| 323 | position: relative; |
| 324 | border-radius: 4px; |
| 325 | } |
| 326 | .img-container { |
| 327 | height: 100%; |
| 328 | width: 100%; |
| 329 | padding: 2px; |
| 330 | display: flex; |
| 331 | align-items: center; |
| 332 | justify-content: center; |
| 333 | position: relative; |
| 334 | border: 1px solid #d1d8dd; |
| 335 | border-radius: 6px; |
| 336 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); |
| 337 | } |
| 338 | .img-overlay { |
| 339 | display: flex; |
| 340 | align-items: center; |
| 341 | justify-content: center; |
| 342 | position: absolute; |
| 343 | width: 100%; |
| 344 | height: 100%; |
| 345 | color: #777777; |
| 346 | background-color: rgba(255, 255, 255, 0.7); |
| 347 | opacity: 0; |
| 348 | } |
| 349 | .img-overlay:hover { |
| 350 | opacity: 1; |
| 351 | cursor: pointer; |
| 352 | } |
Prateeksha Singh | b60a52b | 2018-04-03 10:44:13 +0530 | [diff] [blame] | 353 | } |
| 354 | |
| 355 | .image-view-container { |
| 356 | .image-view-body { |
| 357 | &:hover .like-button { |
| 358 | opacity: 0.7; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | .like-button { |
| 363 | bottom: 10px !important; |
| 364 | left: 10px !important; |
| 365 | width: 36px; |
| 366 | height: 36px; |
| 367 | opacity: 0; |
| 368 | font-size: 16px; |
| 369 | color: @text-color; |
| 370 | position: absolute; |
| 371 | |
| 372 | // show zoom button on mobile devices |
| 373 | @media (max-width: @screen-xs) { |
| 374 | opacity: 0.5 |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | .image-view-body:hover .like-button { |
| 379 | opacity: 0.7; |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | .rating-area .star-icon { |
| 384 | cursor: pointer; |
| 385 | font-size: 15px; |
| 386 | } |