File size: 1,521 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/variables";
.dashboard-notice {
/**
* Density
*/
&.has-density-low {
border-radius: $radius-large;
.dashboard-notice__body {
padding: $grid-unit-20;
}
}
&.has-density-medium {
border-radius: $radius-small;
.dashboard-notice__body {
padding: $grid-unit-15;
}
}
&.has-density-high {
border-radius: $radius-small;
.dashboard-notice__body {
padding: $grid-unit-05;
}
}
/**
* Variant
*/
&.is-info {
background-color: color-mix(in srgb, var(--wp-admin-theme-color) 4%, transparent);
.dashboard-notice__icon {
fill: var(--wp-admin-theme-color);
}
}
&.is-warning {
background-color: color-mix(in srgb, $alert-yellow 4%, transparent);
.dashboard-notice__icon {
fill: #a77f30;
}
}
&.is-success {
background-color: color-mix(in srgb, $alert-green 4%, transparent);
.dashboard-notice__icon {
fill: #2c723e;
}
}
&.is-error {
background-color: color-mix(in srgb, $alert-red 4%, transparent);
.dashboard-notice__icon {
fill: #8c0b0b;
}
}
}
.dashboard-notice__icon {
width: 24px;
height: 24px;
flex-shrink: 0;
}
.dashboard-notice__content {
flex-grow: 1;
}
.dashboard-notice__heading {
padding: 2px 0;
}
.dashboard-notice__title {
@include heading-medium;
}
.dashboard-notice__description {
@include body-medium;
text-wrap: pretty;
}
.dashboard-notice__actions {
padding-bottom: $grid-unit-05;
}
.dashboard-notice__close-button {
margin: -6px;
}
|