summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-10 04:31:14 +0300
committerDevaev Maxim <[email protected]>2020-06-10 04:31:14 +0300
commitaaea8fef24325fd96897d33ee4f6ed9f0ce263b4 (patch)
treee269e81744f0abdb92b0e7712e4466d40b1c3f91
parent8a18a4145973e5c3009c18217bd52cb2b6293d74 (diff)
refactoring
-rw-r--r--web/kvm/index.html22
-rw-r--r--web/share/css/kvm/msd.css15
-rw-r--r--web/share/css/menu.css14
3 files changed, 25 insertions, 26 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 8b97e52a..2fe69048 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -211,36 +211,36 @@
<hr>
</div>
- <table class="msd-info">
+ <table class="menu-item-content-kv">
<tr>
<td>Status: </td>
- <td id="msd-status" class="msd-info-value"></td>
+ <td id="msd-status" class="value"></td>
</tr>
</table>
<hr>
- <table class="msd-info msd-single-storage feature-disabled">
+ <table class="menu-item-content-kv msd-single-storage feature-disabled">
<tr>
<td>Current image:</td>
- <td id="msd-image-name" class="msd-info-value"></td>
+ <td id="msd-image-name" class="value"></td>
</tr>
<tr>
<td>Image size:</td>
- <td id="msd-image-size" class="msd-info-value"></td>
+ <td id="msd-image-size" class="value"></td>
</tr>
<tr>
<td>Storage size:</td>
- <td id="msd-storage-size" class="msd-info-value"></td>
+ <td id="msd-storage-size" class="value"></td>
</tr>
</table>
- <table class="msd-info msd-multi-storage feature-disabled">
+ <table class="menu-item-content-kv msd-multi-storage feature-disabled">
<tr>
<td>Image:</td>
<td width="100%"><select disabled id="msd-image-selector"></select></td>
<td><button disabled id="msd-remove-image">Remove</button></td>
</tr>
</table>
- <table class="msd-info msd-multi-storage feature-disabled">
+ <table class="menu-item-content-kv msd-multi-storage feature-disabled">
<tr class="msd-cdrom-emulation feature-disabled">
<td>Emulate CD-ROM drive:</td>
<td>
@@ -274,14 +274,14 @@
<hr>
<div id="msd-submenu-new-image" class="msd-message">
- <table class="msd-info">
+ <table class="menu-item-content-kv">
<tr>
<td>New image:</td>
- <td id="msd-new-image-name" class="msd-info-value"></td>
+ <td id="msd-new-image-name" class="value"></td>
</tr>
<tr>
<td>Upload size:</td>
- <td id="msd-new-image-size" class="msd-info-value"></td>
+ <td id="msd-new-image-size" class="value"></td>
</tr>
</table>
<hr>
diff --git a/web/share/css/kvm/msd.css b/web/share/css/kvm/msd.css
index df41593c..faa348d8 100644
--- a/web/share/css/kvm/msd.css
+++ b/web/share/css/kvm/msd.css
@@ -28,18 +28,3 @@ div#msd-menu div.msd-message,
div#msd-menu input.msd-message {
display: none;
}
-
-div#msd-menu table.msd-info {
- -webkit-user-select: text;
- -moz-user-select: text;
- user-select: text;
- border-spacing: 5px;
- margin: 0 10px 0 10px;
- font-size: 12px;
-}
-
-div#msd-menu table.msd-info td.msd-info-value {
- font-weight: bold;
- max-width: 310px;
- overflow: hidden;
-}
diff --git a/web/share/css/menu.css b/web/share/css/menu.css
index a4babb73..b5d14dd9 100644
--- a/web/share/css/menu.css
+++ b/web/share/css/menu.css
@@ -133,6 +133,20 @@ ul#menu li div.menu-item-content-text table.one-line-switch {
}
}
+ul#menu li div.menu-item-content table.menu-item-content-kv {
+ -webkit-user-select: text;
+ -moz-user-select: text;
+ user-select: text;
+ border-spacing: 5px;
+ margin: 0 10px 0 10px;
+ font-size: 12px;
+}
+ul#menu li div.menu-item-content table.menu-item-content-kv td.value {
+ font-weight: bold;
+ max-width: 310px;
+ overflow: hidden;
+}
+
ul#menu li div.menu-item-content-buttons button,
ul#menu li div.menu-item-content-buttons select {
box-shadow: none;