Commit Graph

212 Commits

Author SHA1 Message Date
Kaleb Efflandt dab82b53ae
Update base.css 2024-02-15 09:26:38 -06:00
Kaleb Efflandt 527b82de33
Update input.css 2024-02-15 09:11:22 -06:00
Kaleb Efflandt 744a7daa1c
Update input.css 2024-02-15 09:09:11 -06:00
Kaleb Efflandt bdc745ad5a
Update base.css 2024-02-15 09:08:46 -06:00
Kaleb Efflandt f579fb93fc
Update base.css 2024-02-14 16:52:28 -06:00
Kaleb Efflandt d1e6fdd144
Update base.css 2024-02-14 16:42:57 -06:00
Kaleb Efflandt 33d8593a2b
Update input.css 2024-02-14 16:40:26 -06:00
Kaleb Efflandt dab8a4f013
Update base.css 2024-02-14 16:36:10 -06:00
Kaleb Efflandt 61f0858223
Update base.css 2024-02-14 16:33:37 -06:00
Kaleb Efflandt 5a39947b53
Update base.css 2024-02-14 16:32:52 -06:00
Kaleb Efflandt 8dc8446d75
Update base.css 2024-02-14 16:29:58 -06:00
Kaleb Efflandt c26414a428
Update base.css 2024-02-14 16:29:22 -06:00
Kaleb Efflandt acb246bb98
Update base.css 2024-02-14 16:23:28 -06:00
Kaleb Efflandt 180b6f5eb5
Update input.css 2024-02-14 16:21:42 -06:00
Kaleb Efflandt fdf800eb3d
Update input.css 2024-02-14 16:12:47 -06:00
Kaleb Efflandt 277d8e4af8
Update input.css 2024-02-14 16:09:08 -06:00
Kaleb Efflandt c6e05deda8
Update input.css 2024-02-14 14:40:01 -06:00
Kaleb Efflandt 4ab66d41f2
Update base.css 2024-02-14 14:38:33 -06:00
Kaleb Efflandt 8782e2567c
Update base.css 2024-02-14 14:34:49 -06:00
Kaleb Efflandt 2aec9724ff
Update base.css 2024-02-14 14:07:29 -06:00
Kaleb Efflandt 9c030951a9
Update base.css 2024-02-14 13:51:24 -06:00
Kaleb Efflandt c2b7e43cbf
Update base.css 2024-02-14 01:43:59 -06:00
Kaleb Efflandt 0a8f7d2ff7
Update base.css 2024-02-14 01:34:33 -06:00
Kaleb Efflandt 4f372c0c77
Update base.css 2024-02-14 01:29:55 -06:00
Kaleb Efflandt d9e0d247c2
Update base.css 2024-02-14 01:13:54 -06:00
Kaleb Efflandt b3ba9aba1c
Update base.css 2024-02-14 01:12:22 -06:00
Kaleb Efflandt 9d2a0d9f5e
Update base.css 2024-02-14 01:05:11 -06:00
Kaleb Efflandt c966637c53
Update base.css 2024-02-14 00:41:54 -06:00
Kaleb Efflandt 88ca0be570
Update base.css 2024-02-14 00:25:47 -06:00
Kaleb Efflandt d1795c47b6
Update base.css 2024-02-14 00:06:57 -06:00
Kaleb Efflandt 76975f8669
Update base.css 2024-02-13 23:30:47 -06:00
Kaleb Efflandt 1d2c6a1dae
Update base.css 2024-02-13 23:13:50 -06:00
Kaleb Efflandt 0975a3a955
Update base.css 2024-02-13 22:43:19 -06:00
Kaleb Efflandt 309616400a
Update base.css 2024-02-13 22:28:44 -06:00
Kaleb Efflandt cf0f51d18e
Update base.css 2024-02-13 19:07:10 -06:00
Samuel Mannehed 8decca7353 Use unitless numbers for line-height values
Using <length> type values for line-height can give unexpected
inheritance behaviors. If using <length> values, the inherited
line-height on children is calculated using the font-size of the parent.
What we want is for the line-height of children to be calculated using
it's own font-size.

