| 1 |
/** |
| 2 |
* Styles for SureDonation's banner-style admin notices. |
| 3 |
* |
| 4 |
* Shared by two notices that use the same banner layout: |
| 5 |
* - #sd-setup-gateway : "configure a payment gateway" (teal accent, artwork) |
| 6 |
* - #sd-test-mode : "switch to live mode" (amber accent, no art) |
| 7 |
* |
| 8 |
* Every rule is scoped under the notice wrapper id (rendered by the BSF admin |
| 9 |
* notices library). The id prefix is required, not cosmetic: WordPress core |
| 10 |
* styles the notice body with `.notice p` (specificity 0,1,1), which would |
| 11 |
* otherwise override plain single-class selectors here. |
| 12 |
*/ |
| 13 |
|
| 14 |
#sd-setup-gateway, |
| 15 |
#sd-test-mode { |
| 16 |
padding: 0; |
| 17 |
border-left: 4px solid #148cb2; |
| 18 |
background: #fff; |
| 19 |
} |
| 20 |
|
| 21 |
/* Test-mode uses an amber accent to signal "no real payments are being taken". */ |
| 22 |
#sd-test-mode { |
| 23 |
border-left-color: #dba617; |
| 24 |
} |
| 25 |
|
| 26 |
#sd-setup-gateway .astra-notice-container, |
| 27 |
#sd-test-mode .astra-notice-container { |
| 28 |
display: block; |
| 29 |
padding: 0; |
| 30 |
} |
| 31 |
|
| 32 |
/* The notice height is driven by the text content. Right padding reserves |
| 33 |
space for the illustration, which is positioned absolutely so it never |
| 34 |
adds vertical space around the text. */ |
| 35 |
#sd-setup-gateway .sd-setup-notice, |
| 36 |
#sd-test-mode .sd-setup-notice { |
| 37 |
position: relative; |
| 38 |
padding: 22px 280px 22px 24px; |
| 39 |
box-sizing: border-box; |
| 40 |
} |
| 41 |
|
| 42 |
/* No illustration (e.g. the test-mode notice) — reclaim the reserved space. */ |
| 43 |
#sd-setup-gateway .sd-setup-notice--no-art, |
| 44 |
#sd-test-mode .sd-setup-notice--no-art { |
| 45 |
padding-right: 24px; |
| 46 |
} |
| 47 |
|
| 48 |
#sd-setup-gateway .sd-setup-notice__main, |
| 49 |
#sd-test-mode .sd-setup-notice__main { |
| 50 |
display: flex; |
| 51 |
align-items: flex-start; |
| 52 |
gap: 14px; |
| 53 |
} |
| 54 |
|
| 55 |
#sd-setup-gateway .sd-setup-notice__icon, |
| 56 |
#sd-test-mode .sd-setup-notice__icon { |
| 57 |
flex: 0 0 auto; |
| 58 |
width: 28px; |
| 59 |
height: 28px; |
| 60 |
margin-top: 1px; |
| 61 |
} |
| 62 |
|
| 63 |
#sd-setup-gateway .sd-setup-notice__body, |
| 64 |
#sd-test-mode .sd-setup-notice__body { |
| 65 |
flex: 1 1 auto; |
| 66 |
min-width: 0; |
| 67 |
} |
| 68 |
|
| 69 |
#sd-setup-gateway .sd-setup-notice__title, |
| 70 |
#sd-test-mode .sd-setup-notice__title { |
| 71 |
margin: 0 0 6px; |
| 72 |
padding: 0; |
| 73 |
font-size: 1.25rem; |
| 74 |
font-weight: 600; |
| 75 |
line-height: 32px; |
| 76 |
color: #1d2327; |
| 77 |
} |
| 78 |
|
| 79 |
#sd-setup-gateway .sd-setup-notice__text, |
| 80 |
#sd-test-mode .sd-setup-notice__text { |
| 81 |
margin: 0 0 16px; |
| 82 |
padding: 0; |
| 83 |
font-size: 1rem; |
| 84 |
line-height: 24px; |
| 85 |
color: #3c434a; |
| 86 |
} |
| 87 |
|
| 88 |
#sd-setup-gateway .sd-setup-notice__button.button.button-primary, |
| 89 |
#sd-setup-gateway .sd-setup-notice__button.button.button-primary:focus, |
| 90 |
#sd-test-mode .sd-setup-notice__button.button.button-primary, |
| 91 |
#sd-test-mode .sd-setup-notice__button.button.button-primary:focus { |
| 92 |
display: inline-flex; |
| 93 |
align-items: center; |
| 94 |
height: auto; |
| 95 |
min-height: 0; |
| 96 |
padding: 8px 18px; |
| 97 |
font-size: 14px; |
| 98 |
line-height: 1.2; |
| 99 |
background: #148cb2; |
| 100 |
border-color: #148cb2; |
| 101 |
color: #fff; |
| 102 |
box-shadow: none; |
| 103 |
text-shadow: none; |
| 104 |
} |
| 105 |
|
| 106 |
#sd-setup-gateway .sd-setup-notice__button.button.button-primary:hover, |
| 107 |
#sd-test-mode .sd-setup-notice__button.button.button-primary:hover { |
| 108 |
background: #0b5468; |
| 109 |
border-color: #0b5468; |
| 110 |
color: #fff; |
| 111 |
} |
| 112 |
|
| 113 |
#sd-setup-gateway .sd-setup-notice__art, |
| 114 |
#sd-test-mode .sd-setup-notice__art { |
| 115 |
position: absolute; |
| 116 |
top: 50%; |
| 117 |
right: 24px; |
| 118 |
transform: translateY(-50%); |
| 119 |
width: auto; |
| 120 |
height: auto; |
| 121 |
max-height: 128px; |
| 122 |
max-width: 240px; |
| 123 |
} |
| 124 |
|
| 125 |
@media screen and (max-width: 782px) { |
| 126 |
#sd-setup-gateway .sd-setup-notice, |
| 127 |
#sd-test-mode .sd-setup-notice { |
| 128 |
padding: 20px 44px 20px 20px; |
| 129 |
} |
| 130 |
|
| 131 |
#sd-setup-gateway .sd-setup-notice--no-art, |
| 132 |
#sd-test-mode .sd-setup-notice--no-art { |
| 133 |
padding-right: 20px; |
| 134 |
} |
| 135 |
|
| 136 |
#sd-setup-gateway .sd-setup-notice__art, |
| 137 |
#sd-test-mode .sd-setup-notice__art { |
| 138 |
display: none; |
| 139 |
} |
| 140 |
} |
| 141 |
|