mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
CSS: Move badge related styles to badges.less
This commit is contained in:
parent
98f1e9028e
commit
ca45522da7
@ -15,6 +15,7 @@ class StyleSheet
|
|||||||
'css/vendor/tipsy.css',
|
'css/vendor/tipsy.css',
|
||||||
'css/icinga/themes/icinga.less',
|
'css/icinga/themes/icinga.less',
|
||||||
'css/icinga/colors.less',
|
'css/icinga/colors.less',
|
||||||
|
'css/icinga/badges.less',
|
||||||
'css/icinga/mixins.less',
|
'css/icinga/mixins.less',
|
||||||
'css/icinga/base.less',
|
'css/icinga/base.less',
|
||||||
'css/icinga/nav.less',
|
'css/icinga/nav.less',
|
||||||
|
@ -2,37 +2,12 @@
|
|||||||
|
|
||||||
/* Badges */
|
/* Badges */
|
||||||
.state-badges {
|
.state-badges {
|
||||||
|
|
||||||
> ul > li {
|
> ul > li {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
li .state-ok {
|
|
||||||
.bg-color-ok();
|
|
||||||
}
|
|
||||||
|
|
||||||
li .state-warning {
|
|
||||||
.bg-color-warning();
|
|
||||||
}
|
|
||||||
|
|
||||||
li .state-critical {
|
|
||||||
.bg-color-critcal();
|
|
||||||
}
|
|
||||||
|
|
||||||
li .state-unreachable {
|
|
||||||
.bg-color-unreachable();
|
|
||||||
}
|
|
||||||
|
|
||||||
li .state-unknown {
|
|
||||||
.bg-color-unknown();
|
|
||||||
}
|
|
||||||
|
|
||||||
li .state-pending {
|
|
||||||
.bg-color-pending();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//p.pluginoutput {
|
//p.pluginoutput {
|
||||||
|
45
public/css/icinga/badges.less
Normal file
45
public/css/icinga/badges.less
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
.badge {
|
||||||
|
min-width: 25px;
|
||||||
|
font-family: tahoma, verdana, sans-serif;
|
||||||
|
font-weight: @font-weight-bold;
|
||||||
|
font-size: 11px;
|
||||||
|
text-align: center;
|
||||||
|
color: @text-color-inverted;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
background-color: @gray-light;
|
||||||
|
|
||||||
|
&.state-ok {
|
||||||
|
.bg-color-ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-up {
|
||||||
|
.bg-color-up();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-warning {
|
||||||
|
.bg-color-warning();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-critical {
|
||||||
|
.bg-color-critical();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-down {
|
||||||
|
.bg-color-down();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-unreachable {
|
||||||
|
.bg-color-unreachable();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-unknown {
|
||||||
|
.bg-color-unknown();
|
||||||
|
}
|
||||||
|
|
||||||
|
&.state-pending {
|
||||||
|
.bg-color-pending();
|
||||||
|
}
|
||||||
|
}
|
@ -127,23 +127,6 @@ a.button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge {
|
|
||||||
min-width: 25px;
|
|
||||||
font-family: tahoma, verdana, sans-serif;
|
|
||||||
font-weight: @font-weight-bold;
|
|
||||||
font-size: 11px;
|
|
||||||
text-align: center;
|
|
||||||
color: @text-color-inverted;
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
padding-top: 2px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
|
|
||||||
&.state-critical {
|
|
||||||
.bg-color-critical();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-avatar {
|
.user-avatar {
|
||||||
height: 16px;
|
height: 16px;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user