By instead using a unitless number, we get the behavior we want. Note
that this bug has no effects right now since no children to any of the
related elements have different font-sizes.
2023-03-23 11:06:03 +01:00
Samuel Mannehed 4558104196 Properly center the checkbox checkmark
Using a flexbox we can easily center the checkmark without using hard
coded positions.
2023-03-23 11:06:03 +01:00
Samuel Mannehed 5b7d2a622e Fix positioning of checkbox checkmark
Changing the ::after element to be displayed as 'block' lets it be
positioned using relative. This means we can remove the confusing
"position: relative" from the checkbox.
2023-01-02 14:46:33 +01:00
Samuel Mannehed 820b39c7d3 Reinstate outer div of noVNC_connect_button
There were two issues with removing the outer div of the connect button.

Firstly, rounded outlines don't work in WebKit browsers like Safari or
Epiphany (https://bugs.webkit.org/show_bug.cgi?id=20807) and this makes
the outline look completely square.

Secondly the code became too complex.

This reverts most of commit 05baf14256.
2022-12-23 13:44:58 +01:00
Samuel Mannehed 2b449b208e Get rid of WebKit's button top margin
It conflicts with our :active styling since it changes margin-top.
2022-12-23 13:44:57 +01:00
Samuel Mannehed ec45911456 Don't show virtual keyboard button in webkit
Webkit browsers don't support Media Queries 4, which means we have to
use a slightly convoluted syntax when writing "@media not...". Otherwise
the "(any-pointer: coarse)" part evaluates as the device part of the
query.
2022-12-22 10:22:34 +01:00
Samuel Mannehed 4fb2d6c497 Add FIXME for virtual keyboard button on touch
The way we decide whether to show the keyboard button or not is not
ideal, let's add a FIXME for that.
2022-12-15 14:33:12 +01:00
Samuel Mannehed d8b3ec99fa Use "initial" for displaying handle touch area
Our intentions are clearer if we set "display" to "initial" rather than
"unset" when we want to enable the touch area for the control bar
handle.
2022-12-15 14:09:56 +01:00
Samuel Mannehed 05baf14256 Remove outer div from noVNC_connect_button
Instead of having an outer "box", we can use an outline on the button
itself to create this "platform". Since the outline isn't part of the
size of the element, it will appear wider than before, when compared to
the logo. To counteract that we remove the left and right padding from
the logo to make the entire noVNC_connect_dlg more narrow.

We also had to slightly adjust the :active style since we don't want the
entire "platform" to move when the button is clicked.
2022-12-15 10:44:27 +01:00
Samuel Mannehed f1550c69d9 Get rid of noVNC_touch in favor for @media queries
This commit removes our dependency on the class "noVNC_touch" which was
set by Javascript. Instead, we can use the CSS media query
"any-pointer: coarse", which means that any pointing device that isn't
accurate is available. In practice this seems to basically be equal to
that a touch screen is available.

This change lets us simplify the selectors in many cases as well, which
is a nice bonus.
2022-12-14 14:06:16 +01:00
Samuel Mannehed 6d7d45ba08 Ensure arrow doesn't change on disabled <select>
We can't just modify the CSS variable here, since that is also used in
the style for :disabled. We need to change the entire "background-image"
in order for :disabled to be able to override it.
2022-12-14 13:58:49 +01:00
Samuel Mannehed f983c78d17 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.
2022-12-14 13:28:27 +01:00
Samuel Mannehed 1ff035c330 Add comment explaining the handle touch area 2022-12-14 11:18:46 +01:00
Samuel Mannehed 333e075d7b Get rid of Chrome's blue touch tap highlight
When tapping our buttons using a touch screen in Chrome, we get an ugly
blue overlay. Let's remove this since we have our own :active styles.
2022-12-13 15:38:25 +01:00
Samuel Mannehed 6e1eec3025 Separate the disabling of :hover for touch
This is a corner case which shouldn't need to complicate things for the
regular usecases.
2022-12-13 15:23:31 +01:00