Theming support
This commit is contained in:
parent
e86c96d78f
commit
58e0b2f081
99 changed files with 1839 additions and 1094 deletions
26
static/css/default_light/configuration.css
Normal file
26
static/css/default_light/configuration.css
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#areas .area > .name {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content;
|
||||
grid-gap: 0px 16px;
|
||||
align-items: center;
|
||||
padding-left: 16px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
#areas .area > .name img {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 4px;
|
||||
height: 16px;
|
||||
}
|
||||
#areas .area .section.configuration {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr min-content;
|
||||
grid-gap: 0 16px;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
#areas .area .section.configuration:last-child {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
#areas .area .section.configuration img {
|
||||
height: 16px;
|
||||
}
|
||||
64
static/css/default_light/datapoints.css
Normal file
64
static/css/default_light/datapoints.css
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
#datapoints {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, min-content);
|
||||
grid-gap: 8px 16px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
#datapoints .group {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #2c6e97;
|
||||
margin-top: 1.5em;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
#datapoints h2 {
|
||||
border-bottom: unset;
|
||||
}
|
||||
#datapoints .header {
|
||||
font-weight: 800;
|
||||
font-size: 0.85em;
|
||||
color: #333;
|
||||
}
|
||||
#datapoints div {
|
||||
white-space: nowrap;
|
||||
align-self: center;
|
||||
}
|
||||
#datapoints .icons {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
#datapoints img.info {
|
||||
height: 20px;
|
||||
}
|
||||
#values {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, min-content);
|
||||
gap: 16px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.widgets {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr;
|
||||
gap: 8px 16px;
|
||||
}
|
||||
.widgets .label {
|
||||
margin-top: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.widgets input[type="text"],
|
||||
.widgets textarea {
|
||||
width: 100%;
|
||||
}
|
||||
.widgets .datapoints {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr;
|
||||
gap: 6px 8px;
|
||||
font-family: "Roboto Mono", monospace;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.widgets .action {
|
||||
display: grid;
|
||||
grid-template-columns: min-content min-content;
|
||||
grid-gap: 8px;
|
||||
}
|
||||
37
static/css/default_light/default_light.css
Normal file
37
static/css/default_light/default_light.css
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
.widgets .action #run-result {
|
||||
background-color: #fff !important;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
#menu .entry .label {
|
||||
color: #7bb8eb !important;
|
||||
}
|
||||
#menu .entry.selected .label {
|
||||
color: #fff !important;
|
||||
}
|
||||
input[type="text"],
|
||||
textarea,
|
||||
select {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
.description {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
button {
|
||||
background: #2979b8;
|
||||
color: #fff;
|
||||
border: 1px solid #2e84cb;
|
||||
}
|
||||
button:focus {
|
||||
background: #2979b8;
|
||||
}
|
||||
#areas .area {
|
||||
background: #fff !important;
|
||||
border: 1px solid #2979b8;
|
||||
}
|
||||
#areas .area .name {
|
||||
border-top-left-radius: unset;
|
||||
border-top-right-radius: unset;
|
||||
}
|
||||
#areas .area .section .name {
|
||||
font-weight: normal;
|
||||
}
|
||||
0
static/css/default_light/gruvbox.css
Normal file
0
static/css/default_light/gruvbox.css
Normal file
4
static/css/default_light/index.css
Normal file
4
static/css/default_light/index.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.graph {
|
||||
margin-top: 192px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
205
static/css/default_light/main.css
Normal file
205
static/css/default_light/main.css
Normal file
|
|
@ -0,0 +1,205 @@
|
|||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
*:focus {
|
||||
outline: none;
|
||||
}
|
||||
[onClick] {
|
||||
cursor: pointer;
|
||||
}
|
||||
#layout {
|
||||
display: grid;
|
||||
grid-template-areas: "menu content";
|
||||
grid-template-columns: 104px 1fr;
|
||||
height: 100vh;
|
||||
}
|
||||
#menu {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: repeat(32, min-content);
|
||||
align-items: start;
|
||||
grid-area: menu;
|
||||
background: #1b4e78;
|
||||
}
|
||||
#menu .entry.selected {
|
||||
background: #2979b8;
|
||||
}
|
||||
#menu .entry.selected a {
|
||||
color: #000 !important;
|
||||
}
|
||||
#menu .entry > a {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
grid-template-rows: 38px
|
||||
16px
|
||||
;
|
||||
padding: 16px;
|
||||
color: #7bb8eb;
|
||||
text-decoration: none;
|
||||
}
|
||||
#menu .entry > a img {
|
||||
display: block;
|
||||
width: 32px;
|
||||
}
|
||||
#menu .entry > a .label {
|
||||
font-size: 0.9em;
|
||||
font-weight: bold;
|
||||
}
|
||||
#page {
|
||||
grid-area: content;
|
||||
padding: 32px;
|
||||
}
|
||||
#page .page-label {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr;
|
||||
grid-gap: 12px;
|
||||
align-items: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
#page .page-label div {
|
||||
font-weight: 800;
|
||||
font-size: 1.5em;
|
||||
color: #1b4e78;
|
||||
}
|
||||
#page .page-label img {
|
||||
display: block;
|
||||
}
|
||||
#areas {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
#areas .area {
|
||||
background: #2979b8;
|
||||
border-radius: 4px;
|
||||
}
|
||||
#areas .area > .name {
|
||||
background: #1b4e78;
|
||||
color: #fff;
|
||||
font-weight: 800;
|
||||
padding: 4px 16px;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
#areas .area .section {
|
||||
margin: 8px 16px;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#areas .area .section:last-child {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
#areas .area .section .create {
|
||||
display: grid;
|
||||
grid-template-columns: min-content min-content;
|
||||
grid-gap: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#areas .area .section .create .new {
|
||||
font-weight: 800;
|
||||
}
|
||||
#areas .area .section > .name {
|
||||
font-weight: 800;
|
||||
}
|
||||
dialog {
|
||||
background: #1b4e78;
|
||||
border: 1px solid #3f90d4;
|
||||
color: #333;
|
||||
box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
background: #fff;
|
||||
font-family: sans-serif;
|
||||
font-weight: 300;
|
||||
color: #333;
|
||||
font-size: 11pt;
|
||||
}
|
||||
h1,
|
||||
h2 {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
h1:first-child,
|
||||
h2:first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
color: #1b4e78;
|
||||
font-weight: 800;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.25em;
|
||||
color: #2c6e97;
|
||||
font-weight: 800;
|
||||
}
|
||||
a {
|
||||
color: #2c6e97;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
b {
|
||||
font-weight: 800;
|
||||
}
|
||||
input[type="text"],
|
||||
textarea,
|
||||
select {
|
||||
font-family: monospace;
|
||||
background: #fff;
|
||||
color: #333;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid #484848;
|
||||
font-size: 1em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
button {
|
||||
background: #1b4e78;
|
||||
color: #333;
|
||||
padding: 8px 32px;
|
||||
border: 1px solid #2e84cb;
|
||||
font-size: 1em;
|
||||
height: 3em;
|
||||
}
|
||||
button:focus {
|
||||
background: #2979b8;
|
||||
}
|
||||
.line {
|
||||
grid-column: 1 / -1;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
span.date {
|
||||
color: #333;
|
||||
font-weight: 800;
|
||||
}
|
||||
span.time {
|
||||
font-size: 0.9em;
|
||||
color: #333;
|
||||
}
|
||||
span.seconds {
|
||||
display: none;
|
||||
}
|
||||
label {
|
||||
user-select: none;
|
||||
}
|
||||
.description {
|
||||
border: 1px solid #123450;
|
||||
color: #2c6e97;
|
||||
background: #fff;
|
||||
padding: 4px 8px;
|
||||
margin-top: 8px;
|
||||
white-space: nowrap;
|
||||
width: min-content;
|
||||
border-radius: 8px;
|
||||
}
|
||||
51
static/css/default_light/problems.css
Normal file
51
static/css/default_light/problems.css
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
#problems-list,
|
||||
#acknowledged-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, min-content);
|
||||
grid-gap: 4px 16px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
#problems-list div,
|
||||
#acknowledged-list div {
|
||||
white-space: nowrap;
|
||||
line-height: 24px;
|
||||
}
|
||||
#problems-list .header,
|
||||
#acknowledged-list .header {
|
||||
font-weight: 800;
|
||||
}
|
||||
#problems-list .trigger,
|
||||
#acknowledged-list .trigger {
|
||||
color: #1b4e78;
|
||||
font-weight: 800;
|
||||
}
|
||||
#problems-list .acknowledge img,
|
||||
#acknowledged-list .acknowledge img {
|
||||
height: 16px;
|
||||
}
|
||||
#acknowledged-list.hidden {
|
||||
display: none;
|
||||
}
|
||||
#areas {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
#areas .area .section {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, min-content);
|
||||
grid-gap: 8px 12px;
|
||||
}
|
||||
#areas .area .section .name {
|
||||
color: #000;
|
||||
grid-column: 1 / -1;
|
||||
font-weight: bold !important;
|
||||
line-height: 24px;
|
||||
}
|
||||
#areas .area .section div {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
0
static/css/default_light/theme-default_light.css
Normal file
0
static/css/default_light/theme-default_light.css
Normal file
0
static/css/default_light/theme-gruvbox.css
Normal file
0
static/css/default_light/theme-gruvbox.css
Normal file
44
static/css/default_light/trigger_edit.css
Normal file
44
static/css/default_light/trigger_edit.css
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
.widgets {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr;
|
||||
gap: 8px 16px;
|
||||
}
|
||||
.widgets .label {
|
||||
margin-top: 4px;
|
||||
}
|
||||
.widgets input[type="text"],
|
||||
.widgets textarea {
|
||||
width: 100%;
|
||||
}
|
||||
.widgets .datapoints {
|
||||
font: "Roboto Mono", monospace;
|
||||
display: grid;
|
||||
grid-template-columns: min-content min-content 1fr;
|
||||
gap: 6px 8px;
|
||||
margin-bottom: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.widgets .datapoints .invalid {
|
||||
color: #c83737;
|
||||
}
|
||||
.widgets .datapoints .delete img {
|
||||
height: 16px;
|
||||
}
|
||||
.widgets .action {
|
||||
display: grid;
|
||||
grid-template-columns: min-content min-content 1fr;
|
||||
grid-gap: 8px;
|
||||
}
|
||||
.widgets .action #run-result {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
margin-left: 16px;
|
||||
padding: 16px;
|
||||
background: #1b4e78;
|
||||
min-height: 8em;
|
||||
}
|
||||
.widgets .action #run-result.ok {
|
||||
color: #333;
|
||||
}
|
||||
.widgets .action #run-result.error {
|
||||
color: #fb4934;
|
||||
}
|
||||
13
static/css/default_light/triggers.css
Normal file
13
static/css/default_light/triggers.css
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#areas .area .section .triggers .trigger {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 1fr min-content;
|
||||
grid-gap: 8px;
|
||||
align-items: center;
|
||||
margin-top: 8px;
|
||||
}
|
||||
#areas .area .section .triggers .trigger img {
|
||||
height: 16px;
|
||||
}
|
||||
#areas .area .section .triggers .trigger .label {
|
||||
color: inherit;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue