|
16 | 16 | /// @param {Color} $banner-message-color [null] - The color used for the banner label. |
17 | 17 | /// @param {Color} $banner-border-color [null] - The color used for the banner border. |
18 | 18 | /// @param {Color} $banner-illustration-color [null] - The color used for the banner illustration. |
| 19 | +/// @param {Number} $border-radius [null] - The border-radius for the banner. |
19 | 20 | /// |
20 | 21 | /// @requires $light-material-schema |
21 | 22 | /// |
|
28 | 29 | $banner-background: null, |
29 | 30 | $banner-message-color: null, |
30 | 31 | $banner-border-color: null, |
31 | | - $banner-illustration-color: null |
| 32 | + $banner-illustration-color: null, |
| 33 | + $border-radius: null, |
32 | 34 | ) { |
33 | 35 | $name: 'igx-banner'; |
34 | 36 | $selector: 'igx-banner, .igx-banner'; |
|
54 | 56 | banner-message-color: $banner-message-color, |
55 | 57 | banner-border-color: $banner-border-color, |
56 | 58 | banner-illustration-color: $banner-illustration-color, |
| 59 | + border-radius: $border-radius, |
57 | 60 | _meta: map.merge(if($meta, $meta, ()), ( |
58 | 61 | variant: map.get($schema, '_meta', 'theme') |
59 | 62 | )), |
|
96 | 99 | justify-content: flex-end; |
97 | 100 | flex-wrap: wrap; |
98 | 101 | gap: rem(8px); |
99 | | - |
100 | | - padding-inline-start: pad-inline($padding-inline-start); |
101 | | - padding-inline-end: pad-inline($padding); |
102 | | - padding-block: pad-block($padding); |
| 102 | + padding: rem(8px); |
| 103 | + min-width: rem(320px); |
103 | 104 | background: var-get($theme, 'banner-background'); |
104 | 105 |
|
105 | 106 | @if $variant == 'indigo-design' { |
106 | | - border: 1px solid var-get($theme, 'banner-border-color'); |
| 107 | + box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'banner-border-color'); |
107 | 108 | padding: rem(16px); |
108 | | - border-radius: rem(6px); |
| 109 | + } @else { |
| 110 | + box-shadow: inset 0 rem(-1px) 0 0 var-get($theme, 'banner-border-color'); |
109 | 111 | } |
110 | | - } |
111 | | - |
112 | | - %igx-banner__illustration { |
113 | | - justify-content: center; |
114 | | - width: rem(40px); |
115 | | - min-width: rem(40px); |
116 | | - height: rem(40px); |
117 | | - color: var-get($theme, 'banner-illustration-color'); |
118 | | - |
119 | | - @if $variant == 'indigo-design' { |
120 | | - igx-icon { |
121 | | - $icon-size: rem(16px); |
122 | 112 |
|
123 | | - --ig-icon-size: #{$icon-size}; |
124 | | - --igx-icon-size: #{$icon-size}; |
125 | | - } |
| 113 | + border-radius: var-get($theme, 'border-radius'); |
126 | 114 |
|
127 | | - width: initial; |
128 | | - height: initial; |
129 | | - min-width: initial; |
| 115 | + igc-icon, |
| 116 | + igx-icon, |
| 117 | + igc-button, |
| 118 | + [igxButton] { |
| 119 | + --component-size: var(--ig-size, 2) !important; |
130 | 120 | } |
131 | 121 | } |
132 | 122 |
|
133 | | - %igx-banner__border-top { |
134 | | - border-block-start: rem(1px) solid var-get($theme, 'banner-border-color'); |
135 | | - inset-block-start: rem(-1px); |
136 | | - } |
137 | | - |
138 | | - %igx-banner__border-bottom { |
139 | | - border-block-end: rem(1px) solid var-get($theme, 'banner-border-color'); |
140 | | - inset-block-start: 0; |
| 123 | + %igx-banner__illustration { |
| 124 | + justify-content: center; |
| 125 | + color: var-get($theme, 'banner-illustration-color'); |
141 | 126 | } |
142 | 127 |
|
143 | 128 | %igx-banner__text { |
|
156 | 141 |
|
157 | 142 | @if $variant == 'indigo-design' { |
158 | 143 | gap: rem(8px); |
| 144 | + } @else { |
| 145 | + padding: 0 rem(8px); |
159 | 146 | } |
160 | 147 | } |
161 | 148 |
|
162 | 149 | %igx-banner__actions, |
163 | 150 | %igx-banner__actions > igx-banner-actions { |
164 | 151 | flex-wrap: wrap; |
165 | | - justify-content: flex-end; |
166 | | - align-items: center; |
167 | 152 | align-self: flex-end; |
168 | 153 | gap: rem(8px); |
169 | | - min-height: rem(40px); |
170 | | - |
171 | | - @if $variant == 'indigo-design' { |
172 | | - min-height: initial; |
173 | | - |
174 | | - [igxButton] { |
175 | | - --ig-size: 2; |
176 | | - } |
177 | | - } |
178 | 154 | } |
179 | 155 | } |
180 | 156 |
|
|
0 commit comments