From: Alex Dehnert Date: Sat, 27 May 2023 18:33:20 +0000 (+0000) Subject: Add new stylesheets X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=ff1664aa80ec394b11afdf121cea11de0aa0048d;p=sysconfig%2Fnagios3.git Add new stylesheets --- diff --git a/stylesheets/histogramgraph.css b/stylesheets/histogramgraph.css new file mode 100644 index 0000000..ec3e61f --- /dev/null +++ b/stylesheets/histogramgraph.css @@ -0,0 +1,137 @@ +/* General text style */ +text { + font-family: sans-serif; + font-size: 11px; +} + +/* Colors for text representing states */ +text.up { + fill: rgb(0, 128, 0); +} +text.down { + fill: rgb(255, 0, 0); +} +text.unreachable { + fill: rgb(128, 0, 0); +} +text.ok { + fill: rgb(0, 128, 0); +} +text.warning { + fill: rgb(176, 178, 20); +} +text.unknown { + fill: rgb(255, 100, 25); +} +text.critical { + fill: rgb(255, 0, 0); +} + +/* Colors for text representing states */ +path.up { + stroke: rgb(0, 128, 0); +} +path.down { + stroke: rgb(255, 0, 0); +} +path.unreachable { + stroke: rgb(128, 0, 0); +} +path.ok { + stroke: rgb(0, 128, 0); +} +path.warning { + stroke: rgb(176, 178, 20); +} +path.unknown { + stroke: rgb(255, 100, 25); +} +path.critical { + stroke: rgb(255, 0, 0); +} + +/* Class to hide elements */ +.hidden { + display: none; +} + +/* Trend SVG style */ +div#histogramsvg { + position: absolute; + z-index: 10; + left: 0; + top: 0; +} + +/* Center header text */ +g#header text, +g#yaxis-label text { + text-anchor: middle; +} + +/* Anchor the y-axis text to the end of the text */ +g#xaxis text, +g#yaxis text { + text-anchor: end; +} + +/* Draw grid lines as dashed lines */ +g#xaxis line, +g#yaxis line { + stroke-width: 1; + stroke: #c0c0c0; + stroke-dasharray: 2,4; + pointer-events: none; +} + +/* Hide the axes path */ +g#xaxis path, +g#yaxis path { + display: none; +} + +/* Styles for data lines */ +g#grid path { + fill: none; + stroke-width: 1; +} + +/* Styles for grid spinner */ +div#gridspinner { + position: absolute; + top: 74px; + left: 355px; + height: 50px; + width: 50px; + z-index: 40; +} + +/* Styles for the summary table */ +g.summary .label { + text-anchor: left; +} + +g.summary .value { + text-anchor: end; +} + +g.summary line { + stroke-width: 1; + stroke: black; +} + +/* Styles for menu button */ +div#menubutton { + position: absolute; + top: 5px; + left: 871px; + height: 25px; + width: 22px; + z-index: 40; +} + +div#menubutton button { + padding: 0px; + border: none; + background-color: white; +} diff --git a/stylesheets/jsonquery.css b/stylesheets/jsonquery.css new file mode 100644 index 0000000..98e9bb9 --- /dev/null +++ b/stylesheets/jsonquery.css @@ -0,0 +1,37 @@ +body, html { + margin: 0; + padding: 0; +} + +#wrap { + width: 750px; + left: calc(50% - 375px); + background: #ddd; + position: absolute; + text-align: center; +} + +#options { + width: 290px; + float: left; + background: #bbb; + padding-left: 5px; + padding-right: 5px; + text-align: left; +} + +#results { + width: 440px; + float: right; + padding-left: 5px; + padding-right: 5px; + text-align: left; +} + +#results p.error { + color: red; +} + +.required { + color: red; +} diff --git a/stylesheets/map-directive.css b/stylesheets/map-directive.css new file mode 100644 index 0000000..d942ca1 --- /dev/null +++ b/stylesheets/map-directive.css @@ -0,0 +1,106 @@ +.hidden { + display: none; +} + +/* Styles for the spinner div */ +div#spinner { + position: absolute; + top: 0; + left: 0; + z-index: 40; +} + +/* Styles for the map div */ +div#mapsvg { + position: absolute; + border-style: solid; + border-color: #777777; + border-width: 1px; + width: 600px; + height: 600px; +} + +/* Styles for map elements */ +.link { + fill: none; + stroke: #cccccc; + stroke-width: 1.5px; +} + +.node circle { + fill: #ffffff; + stroke: #cccccc; + stroke-width: 2px; +} + +.node { + font-family: sans-serif; +} + +/* Styles for state popups */ +div#popup { + font-family: sans-serif; + font-size: 11px; + position: absolute; + width: auto; + height: auto; + padding: 3px; + border: 1px solid black; + background-color: #ffffcc; + pointer-events: none; +} + +div#popup td { + vertical-align: top; +} + +div#popup .popup-label { + text-align: right; +} + +div#popup .popup-value { + font-weight: bold; +} + +/* Colors for text representing states */ +.up { + color: rgb(0, 128, 0); +} +.down { + color: rgb(255, 0, 0); +} +.unreachable { + color: rgb(128, 0, 0); +} +.ok { + color: rgb(0, 128, 0); +} +.warning { + color: rgb(176, 178, 20); +} +.unknown { + color: rgb(255, 100, 25); +} +.critical { + color: rgb(255, 0, 0); +} +.pending { + color: #ccc; +} + +/* Styles for labels in partition displays */ +g.label { + pointer-events: none; +} + +/* Styles for menu button */ +div#menubutton { + position: absolute; + z-index: 40; +} + +div#menubutton button { + padding: 0px; + border: none; + background-color: white; +} diff --git a/stylesheets/map.css b/stylesheets/map.css new file mode 100644 index 0000000..2f55b71 --- /dev/null +++ b/stylesheets/map.css @@ -0,0 +1,29 @@ +/* Styles for the body as whole */ +body { + margin: 0; +} + +/* Styles for the map header div */ +div#header-container { + position: absolute; + top: 1px; + left: 1px; + width: 320px; + z-index: 30; +} + +/* Container for the map svg */ +div#map-container { + position: absolute; + width: 100%; + height: 100%; +} + +/* Class to remove shadow from bootstrap buttons */ +.btn-noshadow:focus, +.btn-noshadow:active { + outline: none; + -webkit-box-shadow: none !important; + -moz-box-shadow: none !important; + box-shadow: none !important; +} diff --git a/stylesheets/nag_funcs.css b/stylesheets/nag_funcs.css new file mode 100644 index 0000000..29f4686 --- /dev/null +++ b/stylesheets/nag_funcs.css @@ -0,0 +1,71 @@ +/* vidbox */ +div.vidboxContainer { position: fixed; background: transparent; z-index: 100; } +div.vidbox_ul { left:10px; top: 10px } +div.vidbox_ur { right: 10px; top:10px; } +div.vidbox_ll { left:10px; bottom:10px; } +div.vidbox_lr { right:10px; bottom:10px; } + +.vidboxTab { + border: 1px solid black; + height: 20px; + width: 130px; + font: bold italic 15px serif; + position: fixed; + z-index: 110; + text-align: center; + background: #660000; + color: #f0f0f0; + cursor: pointer; + border-top-left-radius: 20px; + border-top-right-radius: 20px; +} +.vidboxTabClose { +/* height:9px; */ + width:12px; + border:1px solid white; + font: bold 13px sans-serif; + line-height: 10px; + margin: 3px 0 0 10px; + vertical-align: top; + padding-bottom: 3px; + display: none; +} +.vidboxTab_ul { left: -55px; top:70px; + border-radius: 20px 20px 0px 0px; + transform:rotate(90deg); + height: 30px; line-height: 25px !important; +} +.vidboxTab_ur { right:-55px; top:70px; + border-radius: 20px 20px 0px 0px; + transform:rotate(270deg); + height: 30px; line-height: 25px !important; +} +.vidboxTab_ll { left:-55px; bottom:70px; + border-radius: 20px 20px 0px 0px; + transform:rotate(90deg); + height: 30px; line-height: 25px !important; +} +.vidboxTab_lr { right:-55px; bottom:70px; + border-radius: 20px 20px 0px 0px; + transform:rotate(270deg); + height: 30px; line-height: 25px !important; +} + +.vidboxFrame { + background-color:#303030; + color:white; + border: 1px solid black; + display:none; + text-align: center; +} +.vidboxCancel { + float:right; + cursor: pointer; + padding:5px 20px 0 0; + color: #ccccff; +} +.vidFrame { width:600px; } +.vidboxIframe { margin-top:10px; } +.textFrame { margin: 10px; } +.textFrame a:link, .textFrame a:visited { color: #ccccff; } +.textFrame a:hover, .textFrame a:active { text-decoration: underline; color: #eeeeff; } diff --git a/stylesheets/trendsgraph.css b/stylesheets/trendsgraph.css new file mode 100644 index 0000000..b9a9b1b --- /dev/null +++ b/stylesheets/trendsgraph.css @@ -0,0 +1,126 @@ +/* General text style */ +text { + font-family: sans-serif; + font-size: 11px; +} + +/* Colors for text representing states */ +text.Up { + fill: rgb(0, 128, 0); +} +text.Down { + fill: rgb(255, 0, 0); +} +text.Unreachable { + fill: rgb(128, 0, 0); +} +text.Ok { + fill: rgb(0, 128, 0); +} +text.Warning { + fill: rgb(176, 178, 20); +} +text.Unknown { + fill: rgb(255, 100, 25); +} +text.Critical { + fill: rgb(255, 0, 0); +} +text.Indeterminate { + fill: rgb(0, 0, 0); +} + +/* Class to hide elements */ +.hidden { + display: none; +} + +/* Trend SVG style */ +div#trendsvg { + position: absolute; + z-index: 10; + left: 0; + top: 0; +} + +/* Center header text */ +g#header text { + text-anchor: middle; +} + +/* Anchor the y-axis text to the end of the text */ +text.yaxis { + text-anchor: end; +} + +/* Draw grid lines as dashed lines */ +line.vLine, +line.hLine { + stroke-width: 1; + stroke: black; + stroke-dasharray: 2,2; + pointer-events: none; +} + +/* Styles for state popups */ +div#popup { + font-family: sans-serif; + font-size: 11px; + position: absolute; + width: auto; + height: auto; + padding: 3px; + border: 1px solid black; + background-color: #ffffcc; + pointer-events: none; + z-index: 20; +} +div#popup #popup-state { + font-weight: bold; + text-decoration: underline; +} +div#popup .field-name { + font-weight: bold; +} +div#popup #popup-start, +div#popup #popup-end, +div#popup #popup-duration, +div#popup #popup-info { + font-style: italic; +} + +/* Styles for grid spinner */ +div#gridspinner { + position: absolute; + top: 74px; + left: 355px; + height: 50px; + width: 50px; + z-index: 40; +} + +/* Styles for availability spinner */ +div#availabilityspinner { + position: absolute; + top: 74px; + left: 735px; + height: 50px; + width: 50px; + z-index: 40; +} + +/* Styles for menu button */ +div#menubutton { + position: absolute; + top: 5px; + left: 871px; + height: 25px; + width: 22px; + z-index: 40; +} + +div#menubutton button { + padding: 0px; + border: none; + background-color: white; +}