File size: 1,378 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 |
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
.plugin-action-status-container {
margin-left: 20px;
white-space: pre;
}
.plugin-action-status {
position: relative;
height: 20px;
padding: 2px 8px;
border-radius: 2px;
font-size: 0.75rem;
width: fit-content;
display: block;
margin-block-start: 5px;
&:not(:last-child) {
margin-inline-end: 5px;
}
@include break-xlarge {
display: inline;
top: 1px;
}
}
.plugin-action-status-inProgress {
background: #b8e6bf;
color: #00450c;
/* reference busy state from https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/button/style.scss */
animation: plugin-action-status-inProgress__busy-animation 2500ms infinite linear;
@media (prefers-reduced-motion: reduce) {
animation-duration: 0s;
}
background-size: 100px 100%;
background-image: linear-gradient(
-45deg,
darken( #b8e6bf, 2%) 33%,
darken( #b8e6bf, 12%) 33%,
darken( #b8e6bf, 12%) 70%,
darken( #b8e6bf, 2%) 70%
);
}
@keyframes plugin-action-status-inProgress__busy-animation {
0% {
background-position: 200px 0;
}
}
.plugin-action-status-up-to-date {
background: #f6f7f7;
color: #50575e;
}
.plugin-action-status-completed {
background: #b8e6bf;
color: #00450c;
}
.plugin-action-status-error,
.plugin-action-status-incompleted {
background: #facfd2;
color: #691c1c;
}
|