Files
OliveTin/webui/style.css
T

451 lines
6.2 KiB
CSS

body {
background-color: #dee3e7;
color: black;
text-align: center;
font-family: sans-serif;
padding: 0;
margin: 0;
}
dialog {
min-width: 600px;
text-align: left;
padding: 1em;
box-shadow: 0 0 6px 0 #444;
}
fieldset {
padding: 0;
}
fieldset#root-group {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
grid-template-rows: auto auto auto auto;
grid-gap: 1em;
text-align: center;
border: 0;
}
#sidebar-toggle-wrapper {
display: inline;
}
h1 {
display: inline;
padding-left: .5em;
font-size: small;
}
label#sidebar-toggler-button {
top: 1em;
left: 0.5em;
height: 2em;
width: 2em;
background-color: white;
text-align: center;
display: inline-grid;
place-items: center;
padding: .2em;
box-shadow: 0 0 5px 0 #444;
color: #666;
}
label#sidebar-toggler-button:hover,
label#sidebar-toggler-button:focus {
color: black;
cursor: pointer;
}
footer,
footer a {
color: black;
}
aside {
position: absolute;
width: 180px;
height: 100%;
left: 0;
top: 0;
padding-top: 4em;
transition: 0.5s ease;
background-color: white;
border: 0 0 10px 0;
box-shadow: 0 0 10px 0 #444;
z-index: 3;
}
input:checked ~ aside {
left: -250px;
}
aside ul {
padding: 0;
margin: 0;
}
aside ul li {
list-style: none;
text-align: left;
border-bottom: 1px inset black;
}
aside ul li a {
display: block;
padding-left: 1em;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
aside ul li a:hover {
color: black;
background-color: #efefef;
cursor: pointer;
}
table {
background-color: white;
border-collapse: collapse;
width: 100%;
box-shadow: 0 0 5px 0 #444;
}
th,
td {
border: 1px solid #efefef;
text-align: left;
padding: 0.6em;
}
th:first-child {
width: 5%;
}
tr:hover td {
background-color: beige;
}
legend {
padding-top: 1em;
}
span[role="icon"] {
display: block;
font-size: 3em;
vertical-align: middle;
}
.action-header span[role="icon"],
tr.log-row span[role="icon"] {
display: inline-block;
padding-right: 0.2em;
}
.error {
background-color: salmon;
}
div.error {
padding: 1em;
}
.title.temporary-status-message {
color: gray;
}
div.entity {
background-color: white;
box-shadow: 0 0 10px 0 #444;
display: grid;
grid-column: auto / span 2;
grid-row: auto / span 2;
grid-template-rows: auto min-content;
grid-template-columns: minmax(min-content, auto);
}
h2 {
margin-top: 0;
font-size: 1em;
display: inline-block;
}
div.entity h2 {
grid-column: 1 / span all;
}
details {
display: inline-block;
}
details[open] {
margin-top: 1em;
display: block;
}
/* General Buttons */
button,
input[type="submit"] {
padding: 1em;
color: black;
text-align: center;
border: 1px solid #999;
background-color: white;
box-shadow: 0 0 6px 0 #aaa;
user-select: none;
}
/* Action Buttons */
action-button {
display: flex;
flex-direction: column;
}
action-button button {
width: 100%;
flex-grow: 1;
z-index: 2;
}
action-button details {
flex-grow: 1;
}
action-button details[open] {
margin-top: 0;
}
action-button details summary div {
display: inline-flex;
}
action-button details summary div span:first-child {
flex-grow: 1;
}
.action-button-footer {
display: block;
text-align: left;
font-size: smaller;
padding: 0.2em;
background-color: #efefef;
border-top: 0;
border-left: 1px solid #999;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
execution-button button {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
/* Button states */
button:hover,
input[type="submit"]:hover {
box-shadow: 0 0 10px 0 #666;
cursor: pointer;
}
button:focus,
input[type="submit"]:focus {
outline: 1px solid black;
}
button:disabled,
input[type="submit"]:disabled {
color: gray;
background-color: #333;
cursor: not-allowed;
}
/* Button animations */
.action-failed {
animation: kf-action-failed 1s;
}
@keyframes kf-action-failed {
20% { background-color: red; }
}
.action-success {
animation: kf-action-success 1s;
}
@keyframes kf-action-success {
20% { background-color: limegreen; }
}
.action-nonzero-exit {
animation: kf-action-nonzero-exit 1s;
}
@keyframes kf-action-nonzero-exit {
20% { background-color: orange; }
}
.action-timeout {
animation: kf-action-timeout 1s;
}
@keyframes kf-action-timeout {
20% { background-color: cyan; }
}
.action-blocked {
animation: kf-action-blocked 1s;
}
@keyframes kf-action-blocked {
20% { background-color: purple; }
}
img.logo {
width: 1em;
height: 1em;
vertical-align: middle;
}
main {
padding: 1em;
padding-top: 3em;
}
summary {
cursor: pointer;
}
form div.wrapper {
background-color: white;
text-align: left;
}
label {
width: 20%;
text-align: right;
display: inline-block;
padding-right: 1em;
}
#perma-widget {
position: absolute;
top: 1em;
left: 1em;
z-index: 9;
}
#perma-widget label {
display: inline;
}
input {
padding: 0.6em;
}
input:invalid {
outline: 2px solid red;
}
form .wrapper span.icon {
display: inline-block;
vertical-align: middle;
}
form input[type="submit"]:first-child {
margin-right: 1em;
}
button[name="cancel"]:hover {
background-color: salmon;
}
input[name="start"]:hover {
background-color: #aceaac;
}
span.argument-description {
margin-left: 1em;
}
form div.buttons {
text-align: right;
}
pre {
border: 1px solid gray;
padding: 1em;
min-height: 1em;
}
td.exit-code {
text-align: center;
}
input.invalid {
background-color: salmon;
}
#available-version {
background-color: #aceaac;
padding: 0.2em;
border-radius: 1em;
}
span.tag {
background-color: lightgray;
border-radius: 0.6em;
padding: 0.2em;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: white;
}
form.action-arguments {
background-color: #333;
}
form div.wrapper {
background-color: #222;
}
button,
input[type="submit"] {
border: 1px solid #666;
background-color: #222;
box-shadow: 0 0 6px 0 #444;
color: white;
}
button:disabled {
background-color: black;
}
table,
td,
th {
border: 1px solid gray;
}
td,
tr {
background-color: #222;
color: white;
}
tr:hover td {
background-color: #666;
}
footer,
footer a {
color: gray;
}
}