mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
rrdimage: Add CSS and Javascript to ipfire theme
This patch adds styling for the new graph time range buttons and loads the Javascript in the HTML head. Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
4b63a0322d
commit
9064bc7242
@@ -328,7 +328,38 @@ table.fw-nat tbody tr td {
|
||||
height: 2.25em;
|
||||
}
|
||||
|
||||
iframe.graph {
|
||||
width: 100%;
|
||||
min-height: 300px;
|
||||
/* RRD graph images */
|
||||
|
||||
div.rrdimage > ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.rrdimage li:not(:first-child)::before {
|
||||
content: "-";
|
||||
padding: 0 0.3em;
|
||||
}
|
||||
|
||||
.rrdimage button {
|
||||
padding: 0.3em;
|
||||
font-weight: 700;
|
||||
color: #d90000; /* link color */
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.rrdimage button:focus {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.rrdimage button.selected {
|
||||
background-color: rgba(135, 203, 0, 0.2);
|
||||
}
|
||||
|
||||
div.rrdimage > img {
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
min-height: 290px;
|
||||
}
|
||||
|
||||
@@ -128,6 +128,7 @@ print <<END;
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<script type="text/javascript" src="/include/jquery.js"></script>
|
||||
<script src="/include/rrdimage.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function swapVisibility(id) {
|
||||
|
||||
Reference in New Issue
Block a user