Skip to content

Commit

Permalink
ENH Include versioned status flag styling
Browse files Browse the repository at this point in the history
This used to be in silverstripe/admin for some reason
  • Loading branch information
GuySartorelli committed Nov 21, 2024
1 parent d0a4dc5 commit 0b40667
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/styles/bundle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

// Legacy
@import "legacy/ArchiveAdmin";
@import "legacy/badges";

// Components
@import "../components/HistoryViewer/HistoryViewer";
Expand Down
15 changes: 15 additions & 0 deletions client/src/styles/legacy/_badges.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@mixin badge-status($label, $textColor, $bgColor) {
.badge.status-#{$label} {
background-color: $bgColor;
border-color: $textColor;
}
.badge.status-#{$label} {
color: $textColor;
}
}

@include badge-status('addedtodraft', #cf3f00, #fff2ea);
@include badge-status('modified', #cf3f00, #fff2ea);
@include badge-status('archived', #455b6c, #f1f3f6);
@include badge-status('deletedonlive', #455b6c, #f1f3f6);
@include badge-status('removedfromdraft', #455b6c, #f1f3f6);

0 comments on commit 0b40667

Please sign in to comment.