mirror of
https://github.com/unraid/webgui.git
synced 2026-05-07 04:41:03 -05:00
refactor: create edit.css for both UpdateVM.page & AddVM.page removing duplicated styles
This commit is contained in:
@@ -100,9 +100,10 @@ if (strpos($strSelectedTemplate,"User-") !== false) {
|
||||
$usertemplate = 1;
|
||||
}
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css')?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/webGui/styles/jquery.filetree.css')?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/webGui/styles/jquery.switchbutton.css')?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css')?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/plugins/dynamix.vm.manager/styles/edit.css')?>">
|
||||
|
||||
<span class="status advancedview_panel" style="margin-top:<?=$top?>px;"><input type="checkbox" class="inlineview"><input type="checkbox" class="advancedview"></span>
|
||||
<div class="domain">
|
||||
|
||||
@@ -1,296 +0,0 @@
|
||||
:root {
|
||||
--add-vm-background: var(--black);
|
||||
}
|
||||
|
||||
.Theme--azure:root,
|
||||
.Theme--white:root {
|
||||
--add-vm-background: var(--gray-100);
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
#vmform table {
|
||||
margin-top: 0;
|
||||
table-layout: fixed;
|
||||
}
|
||||
#vmform div.title + table {
|
||||
margin-top: 0;
|
||||
}
|
||||
#vmform table tr {
|
||||
vertical-align: top;
|
||||
line-height: 4rem;
|
||||
height: 4rem;
|
||||
}
|
||||
#vmform table tr td:nth-child(1) {
|
||||
width: 25%;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
}
|
||||
#vmform table tr td:nth-child(2) {
|
||||
width: 800px;
|
||||
}
|
||||
@media (max-width: 1280px) {
|
||||
#vmform table tr td:first-child {
|
||||
width: 35%;
|
||||
padding-right: 4rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1281px) {
|
||||
#vmform table tr td:first-child {
|
||||
width: 30%;
|
||||
padding-right: 4rem;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1921px) {
|
||||
#vmform table tr td:first-child {
|
||||
width: 25%;
|
||||
padding-right: 4rem;
|
||||
}
|
||||
}
|
||||
#vmform table tr td:last-child {
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#vmform textarea{
|
||||
max-width:500px;
|
||||
scrollbar-width:4px;
|
||||
}
|
||||
|
||||
#vmform textarea::-webkit-scrollbar{
|
||||
height:4px;
|
||||
width:4px;
|
||||
}
|
||||
|
||||
#vmform .multiple {
|
||||
position: relative;
|
||||
}
|
||||
#vmform .sectionbutton {
|
||||
position: absolute;
|
||||
left: 2px;
|
||||
cursor: pointer;
|
||||
opacity: 0.4;
|
||||
font-size: 1.4rem;
|
||||
line-height: 17px;
|
||||
z-index: 10;
|
||||
transition-property: opacity, left;
|
||||
transition-duration: 0.1s;
|
||||
transition-timing-function: linear;
|
||||
}
|
||||
#vmform .sectionbutton.remove {
|
||||
top: 0;
|
||||
opacity: 0.3;
|
||||
}
|
||||
#vmform .sectionbutton.add {
|
||||
bottom: 0;
|
||||
}
|
||||
#vmform .sectionbutton:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
#vmform .sectiontab {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
bottom: 2px;
|
||||
left: 0;
|
||||
width: 6px;
|
||||
border-radius: 3px;
|
||||
background-color: var(--gray-200); /* Condensed from: #dddddd */
|
||||
transition-property: background, width;
|
||||
transition-duration: 0.1s;
|
||||
transition-timing-function: linear;
|
||||
}
|
||||
#vmform .multiple:hover .sectionbutton {
|
||||
opacity: 0.7;
|
||||
left: 4px;
|
||||
}
|
||||
#vmform .multiple:hover .sectionbutton.remove {
|
||||
opacity: 0.6;
|
||||
}
|
||||
#vmform .multiple:hover .sectiontab {
|
||||
background-color: var(--gray-300);
|
||||
width: 8px;
|
||||
}
|
||||
#vmform table.multiple:hover {
|
||||
background-position: 0 0;
|
||||
}
|
||||
#vmform table.multiple td {
|
||||
padding: 5px 0;
|
||||
}
|
||||
span.advancedview_panel {
|
||||
display: none;
|
||||
line-height: 16px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
.basic {
|
||||
display: none;
|
||||
}
|
||||
.advanced {
|
||||
/*Empty placeholder*/
|
||||
}
|
||||
.switch-button-label.off {
|
||||
color: inherit;
|
||||
}
|
||||
#template_img {
|
||||
cursor: pointer;
|
||||
}
|
||||
#template_img:hover {
|
||||
opacity: 0.5;
|
||||
}
|
||||
#template_img:hover i {
|
||||
opacity: 1;
|
||||
}
|
||||
.template_img_chooser_inner {
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
margin-bottom: 15px;
|
||||
margin-right: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
.template_img_chooser_inner img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
.template_img_chooser_inner p {
|
||||
text-align: center;
|
||||
line-height: 8px;
|
||||
}
|
||||
#template_img_chooser {
|
||||
width: 560px;
|
||||
height: 300px;
|
||||
overflow-y: scroll;
|
||||
position: relative;
|
||||
display:grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
}
|
||||
#template_img_chooser div:hover {
|
||||
background-color: var(--gray-150); /* Condensed from: #eee */
|
||||
cursor: pointer;
|
||||
}
|
||||
#form_content {
|
||||
display: none;
|
||||
}
|
||||
#vmform .four {
|
||||
overflow: hidden;
|
||||
}
|
||||
#vmform .four label {
|
||||
float: left;
|
||||
display: table-cell;
|
||||
width: 15%;
|
||||
}
|
||||
#vmform .four label:nth-child(4n + 4) {
|
||||
}
|
||||
#vmform .four label.cpu1 {
|
||||
width: 28%;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
}
|
||||
#vmform .four label.cpu2 {
|
||||
width: 3%;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
}
|
||||
#vmform .mac_generate {
|
||||
cursor: pointer;
|
||||
margin-left: -5px;
|
||||
color: var(--blue-700); /* Condensed from: #08c */
|
||||
font-size: 1.3rem;
|
||||
transform: translate(0px, 2px);
|
||||
}
|
||||
#vmform .disk {
|
||||
display: none;
|
||||
}
|
||||
#vmform .disk_preview {
|
||||
display: inline-block;
|
||||
color: var(--gray-300); /* Condensed from: #bbb */
|
||||
transform: translate(0px, 1px);
|
||||
}
|
||||
i.fa-plus-circle,
|
||||
i.fa-minus-circle {
|
||||
margin-left: 8px;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
span.width {
|
||||
display: inline-block;
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
span.column1 {
|
||||
display: inline-block;
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
span.column2 {
|
||||
display: inline-block;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
input#btnvCPUSelect,
|
||||
input.wlan0_info {
|
||||
font-size: 1rem;
|
||||
padding: 5px 10px;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
span.space {
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
span.label {
|
||||
display: inline-block;
|
||||
width: 110px;
|
||||
text-align: right;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
span.ipvtap {
|
||||
margin-left: 25px;
|
||||
font-family: bitstream;
|
||||
}
|
||||
|
||||
select.narrow {
|
||||
min-width: 90px !important;
|
||||
}
|
||||
|
||||
select.second {
|
||||
margin-left: 12px;
|
||||
max-width: 90px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
div.wlan0 {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
input.trim {
|
||||
width: 98px;
|
||||
min-width: 98px;
|
||||
}
|
||||
|
||||
input.second {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.autostart ~ .switch-button-background {
|
||||
margin-top: 8px !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.CodeMirror {
|
||||
border: 1px solid var(--gray-150);
|
||||
cursor: text;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.CodeMirror pre.CodeMirror-placeholder {
|
||||
color: var(--gray-400);
|
||||
}
|
||||
+8
-8
@@ -53,14 +53,14 @@ body {
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#vmform textarea{
|
||||
max-width:500px;
|
||||
scrollbar-width:4px;
|
||||
#vmform textarea {
|
||||
max-width: 500px;
|
||||
scrollbar-width: 4px;
|
||||
}
|
||||
|
||||
#vmform textarea::-webkit-scrollbar{
|
||||
height:4px;
|
||||
width:4px;
|
||||
#vmform textarea::-webkit-scrollbar {
|
||||
height: 4px;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
#vmform .multiple {
|
||||
@@ -173,7 +173,7 @@ span.advancedview_panel {
|
||||
height: 300px;
|
||||
overflow-y: scroll;
|
||||
position: relative;
|
||||
display:grid;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
@@ -308,4 +308,4 @@ input.second {
|
||||
|
||||
.fileTree {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user