Skip to content

Commit

Permalink
fix: when setting the --keycap-height above the minimum, actually set…
Browse files Browse the repository at this point in the history
… the keycap height
  • Loading branch information
arnog committed Aug 1, 2023
1 parent c318b56 commit fa65e25
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions css/virtual-keyboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,9 @@ Note there are a different set of tooltip rules for the keyboard toggle
/* @xs breakpoint: iPhone 5 */
@container @xs {
.MLK__rows {
--_keycap-gap: ~"min(var(--_keycap-gap, 2px), 2px)";
--_keycap-height: ~"min(var(--_keycap-height, 42px), 42px)";
--_keycap-max-width: ~"min(var(--_keycap-max-width, 62px), 62px)";
--_keycap-gap: ~"max(var(--_keycap-gap, 2px), 2px)";
--_keycap-height: ~"max(var(--_keycap-height, 42px), 42px)";
--_keycap-max-width: ~"max(var(--_keycap-max-width, 62px), 62px)";
}

// Smaller toolbar switcher labels
Expand All @@ -902,9 +902,9 @@ Note there are a different set of tooltip rules for the keyboard toggle

@container @sm {
.MLK__rows {
--_keycap-gap: ~"min(var(--keycap-gap, 2px), 2px)";
--_keycap-height: ~"min(var(--keycap-height, 52px), 52px)";
--_keycap-max-width: ~"min(var(--keycap-max-width, 62px), 62px)";;
--_keycap-gap: ~"max(var(--keycap-gap, 2px), 2px)";
--_keycap-height: ~"max(var(--keycap-height, 52px), 52px)";
--_keycap-max-width: ~"max(var(--keycap-max-width, 62px), 62px)";;
}

.MLK__toolbar > div > div {
Expand Down Expand Up @@ -940,9 +940,9 @@ Note there are a different set of tooltip rules for the keyboard toggle
/* Medium breakpoint: larger phones */
@container @md {
.MLK__rows {
// --_keycap-gap: ~"min(var(--keycap-gap), 2px)";
--_keycap-height: ~"min(var(--keycap-height, 42px), 42px)";
// --_keycap-max-width: ~"min(var(--_keycap-max-width), 62px)";;
// --_keycap-gap: ~"max(var(--keycap-gap), 2px)";
--_keycap-height: ~"max(var(--keycap-height, 42px), 42px)";
// --_keycap-max-width: ~"max(var(--_keycap-max-width), 62px)";;
}

.MLK__rows > .row > div > small {
Expand Down

0 comments on commit fa65e25

Please sign in to comment.