use w3.css for primary styling
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
.btn-group {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-group button {
|
||||
padding: 10px; /* Some padding */
|
||||
cursor: pointer; /* Pointer/hand icon */
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-group button:hover {
|
||||
filter: brightness(85%);
|
||||
}
|
||||
|
||||
.btn-group button.accept {
|
||||
background-color: var(--button-accept);
|
||||
}
|
||||
|
||||
.btn-group button.cancel {
|
||||
background-color: var(--button-cancel);
|
||||
}
|
||||
|
||||
img.clickable {
|
||||
cursor: pointer;
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
dialog {
|
||||
background-color: var(--content-bkg-color);
|
||||
border: 1px solid var(--content-txt-color);
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
dialog .btn-group {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#prompt {
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 0px;
|
||||
}
|
75
css/form.css
75
css/form.css
@@ -1,62 +1,15 @@
|
||||
form {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
form p {
|
||||
text-align: left;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
form fieldset {
|
||||
border: solid var(--content-txt-color) 1px;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
form input, form label, form legend {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
form input, form select {
|
||||
border: solid var(--content-txt-color) 1px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
form input:focus, form select:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
form input:disabled, form select:disabled {
|
||||
background-color: var(--form-disabled-color);
|
||||
}
|
||||
|
||||
form button {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.input-grid {
|
||||
display: grid;
|
||||
column-gap: 10px;
|
||||
row-gap: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
form legend {
|
||||
top: -0.6em;
|
||||
position: relative;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
form hr {
|
||||
width: 100%;
|
||||
border: none;
|
||||
border-top: solid var(--content-txt-color) 1px;
|
||||
}
|
||||
|
||||
form .last-item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
column-gap: 5px;
|
||||
.input-grid {
|
||||
display: grid;
|
||||
column-gap: 10px;
|
||||
row-gap: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.input-grid * {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.input-grid .last-item {
|
||||
text-align: right;
|
||||
}
|
@@ -1,27 +0,0 @@
|
||||
@media screen and (min-width: 1000px) {
|
||||
div {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
column-gap: 10px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1000px) {
|
||||
#instance-status {
|
||||
display: none;
|
||||
}
|
||||
#instance-type {
|
||||
display: none;
|
||||
}
|
||||
#node-name {
|
||||
display: none;
|
||||
}
|
||||
#node-status-div {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
margin-left: 0px;
|
||||
justify-content: flex-end;
|
||||
}
|
148
css/style.css
148
css/style.css
@@ -1,125 +1,25 @@
|
||||
:root {
|
||||
--accent-bkg-color: black;
|
||||
--accent-txt-color: white;
|
||||
--accent-lnk-color: white;
|
||||
--content-bkg-color: white;
|
||||
--content-txt-color: black;
|
||||
--content-lnk-color: #6666FF;
|
||||
--form-disabled-color: #606060;
|
||||
--button-accept: #0F0;
|
||||
--success-color: #0F0;
|
||||
--button-cancel: #F00;
|
||||
--fail-color: #F00;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: monospace;
|
||||
font-size: large;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
grid-template-rows: 1fr auto;
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-areas:
|
||||
"bar main"
|
||||
"footer main"
|
||||
;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
header {
|
||||
grid-area: bar;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 20px;
|
||||
grid-area: main;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-area: footer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header, footer {
|
||||
background-color: var(--accent-bkg-color);
|
||||
color: var(--accent-txt-color);
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
nav a {
|
||||
background-color: var(--accent-bkg-color);
|
||||
color: var(--accent-lnk-color);
|
||||
font-size: xx-large;
|
||||
text-decoration: underline 0.1em var(--accent-bkg-color);
|
||||
transition: text-decoration-color 250ms;
|
||||
}
|
||||
|
||||
nav a:hover, nav a[aria-current="true"] {
|
||||
text-decoration: underline 0.1em var(--accent-lnk-color);
|
||||
}
|
||||
|
||||
nav:hover a[aria-current="true"] {
|
||||
text-decoration: underline 0.1em var(--accent-bkg-color);
|
||||
}
|
||||
|
||||
nav:hover a[aria-current="true"]:hover {
|
||||
text-decoration: underline 0.1em var(--accent-lnk-color);
|
||||
}
|
||||
|
||||
main a {
|
||||
font-size: inherit;
|
||||
color: var(--content-lnk-color);
|
||||
text-decoration: underline 0.1em var(--content-bkg-color);
|
||||
transition: text-decoration-color 250ms;
|
||||
}
|
||||
|
||||
main a:hover {
|
||||
text-decoration: underline 0.1em var(--content-lnk-color);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: xx-large;
|
||||
margin: 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: xx-large;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid;
|
||||
border-color: inherit;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 1lh;
|
||||
h1, h2, h3, h3, h4, h5, h6, p, a, label, button {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
img.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
.flex-row-nowrap {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
column-gap: 10px;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
@@ -1,28 +0,0 @@
|
||||
table {
|
||||
padding: 10px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table thead {
|
||||
background-color: var(--accent-bkg-color);
|
||||
color: var(--accent-txt-color);
|
||||
}
|
||||
|
||||
table tbody {
|
||||
background-color: var(--content-bkg-color);
|
||||
color: var(--content-txt-color);
|
||||
}
|
||||
|
||||
table tbody tr:nth-child(even) {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
table tbody tr:hover {
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
table th, table td {
|
||||
padding: 5px;
|
||||
}
|
Reference in New Issue
Block a user