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