-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HZN-852: Separated Styles and neutralized trend chart layout
Change styling to a neutral layout. The color "green" is often interpreted as "OK" in monitoring. The charts itself don't have any logic for such a thing. The hard coded CSS styling in JSP pages is broken out into SCSS files and use as most possible the color variables from SCSS property files. I did also minor layout fixes for spacings, font size and possitioning of the chart widgets. The new chart styling is also easier to be used in Horizon/Meridian releases and don't require changes in the layout and can be used in both products without forking the stylesheets.
- Loading branch information
1 parent
f64d3ee
commit dd2d42f
Showing
5 changed files
with
124 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Styling properties for Trend Charts | ||
*/ | ||
|
||
@import "properties.scss"; | ||
|
||
|
||
.alert-box .row { | ||
margin-left: 5px !important; | ||
margin-right: -5px !important; | ||
} | ||
|
||
/* defines the grid layout trend chart page */ | ||
|
||
.row.gutter-10 { | ||
padding-top: 5px; | ||
padding-bottom: 0px; | ||
} | ||
|
||
.gutter-10 > [class^="col-"], .gutter-10 > [class^=" col-"] { | ||
padding-left: 0px; | ||
padding-right: 5px; | ||
} | ||
|
||
.alert-box.panel-body { | ||
background-color: $color_alto_approx; | ||
} | ||
|
||
/* Background color for trend charts */ | ||
|
||
.alert-trend { | ||
background-color: $white; | ||
border-color: $color_tundora_approx; | ||
height: 90px; | ||
color: $color_tundora_approx; | ||
margin-bottom: 10px; | ||
margin-right: 5px; | ||
margin-left: 5px; | ||
margin-top: 5px; | ||
} | ||
|
||
.alert-trend h1 .glyphicon { | ||
font-size: 1em; | ||
padding-right: 10px; | ||
} | ||
|
||
.alert-trend .alert-link { | ||
color: $color_tundora_approx; | ||
} | ||
|
||
.alert-trend a { | ||
color: $color_suva_gray_approx; | ||
} | ||
|
||
.alert-trend table { | ||
margin-bottom: 15px; | ||
} | ||
|
||
.alert { | ||
padding: 10px !important; | ||
} | ||
|
||
.jqstooltip { | ||
width: auto !important; | ||
height: auto !important; | ||
} |
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
Oops, something went wrong.