summaryrefslogtreecommitdiff
path: root/app/styles
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2022-12-14 13:28:27 +0100
committerSamuel Mannehed <samuel@cendio.se>2022-12-14 13:28:27 +0100
commitf983c78d173322c080c7a8805fc8da436dc4e4d0 (patch)
treea284e090debface119ab7633b5191a0233bfb7d4 /app/styles
parent1ff035c330e8aa1dfe5d1a6e7f9aebf5e3c80428 (diff)
downloadnovnc-f983c78d173322c080c7a8805fc8da436dc4e4d0.tar.gz
Make connect button a regular <button>
It is a button, let the HTML element reflect that. And instead of having the outer div being clickable, lets only make the inner one work like a button. Because of that, this commit renames the outer div to "connect_box" instead of "connect_button". Note that we remove the disabled :hover-effect for touch on this button. It doesn't make much difference since this button is one of a kind.
Diffstat (limited to 'app/styles')
-rw-r--r--app/styles/base.css27
1 files changed, 12 insertions, 15 deletions
diff --git a/app/styles/base.css b/app/styles/base.css
index 402454c..b20ed2b 100644
--- a/app/styles/base.css
+++ b/app/styles/base.css
@@ -725,12 +725,9 @@ html {
font-size: calc(25vw - 30px);
}
}
-#noVNC_connect_button {
- cursor: pointer;
-
- padding: 10px;
+#noVNC_connect_box {
+ padding: 12px;
- color: white;
background-color: rgb(110, 132, 163);
border-radius: 12px;
@@ -739,26 +736,26 @@ html {
box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
}
-#noVNC_connect_button div {
- margin: 2px;
+#noVNC_connect_box button {
+ width: 100%;
padding: 5px 30px;
- border: 1px solid rgb(83, 99, 122);
- border-bottom-width: 2px;
+
+ cursor: pointer;
+
+ border-color: rgb(83, 99, 122);
border-radius: 5px;
+
background: linear-gradient(to top, rgb(110, 132, 163), rgb(99, 119, 147));
+ color: white;
/* This avoids it jumping around when :active */
vertical-align: middle;
}
-#noVNC_connect_button div:active {
- border-bottom-width: 1px;
- margin-top: 3px;
-}
-:root:not(.noVNC_touch) #noVNC_connect_button div:hover {
+#noVNC_connect_box button:hover {
background: linear-gradient(to top, rgb(110, 132, 163), rgb(105, 125, 155));
}
-#noVNC_connect_button img {
+#noVNC_connect_box img {
vertical-align: bottom;
height: 1.3em;
}