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