mirror of
https://github.com/papercss/papercss
synced 2024-06-07 16:32:15 +02:00
Refactor so that it follows the colour standard
This commit is contained in:
parent
dd310fa002
commit
88eb6c2f20
|
@ -12,24 +12,14 @@
|
|||
background-color: @muted;
|
||||
color: white;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background-color: @primary;
|
||||
.make-badge-color-classes(@i: length(@colors)) when (@i > 0) {
|
||||
.make-badge-color-classes(@i - 1);
|
||||
@color: extract(@colors, @i);
|
||||
.badge.@{color} {
|
||||
background-color: @@color;
|
||||
}
|
||||
}
|
||||
|
||||
&.secondary {
|
||||
background-color: @secondary;
|
||||
}
|
||||
|
||||
&.success {
|
||||
background-color: @success;
|
||||
}
|
||||
|
||||
&.warning {
|
||||
background-color: @warning;
|
||||
}
|
||||
|
||||
&.danger {
|
||||
background-color: @danger;
|
||||
}
|
||||
}
|
||||
.make-badge-color-classes();
|
Loading…
Reference in a new issue