style.scss
64 lines
| 1 | /* stylelint-disable selector-class-pattern */ |
| 2 | |
| 3 | .give-donor-dashboard-avatar-control { |
| 4 | display: flex; |
| 5 | flex-direction: column; |
| 6 | font-weight: 500; |
| 7 | color: #555; |
| 8 | font-size: 14px; |
| 9 | |
| 10 | .give-donor-dashboard-avatar-control__label { |
| 11 | margin: 16px 0; |
| 12 | } |
| 13 | |
| 14 | .give-donor-dashboard-avatar-control__input { |
| 15 | display: flex; |
| 16 | |
| 17 | .give-donor-dashboard-avatar-control__preview { |
| 18 | height: 100px; |
| 19 | width: 100px; |
| 20 | border-radius: 50%; |
| 21 | overflow: hidden; |
| 22 | margin-right: 16px; |
| 23 | |
| 24 | @media screen and (max-width: 920px) { |
| 25 | height: 60px; |
| 26 | width: 60px; |
| 27 | margin-right: 12px; |
| 28 | } |
| 29 | |
| 30 | img { |
| 31 | object-fit: cover; |
| 32 | width: 100%; |
| 33 | height: 100%; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | .give-donor-dashboard-avatar-control__dropzone { |
| 38 | background: #fbfbfb; |
| 39 | border: 2px dashed #e2e6ec; |
| 40 | flex: 1; |
| 41 | display: flex; |
| 42 | align-items: center; |
| 43 | justify-content: center; |
| 44 | padding: 8px; |
| 45 | |
| 46 | transition: background 0.2s ease; |
| 47 | |
| 48 | &.give-donor-dashboard-avatar-control__dropzone--highlight { |
| 49 | background: #e0ebda; |
| 50 | border: 2px dashed #68bb6c; |
| 51 | } |
| 52 | |
| 53 | .give-donor-dashboard-avatar-control__instructions { |
| 54 | text-align: center; |
| 55 | |
| 56 | .give-donor-dashboard-avatar-control__select-link { |
| 57 | text-decoration: underline; |
| 58 | cursor: pointer; |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 |