-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing and transferring them to ipl-web was a mistake and not thought through. ipl-icinga could be an alternative location, but that's only theory right now. ref #474
- Loading branch information
Showing
8 changed files
with
399 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.state-badges() { | ||
&.state-badges { | ||
padding: 0; | ||
|
||
ul { | ||
padding: 0; | ||
} | ||
|
||
li { | ||
display: inline-block; | ||
} | ||
|
||
li > ul > li:first-child:not(:last-child) .state-badge { | ||
border-bottom-right-radius: 0; | ||
border-top-right-radius: 0; | ||
} | ||
|
||
li > ul > li:last-child:not(:first-child) .state-badge { | ||
border-bottom-left-radius: 0; | ||
border-top-left-radius: 0; | ||
} | ||
|
||
> li:not(:last-child) { | ||
margin-right: .25em; | ||
} | ||
|
||
li > ul > li + li { | ||
margin-left: 1px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.state-badge { | ||
.rounded-corners(); | ||
color: @text-color-on-icinga-blue; | ||
display: inline-block; | ||
font-size: 1em; | ||
min-width: 2em; | ||
padding: .25em; | ||
text-align: center; | ||
|
||
&.handled { | ||
opacity: .8; | ||
} | ||
|
||
&.state-critical { | ||
background-color: @color-critical; | ||
} | ||
|
||
&.state-down { | ||
background-color: @color-down; | ||
} | ||
|
||
&.state-ok { | ||
background-color: @color-ok; | ||
} | ||
|
||
&.state-pending { | ||
background-color: @color-pending; | ||
} | ||
|
||
&.state-unknown { | ||
background-color: @color-unknown; | ||
} | ||
|
||
&.state-up { | ||
background-color: @color-up; | ||
} | ||
|
||
&.state-warning { | ||
background-color: @color-warning; | ||
} | ||
|
||
&.state-none { | ||
background-color: @state-none; | ||
color: @text-color-light; | ||
} | ||
} | ||
|
||
a .state-badge { | ||
&:not(.disabled):hover { | ||
filter: brightness(80%); | ||
} | ||
} |
Oops, something went wrong.