summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-18 18:19:57 +0300
committerDevaev Maxim <[email protected]>2020-07-18 18:19:57 +0300
commitfaedb829b95df47147442b784e4583ddfc4db252 (patch)
treeea74256a75434f4b500f6c719a02fd68c0f2f98a /web
parentb62271c112e26adc8d053a4f602acb84154c00cd (diff)
refactoring
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html2
-rw-r--r--web/kvm/window-about.pug2
-rw-r--r--web/share/css/kvm/about.css2
-rw-r--r--web/share/css/tabs.css14
4 files changed, 10 insertions, 10 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index e74087e4..3be03972 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -1188,7 +1188,7 @@
</td>
</tr>
</table><br>
- <div class="tabs">
+ <div class="tabs-box">
<input checked type="radio" name="about-tab-button" id="about-tab-meta-button">
<label for="about-tab-meta-button">Meta</label>
<div class="tab">
diff --git a/web/kvm/window-about.pug b/web/kvm/window-about.pug
index 90b61ce0..62910d6c 100644
--- a/web/kvm/window-about.pug
+++ b/web/kvm/window-about.pug
@@ -20,7 +20,7 @@ mixin about_tab(name, title, checked=false)
tr #[td(colspan="2" class="title") Open Source &amp; Open Hardware IP-KVM]
tr #[td(colspan="2" class="copyright") Copyright &copy; 2018 Pi-KVM Developers Team]
br
- div(class="tabs")
+ div(class="tabs-box")
+about_tab("meta", "Meta", true)
+about_tab("hw", "Hardware")
+about_tab("version", "Version")
diff --git a/web/share/css/kvm/about.css b/web/share/css/kvm/about.css
index 22fb6abc..efe70e18 100644
--- a/web/share/css/kvm/about.css
+++ b/web/share/css/kvm/about.css
@@ -41,6 +41,6 @@ div#about td.copyright {
font-size: 0.8em;
}
-div#about div.tabs div.tab div.code {
+div#about div.tabs-box div.tab div.code {
height: 250px;
}
diff --git a/web/share/css/tabs.css b/web/share/css/tabs.css
index fcd6f9b8..9dfd66db 100644
--- a/web/share/css/tabs.css
+++ b/web/share/css/tabs.css
@@ -20,16 +20,16 @@
*****************************************************************************/
-div.tabs {
+div.tabs-box {
display: flex;
flex-wrap: wrap;
}
-div.tabs input[type="radio"] {
+div.tabs-box input[type="radio"] {
display: none;
}
-div.tabs div.tab {
+div.tabs-box div.tab {
order: 99;
display: none;
border: var(--border-default-thin);
@@ -37,7 +37,7 @@ div.tabs div.tab {
width: 100%;
}
-div.tabs label {
+div.tabs-box label {
order: 1;
display: block;
text-align: center;
@@ -51,14 +51,14 @@ div.tabs label {
top: 1px;
}
-div.tabs label:last-of-type {
+div.tabs-box label:last-of-type {
border-right: var(--border-default-thin);
}
-div.tabs input[type="radio"]:checked+label {
+div.tabs-box input[type="radio"]:checked+label {
background-color: var(--cs-control-default-bg);
}
-div.tabs input[type="radio"]:checked+label+.tab {
+div.tabs-box input[type="radio"]:checked+label+.tab {
display: block;
}