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