Icon.tsx
1 year ago
block.json
1 year ago
edit.tsx
1 year ago
editor.scss
1 year ago
index.tsx
1 year ago
render.php
1 year ago
editor.scss
62 lines
| 1 | .givewp-campaign-cover-block { |
| 2 | &__button { |
| 3 | display: flex; |
| 4 | align-items: center; |
| 5 | justify-content: center; |
| 6 | min-height: 32px; |
| 7 | width: 100%; |
| 8 | margin-bottom: .5rem; |
| 9 | color: #2271b1; |
| 10 | border: 1px solid #2271b1; |
| 11 | border-radius: 2px; |
| 12 | } |
| 13 | |
| 14 | &__image { |
| 15 | flex-grow: 1; |
| 16 | display: flex; |
| 17 | max-height: 4.44rem; |
| 18 | width: 100%; |
| 19 | object-fit: cover; |
| 20 | margin-bottom: .5rem; |
| 21 | border-radius: 2px; |
| 22 | } |
| 23 | |
| 24 | &__help-text { |
| 25 | font-size: 0.75rem; |
| 26 | font-weight: normal; |
| 27 | font-stretch: normal; |
| 28 | font-style: normal; |
| 29 | line-height: 1.4; |
| 30 | letter-spacing: normal; |
| 31 | text-align: left; |
| 32 | color: #4b5563; |
| 33 | } |
| 34 | |
| 35 | &__edit-campaign-link { |
| 36 | display: inline-flex; |
| 37 | align-items: center; |
| 38 | gap: 0.125rem; |
| 39 | font-size: 0.75rem; |
| 40 | font-weight: normal; |
| 41 | font-stretch: normal; |
| 42 | font-style: normal; |
| 43 | line-height: 1.4; |
| 44 | |
| 45 | svg { |
| 46 | fill: currentColor; |
| 47 | height: 1.25rem; |
| 48 | width: 1.25rem; |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | .givewp-campaign-cover-block-preview { |
| 54 | &__image { |
| 55 | display: flex; |
| 56 | align-items: center; |
| 57 | justify-content: center; |
| 58 | width: 100%; |
| 59 | height: 100%; |
| 60 | } |
| 61 | } |
| 62 |