PluginProbe
Code Snippets / 3.10.2
Code Snippets v3.10.2
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / common / _banners.scss

_banners.scss in Code Snippets 3.10.2, at css/common/_banners.scss

44 lines 670 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use '../common/theme';
2 @use 'sass:map';
3 @use 'sass:list';
4
5 @mixin banners {
6 .banner {
7 border: 0;
8 border-radius: 5px;
9 display: flex;
10 align-items: center;
11 padding: 6px 10px;
12 gap: 8px;
13 margin: 0;
14
15 .banner-dismiss {
16 position: unset;
17 margin-inline-start: auto;
18 padding: 0;
19
20 &, &::before {
21 color: inherit;
22 }
23 }
24
25 .wp-core-ui &.is-dismissible {
26 position: unset;
27 padding-inline-end: 10px;
28 }
29 }
30
31 @each $name, $colors in theme.$notices {
32 .banner-#{$name} {
33 color: list.nth($colors, 2);
34 background-color: list.nth($colors, 1);
35 }
36 }
37
38 .banner-success::before {
39 content: '';
40 font-weight: bold;
41 font-size: 16px;
42 }
43 }
44