|
13 | 13 | @use '@carbon/styles/scss/type' as *;
|
14 | 14 | @use '../../globals/utils/flex-grid' as *;
|
15 | 15 | @use '../../globals/vars' as *;
|
| 16 | +@use '../image/index'; |
16 | 17 |
|
17 |
| -@mixin universal-banner { |
18 |
| - :host(#{$c4d-prefix}-universal-banner) { |
| 18 | +@mixin global-banner { |
| 19 | + :host(#{$c4d-prefix}-global-banner) { |
19 | 20 | @include theme($g100, true);
|
20 | 21 |
|
21 | 22 | display: block;
|
22 | 23 | background-color: $background;
|
23 | 24 |
|
24 |
| - .#{$prefix}--universal-banner-content-wrapper { |
| 25 | + .#{$prefix}--global-banner-content-wrapper { |
25 | 26 | @include make-row;
|
26 | 27 | }
|
27 | 28 |
|
28 |
| - .#{$prefix}--universal-banner-layout-container { |
| 29 | + .#{$prefix}--global-banner-layout-container { |
29 | 30 | @include make-container;
|
30 | 31 |
|
| 32 | + box-sizing: border-box; |
31 | 33 | max-height: $spacing-13;
|
32 | 34 |
|
33 | 35 | /* stylelint-disable selector-pseudo-class-no-unknown */
|
|
51 | 53 | }
|
52 | 54 | }
|
53 | 55 |
|
54 |
| - .#{$prefix}--universal-banner-text-container, |
55 |
| - .#{$prefix}--universal-banner-cta-container, |
56 |
| - .#{$prefix}--universal-banner-icon { |
| 56 | + .#{$prefix}--global-banner-text-container, |
| 57 | + .#{$prefix}--global-banner-cta-container, |
| 58 | + .#{$prefix}--global-banner-icon { |
| 59 | + box-sizing: border-box; |
57 | 60 | padding-block: $spacing-05;
|
58 | 61 |
|
59 | 62 | @include breakpoint(lg) {
|
60 | 63 | padding-block: $spacing-07;
|
61 | 64 | }
|
62 | 65 | }
|
63 | 66 |
|
64 |
| - .#{$prefix}--universal-banner-image-container { |
| 67 | + .#{$prefix}--global-banner-image-container { |
| 68 | + box-sizing: border-box; |
65 | 69 | max-height: $spacing-13;
|
66 | 70 | padding-inline-end: $spacing-05;
|
67 | 71 | position: relative;
|
68 | 72 |
|
69 |
| - ::slotted(#{$c4d-prefix}-universal-banner-image) { |
| 73 | + ::slotted(#{$c4d-prefix}-global-banner-image) { |
70 | 74 | position: absolute;
|
71 | 75 | width: calc(100% + #{$spacing-05});
|
72 | 76 | height: 100%;
|
|
79 | 83 | }
|
80 | 84 | }
|
81 | 85 |
|
82 |
| - .#{$prefix}--universal-banner-text-container { |
| 86 | + .#{$prefix}--global-banner-text-container { |
83 | 87 | @include make-col(4, 4);
|
84 | 88 |
|
85 | 89 | padding-inline: $spacing-05;
|
|
94 | 98 | }
|
95 | 99 | }
|
96 | 100 |
|
97 |
| - .#{$prefix}--universal-banner-cta-container { |
| 101 | + .#{$prefix}--global-banner-cta-container { |
98 | 102 | display: none;
|
99 | 103 |
|
100 | 104 | @include breakpoint(lg) {
|
|
110 | 114 | }
|
111 | 115 | }
|
112 | 116 |
|
113 |
| - .#{$prefix}--universal-banner-icon { |
| 117 | + .#{$prefix}--global-banner-icon { |
114 | 118 | width: calc(20px + #{$spacing-05});
|
115 | 119 | padding-inline-end: $spacing-05;
|
116 | 120 | color: $text-primary;
|
|
132 | 136 | }
|
133 | 137 |
|
134 | 138 | &[has-image] {
|
135 |
| - .#{$prefix}--universal-banner-image-container { |
| 139 | + .#{$prefix}--global-banner-image-container { |
136 | 140 | display: none;
|
137 | 141 | }
|
138 | 142 | }
|
139 | 143 |
|
140 | 144 | &[image-width='4-col'] {
|
141 |
| - .#{$prefix}--universal-banner-image-container { |
| 145 | + .#{$prefix}--global-banner-image-container { |
142 | 146 | @include breakpoint(lg) {
|
143 | 147 | @include make-col(4, 16);
|
144 | 148 | }
|
145 | 149 | }
|
146 | 150 |
|
147 |
| - .#{$prefix}--universal-banner-text-container { |
| 151 | + .#{$prefix}--global-banner-text-container { |
148 | 152 | @include breakpoint(lg) {
|
149 | 153 | @include make-col(7, 16);
|
150 | 154 | }
|
151 | 155 | }
|
152 | 156 |
|
153 |
| - .#{$prefix}--universal-banner-cta-container { |
| 157 | + .#{$prefix}--global-banner-cta-container { |
154 | 158 | @include breakpoint(lg) {
|
155 | 159 | @include make-col-offset(1, 16);
|
156 | 160 | }
|
157 | 161 | }
|
158 | 162 | }
|
159 | 163 |
|
160 | 164 | &[image-width='8-col'] {
|
161 |
| - .#{$prefix}--universal-banner-image-container { |
| 165 | + .#{$prefix}--global-banner-image-container { |
162 | 166 | @include make-col(8, 16);
|
163 | 167 | }
|
164 | 168 |
|
165 |
| - .#{$prefix}--universal-banner-text-container { |
| 169 | + .#{$prefix}--global-banner-text-container { |
166 | 170 | @include breakpoint(lg) {
|
167 | 171 | @include make-col(4, 16);
|
168 | 172 | }
|
169 | 173 | }
|
170 | 174 | }
|
171 | 175 |
|
172 | 176 | &:not([has-image]) {
|
173 |
| - .#{$prefix}--universal-banner-text-container { |
| 177 | + .#{$prefix}--global-banner-text-container { |
174 | 178 | @include breakpoint(lg) {
|
175 | 179 | @include make-col(11, 16);
|
176 | 180 | }
|
177 | 181 | }
|
178 | 182 |
|
179 |
| - .#{$prefix}--universal-banner-cta-container { |
| 183 | + .#{$prefix}--global-banner-cta-container { |
180 | 184 | @include breakpoint(lg) {
|
181 | 185 | @include make-col-offset(1, 16);
|
182 | 186 | }
|
183 | 187 | }
|
184 | 188 | }
|
185 | 189 |
|
186 |
| - ::slotted(#{$c4d-prefix}-button-cta) { |
| 190 | + ::slotted(#{$c4d-prefix}-button) { |
187 | 191 | @include theme($g100, true);
|
188 | 192 |
|
189 | 193 | width: 100%;
|
190 |
| - display: block; |
| 194 | + display: flex; |
191 | 195 | max-width: 320px;
|
192 | 196 |
|
193 | 197 | @include breakpoint(xlg) {
|
|
202 | 206 | }
|
203 | 207 | }
|
204 | 208 |
|
205 |
| - :host(#{$c4d-prefix}-universal-banner-heading) { |
| 209 | + :host(#{$c4d-prefix}-global-banner-heading) { |
206 | 210 | @include type-style('heading-02', true);
|
207 | 211 |
|
208 | 212 | display: block;
|
|
222 | 226 | }
|
223 | 227 | }
|
224 | 228 |
|
225 |
| - :host(#{$c4d-prefix}-universal-banner-copy) { |
| 229 | + :host(#{$c4d-prefix}-global-banner-copy) { |
226 | 230 | @include type-style('body-compact-02', true);
|
227 | 231 |
|
228 | 232 | display: block;
|
229 | 233 | color: $text-primary;
|
230 | 234 | }
|
231 | 235 |
|
232 |
| - :host(#{$c4d-prefix}-universal-banner-image) { |
| 236 | + :host(#{$c4d-prefix}-global-banner-image) { |
233 | 237 | .#{$prefix}--image__img {
|
234 | 238 | object-fit: cover;
|
235 | 239 | }
|
|
0 commit comments