2019-12-18 21:25:03 +00:00
|
|
|
/* On-screen Keyboard */
|
|
|
|
|
|
|
|
$key_size: 1.2em;
|
|
|
|
$key_border_radius: $base_border_radius + 3px;
|
|
|
|
$key_bg_color: $bg_color;
|
2020-02-20 13:08:34 +00:00
|
|
|
$default_key_bg_color: darken($bg_color, 2%);
|
2019-12-18 21:25:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
// draw keys using button function
|
|
|
|
#keyboard {
|
2020-02-20 13:08:34 +00:00
|
|
|
background-color: $bg_color;
|
|
|
|
box-shadow: inset 0 1px 0 0 $borders_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
.page-indicator {
|
|
|
|
padding: $base_padding;
|
|
|
|
|
|
|
|
.page-indicator-icon {
|
2019-12-19 20:56:45 +00:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
2019-12-19 15:38:27 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// the container for individual keys
|
|
|
|
.key-container {
|
2019-12-19 15:38:27 +00:00
|
|
|
padding: $base_margin;
|
|
|
|
spacing: $base_margin;
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// the keys
|
|
|
|
.keyboard-key {
|
2019-12-19 15:38:27 +00:00
|
|
|
|
|
|
|
@include button(normal, $c:$key_bg_color);
|
|
|
|
|
|
|
|
&:focus { @include button(focus);}
|
|
|
|
&:hover, &:checked { @include button(hover, $c: $key_bg_color);}
|
|
|
|
&:active { @include button(active, $c: $key_bg_color); }
|
|
|
|
|
2019-12-19 16:09:33 +00:00
|
|
|
@include fontsize($base_font_size + 5);
|
2019-12-19 15:38:27 +00:00
|
|
|
min-height: $key_size;
|
|
|
|
min-width: $key_size;
|
2020-01-14 18:09:03 +00:00
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
2019-12-19 15:38:27 +00:00
|
|
|
border-radius: $key_border_radius;
|
|
|
|
|
|
|
|
&:grayed { //FIXMEy
|
|
|
|
background-color: darken($bg_color, 3%);
|
|
|
|
color: $osd_fg_color;
|
|
|
|
border-color: $osd_borders_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
// non-character keys
|
|
|
|
&.default-key {
|
|
|
|
@include button(normal, $c:$default_key_bg_color);
|
|
|
|
&:hover, &:checked {@include button(hover, $c: $default_key_bg_color);}
|
|
|
|
&:active { @include button(active, $c: $default_key_bg_color);}
|
|
|
|
}
|
|
|
|
|
|
|
|
// enter key is suggested-action
|
|
|
|
&.enter-key {
|
|
|
|
@include button(normal, $c:$selected_bg_color, $tc:$selected_fg_color);
|
|
|
|
&:hover, &:checked { @include button(hover, $c: lighten($selected_bg_color, 3%));}
|
|
|
|
&:active {@include button(active, $c: darken($selected_bg_color, 2%));}
|
|
|
|
}
|
|
|
|
|
2020-02-15 14:49:43 +00:00
|
|
|
&.shift-key-uppercase { color: $selected_bg_color }
|
|
|
|
|
|
|
|
StIcon { icon-size: 1.125em; }
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// long press on a key popup
|
|
|
|
.keyboard-subkeys {
|
2020-02-20 13:08:34 +00:00
|
|
|
color: $fg_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
-arrow-border-radius: $modal_radius;
|
2020-02-20 13:08:34 +00:00
|
|
|
-arrow-background-color: $bg_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
-arrow-border-width: 1px;
|
2020-02-20 13:08:34 +00:00
|
|
|
-arrow-border-color: $borders_color;
|
2019-12-19 15:38:27 +00:00
|
|
|
-arrow-base: 20px;
|
|
|
|
-arrow-rise: 10px;
|
|
|
|
-boxpointer-gap: $base_spacing;
|
|
|
|
|
|
|
|
.keyboard-key {
|
|
|
|
@include button(normal, $c:$key_bg_color);
|
|
|
|
|
|
|
|
&:focus { @include button(focus);}
|
|
|
|
&:hover, &:checked { @include button(hover, $c: $key_bg_color);}
|
|
|
|
&:active { @include button(active, $c: $key_bg_color); }
|
|
|
|
|
|
|
|
border-radius:$base_border_radius;
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// emoji
|
|
|
|
.emoji-page {
|
2019-12-19 15:38:27 +00:00
|
|
|
.keyboard-key {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
color: initial;
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-panel {
|
2019-12-19 15:38:27 +00:00
|
|
|
.keyboard-key:latched {
|
|
|
|
border-color: lighten($selected_bg_color, 5%);
|
|
|
|
background-color: $selected_bg_color;
|
|
|
|
}
|
2019-12-18 21:25:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// suggestions
|
|
|
|
.word-suggestions {
|
2019-12-19 16:09:33 +00:00
|
|
|
@include fontsize($base_font_size + 3);
|
2019-12-19 15:38:27 +00:00
|
|
|
spacing: 12px;
|
|
|
|
min-height: 20pt;
|
2020-01-25 02:37:16 +00:00
|
|
|
}
|