Files
proxmox-web-portal/public/static/style.css
Sebastian Gabrielsson b83e283a66 Changes include:
Moved information regarding snapshots and console to their respective page
Moved power options to sidebar menu and added shutdown as an option
Moved away from a random userid in the database for the user to just use the username
Changed mariadb.js and schema.sql to reflect to move away from userid
Made it so that the site immediately goes into a VM page if the user only has access to one VM
Disabled and enables power options depending on the state of the VM
Fixed navigation with browsers back and forward so it's works as expected
Added admin_entitlement to the config.ini.example although it is not yet implemented
2026-03-03 10:22:08 +01:00

228 lines
3.3 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
display: grid;
grid-template-areas:
"header header"
"nav main";
grid-template-rows: 5rem auto;
grid-template-columns: 16rem auto;
background-color: #EDEDED;
height: 100vh;
width: 100%;
overflow: hidden;
}
body, input, textarea {
font-family: "Calibri", sans-serif;
font-size: 18px;
}
header {
background-color: #002E5F;
color: #FFFFFF;
padding-left: 1.5rem;
padding-right: 1.5rem;
display: flex;
grid-area: header;
align-items: baseline;
justify-content: space-between;
z-index: 500;
}
h1, h3 {
font-weight: initial;
}
h2, summary {
font-size: 1.5rem;
font-weight: initial;
margin: initial;
}
.sidebar {
background-color: white;
height: 100%;
padding: 1rem;
grid-area: nav;
flex-direction: column;
overflow-y: auto;
}
.sidebar h2 {
margin-bottom: 1rem;
}
.sidebar ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar a {
display: block;
text-decoration: none;
color: #002f5f;
border-radius: 5px;
cursor: pointer;
}
.sidebar p {
display: block;
text-decoration: none;
color: #002f5f;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
}
.home-link {
margin-top: 1rem;
}
.content {
padding: 1rem;
display: block;
grid-area: main;
overflow: scroll;
}
.content ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.content li {
padding: 2;
}
table {
margin: auto;
border-collapse: collapse;
}
thead {
background-color: #002E5F;
color: #FFFFFF;
}
td {
border: none;
padding: 5px;
}
.even {
background-color:#eef8fa;
}
.odd {
background-color:#ffffff
}
.console-container {
width: 100%;
height: 70vh;
background-color: #1e1e1e;
color: #e0e0e0;
font-family: monospace;
padding: 10px;
box-sizing: border-box;
overflow-y: auto;
white-space: pre-wrap;
border: 1px solid #333;
}
.hidden {
display: none;
}
button {
text-decoration: none;
color: #002f5f;
}
button:disabled {
color: #BABABA
}
pre {
display: inline-block;
background: white;
color: #333;
background-size: 3rem 3rem;
text-align: justify;
background-origin: content-box;
}
.status-indicator {
font-size: 1.3rem;
display: inline-block;
}
.status-indicator span {
padding: 0.2rem;
border-radius: 0.2rem;
color: white;
}
.status-indicator.running span{
background-color: #499943;
}
.status-indicator.stopped span{
background-color: #B00020;
}
.powermenu{
padding-bottom: 1rem;
}
.submenu{
max-height: 20rem;
overflow: hidden;
transition: max-height 0.5s ease;
padding-left: 0.5rem;
}
.submenu.open{
max-height: 20rem;
}
.arrow {
border: solid black;
border-width: 0 3px 3px 0;
display: inline-block;
padding: 3px;
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transition: transform 0.3s ease;
}
.arrow.open {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
.info {
margin-left: 5px;
cursor: help;
font-size: 14px;
}
.tooltip {
background-color: grey;
padding: 2rem;
display: none;
z-index: 1;
}
.info:hover + .tooltip {
display: block;
}