common.scss
114 lines
| 1 | // This file used for Total styles common to the frontend and editor |
| 2 | |
| 3 | .give-multi-form-goal-block__image img { |
| 4 | height: 100%; |
| 5 | width: 100%; |
| 6 | object-fit: cover; |
| 7 | } |
| 8 | |
| 9 | .give-multi-form-goal-block { |
| 10 | display: flex; |
| 11 | flex-direction: column; |
| 12 | |
| 13 | background: #fff; |
| 14 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.305862); |
| 15 | border-radius: 8px; |
| 16 | margin-bottom: 20px; |
| 17 | |
| 18 | .wp-block-media-text { |
| 19 | margin: 24px !important; |
| 20 | } |
| 21 | |
| 22 | .wp-block-media-text__media, |
| 23 | .wp-block-media-text__media img, |
| 24 | .give-multi-form-goal-block__image { |
| 25 | border-radius: 6px !important; |
| 26 | } |
| 27 | |
| 28 | .wp-block-media-text .wp-block-media-text__content { |
| 29 | padding: 16px !important; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | .give-multi-form-goal-block__content { |
| 34 | display: grid; |
| 35 | grid-template-columns: 1fr 1fr; |
| 36 | margin: 24px !important; |
| 37 | min-height: 250px; |
| 38 | } |
| 39 | |
| 40 | .give-multi-form-goal-block__text { |
| 41 | padding-left: 16px; |
| 42 | display: flex; |
| 43 | flex-direction: column; |
| 44 | justify-content: center; |
| 45 | |
| 46 | h2 { |
| 47 | margin-bottom: var(--global--spacing-vertical); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | .give-progress-bar-block__goal { |
| 52 | height: auto; |
| 53 | padding: 20px 16px; |
| 54 | border-top: 1px solid #ebebeb; |
| 55 | } |
| 56 | |
| 57 | .give-progress-bar-block__progress { |
| 58 | height: 20px; |
| 59 | display: flex; |
| 60 | align-items: center; |
| 61 | position: relative; |
| 62 | border-radius: 20px; |
| 63 | overflow: hidden; |
| 64 | background: #f1f1f1; |
| 65 | box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.09487); |
| 66 | |
| 67 | .give-progress-bar-block__progress-bar { |
| 68 | position: absolute; |
| 69 | height: 100%; |
| 70 | left: 0; |
| 71 | top: 0; |
| 72 | border-radius: 20px; |
| 73 | background: linear-gradient(180deg, #28c77b 0%, #28c77b 100%), linear-gradient(180deg, #fff 0%, #ccc 100%); |
| 74 | background-blend-mode: multiply; |
| 75 | overflow: hidden; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | .give-progress-bar-block__stats { |
| 80 | display: flex; |
| 81 | flex-wrap: wrap; |
| 82 | background: #f5f5f5; |
| 83 | height: auto; |
| 84 | border-top: 1px solid #ebebeb; |
| 85 | border-radius: 0 0 8px 8px; |
| 86 | } |
| 87 | |
| 88 | .give-progress-bar-block__stat { |
| 89 | display: flex; |
| 90 | flex: 1 1 110px; |
| 91 | align-items: center; |
| 92 | justify-content: center; |
| 93 | flex-direction: column; |
| 94 | border-right: 1px solid #ebebeb; |
| 95 | font-weight: 500; |
| 96 | height: 96px; |
| 97 | |
| 98 | &:last-of-type { |
| 99 | border-right: none; |
| 100 | } |
| 101 | |
| 102 | > *:first-child { |
| 103 | font-size: 24px; |
| 104 | line-height: 28px; |
| 105 | color: #4c4c4c; |
| 106 | } |
| 107 | |
| 108 | > *:last-child { |
| 109 | font-size: 18px; |
| 110 | line-height: 1; |
| 111 | color: #6f6f6f; |
| 112 | } |
| 113 | } |
| 114 |