mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 10:25:32 +00:00
Fixes #7028. Note that the desktop layout is not currently used by KeymanWeb. The designer has a number of additional issues, as the .keyman-touch-layout format is not well suited to describing a fixed hardware layout, but fixing this is outside the scope of this issue.
673 lines
No EOL
11 KiB
CSS
673 lines
No EOL
11 KiB
CSS
@font-face {
|
|
font-family: KeymanwebOsk;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
src: url('keymanweb-osk.ttf') format('truetype');
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#selKeyCapType,
|
|
#selSubKeyCapType {
|
|
font-family: KeymanwebOsk, Tahoma;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
body {
|
|
font-family: Tahoma;
|
|
font-size: 18pt;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: 152px 1fr;
|
|
}
|
|
|
|
.ui-dialog {
|
|
font-size: 9pt;
|
|
}
|
|
|
|
#platform-style {
|
|
float: left;
|
|
font-size: 9pt;
|
|
padding: 32px 24px;
|
|
margin-top: 16px;
|
|
border: 1px solid #dddddd;
|
|
}
|
|
|
|
#kbd.tablet-ipad-landscape {
|
|
background: url('tablet-ipad-landscape.png') no-repeat white;
|
|
background-position: 0px -390px;
|
|
background-attachment: scroll;
|
|
padding-top: 30px;
|
|
padding-left: 97px;
|
|
padding-bottom: 88px;
|
|
padding-right: 108px;
|
|
width: 1024px;
|
|
}
|
|
|
|
#kbd.tablet-ipad-portrait {
|
|
background: url('tablet-ipad-portrait.png') no-repeat white;
|
|
background-position: 0px -562px;
|
|
background-attachment: scroll;
|
|
padding-top: 34px;
|
|
padding-left: 99px;
|
|
padding-bottom: 98px;
|
|
padding-right: 168px;
|
|
width: 800px;
|
|
}
|
|
|
|
#kbd.phone-iphone5-landscape {
|
|
background: url('phone-iphone5-landscape.png') no-repeat white;
|
|
background-position: 0px -186px;
|
|
background-attachment: scroll;
|
|
padding-left: 144px;
|
|
padding-bottom: 40px;
|
|
padding-top: 66px;
|
|
padding-right: 88px;
|
|
width: 1042px;
|
|
}
|
|
|
|
#kbd.phone-iphone5-portrait {
|
|
background: url('phone-iphone5-portrait.png') no-repeat white;
|
|
background-position: 0px -800px;
|
|
background-attachment: scroll;
|
|
padding-left: 92px;
|
|
padding-bottom: 170px;
|
|
padding-top: 70px;
|
|
padding-right: 116px;
|
|
width: 200px;
|
|
}
|
|
|
|
.toolbar-item {
|
|
display: grid;
|
|
grid-template-columns: 90px 1fr;
|
|
vertical-align: baseline;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.toolbar-item.toolbar-single-column {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.toolbar-item.toolbar-2-small-buttons {
|
|
grid-template-columns: 1fr 24px 24px;
|
|
column-gap: 4px;
|
|
}
|
|
|
|
.toolbar-item label {
|
|
padding: 0.75em 0;
|
|
}
|
|
|
|
.toolbar-item select,
|
|
.toolbar-item input,
|
|
.toolbar-item button {
|
|
padding: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
.toolbar-item button.emoji-button {
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.key-droppable
|
|
{
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
display: inline-block;
|
|
border-radius: 4px;
|
|
width: 0px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.key-droppable.key-current {
|
|
border: solid 1px #cccccc;
|
|
background: #eeeeee;
|
|
}
|
|
|
|
.key-droppable-hover {
|
|
border: solid 1px #cccccc;
|
|
margin-left: 3px;
|
|
width: 75px;
|
|
background: #eeffee;
|
|
}
|
|
|
|
.key-dragging
|
|
{
|
|
background: #cccccc !important;
|
|
}
|
|
|
|
.key,
|
|
.key-placeholder {
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 38px;
|
|
padding-top: 8px;
|
|
cursor: default;
|
|
border: solid 1px #cccccc;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
background: white;
|
|
vertical-align: top;
|
|
overflow: hidden;
|
|
position: relative;
|
|
left: 0; top: 0;
|
|
}
|
|
|
|
.key-placeholder {
|
|
border-radius: 24px;
|
|
border-color: #cccccc;
|
|
color: #cccccc;
|
|
}
|
|
|
|
.key-placeholder:hover {
|
|
background: #80ff80;
|
|
color: rgb(75, 185, 75);
|
|
border-color: rgb(75, 185, 75);
|
|
box-shadow: 0px 0px 20px rgba(75, 185, 75, 0.5);
|
|
}
|
|
|
|
.key .id {
|
|
font-family: Tahoma;
|
|
font-size: 10px;
|
|
color: #8080f0;
|
|
position: absolute;
|
|
bottom: 4px;
|
|
right: 3px;
|
|
text-align: right;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.key .underlying {
|
|
font-family: Tahoma;
|
|
font-size: 10px;
|
|
color: #666666;
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 4px;
|
|
text-align: left;
|
|
}
|
|
|
|
.key .hint {
|
|
font-size: 12px;
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 4px;
|
|
text-align: right;
|
|
}
|
|
|
|
.key .hint.custom-hint {
|
|
color: #0cb901;
|
|
}
|
|
|
|
.key.key-modifier .id {
|
|
color: #808080;
|
|
}
|
|
|
|
.has-multitap {
|
|
background: no-repeat url('multitap.svg') 0 0 / 100%;
|
|
position: absolute;
|
|
right: 2px;
|
|
bottom: 12px;
|
|
width: 10px;
|
|
height: 6px;
|
|
}
|
|
|
|
.has-longpress {
|
|
background: no-repeat url('longpress.svg') 0 0 / 100%;
|
|
position: absolute;
|
|
margin-left: 50%;
|
|
left: -5px;
|
|
top: 1px;
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
/* If we have both flick-n and longpress, we need to move the longpress icon down */
|
|
.has-flick-n ~ .has-longpress {
|
|
top: 5px;
|
|
}
|
|
|
|
.has-flick {
|
|
position: absolute;
|
|
display: block;
|
|
width: 5px;
|
|
height: 5px;
|
|
}
|
|
|
|
.has-flick-nw {
|
|
background:no-repeat url('flick-nw.svg') 0 0 / 100%;
|
|
left: 1px;
|
|
top: 1px;
|
|
}
|
|
|
|
.has-flick-n {
|
|
background:no-repeat url('flick-n.svg') 0 0 / 100%;
|
|
left: 50%;
|
|
margin-left: -2.5px;
|
|
top: 1px;
|
|
}
|
|
|
|
.has-flick-ne {
|
|
background:no-repeat url('flick-ne.svg') 0 0 / 100%;
|
|
right: 1px;
|
|
top: 1px;
|
|
}
|
|
|
|
.has-flick-w {
|
|
background:no-repeat url('flick-w.svg') 0 0 / 50%;
|
|
left: 1px;
|
|
top: 50%;
|
|
width: 7.5px;
|
|
height: 7.5px;
|
|
margin-top: -2.5px;
|
|
}
|
|
|
|
.has-flick-e {
|
|
background:no-repeat url('flick-e.svg') 0 0 / 50%;
|
|
right: -1px;
|
|
top: 50%;
|
|
width: 7.5px;
|
|
height: 7.5px;
|
|
margin-top: -2.5px;
|
|
}
|
|
|
|
.has-flick-sw {
|
|
background:no-repeat url('flick-sw.svg') 0 0 / 100%;
|
|
left: 1px;
|
|
bottom: 1px;
|
|
}
|
|
|
|
.has-flick-s {
|
|
background:no-repeat url('flick-s.svg') 0 0 / 100%;
|
|
left: 50%;
|
|
margin-left: -2.5px;
|
|
bottom: -1px;
|
|
}
|
|
|
|
.has-flick-se {
|
|
background:no-repeat url('flick-se.svg') 0 0 / 100%;
|
|
right: 1px;
|
|
bottom: 1px;
|
|
}
|
|
|
|
.key:hover {
|
|
background: #e0e0ff;
|
|
color: #8080ff;
|
|
border-color: #8080ff !important;
|
|
box-shadow: 0px 0px 20px rgba(150, 150, 255, 0.5);
|
|
}
|
|
|
|
.key.selected {
|
|
background: #d0d0ff;
|
|
border-color: #4040ff !important;
|
|
box-shadow: 0px 0px 20px rgba(100, 100, 255, 0.5);
|
|
}
|
|
|
|
.row {
|
|
clear:left;
|
|
line-height: 1;
|
|
position: relative;
|
|
}
|
|
|
|
#sub-key-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 250px;
|
|
white-space: nowrap;
|
|
border-bottom: solid 1px black;
|
|
border-top: solid 1px black;
|
|
}
|
|
|
|
#sub-key-groups > div,
|
|
#subKeyToolbar {
|
|
background-color: white;
|
|
}
|
|
|
|
#sub-key-groups {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
column-gap: 1px;
|
|
background-color: black;
|
|
}
|
|
|
|
#longpress,
|
|
#multitap {
|
|
padding: 8px;
|
|
margin: 0px 0px 8px;
|
|
min-height: 64px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#longpress,
|
|
#multitap,
|
|
#flick {
|
|
padding: 8px 0 8px 8px;
|
|
min-width: 256px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#longpress .key-placeholder,
|
|
#multitap .key-placeholder {
|
|
order: 1;
|
|
}
|
|
|
|
#kbd-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 250px;
|
|
}
|
|
|
|
#kbd-scroll-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
#kbd {
|
|
padding: 8px;
|
|
margin: 0px 0px 8px;
|
|
background: #eeeeee;
|
|
white-space: nowrap;
|
|
min-width: 770px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#longpress .key,
|
|
#flick .key,
|
|
.key-placeholder,
|
|
#multitap .key {
|
|
height: 48px;
|
|
margin-left: 3px;
|
|
}
|
|
|
|
#longpress .key,
|
|
#flick .key,
|
|
#multitap .key {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
#flick {
|
|
display: grid;
|
|
grid-template-columns: max-content max-content max-content;
|
|
padding: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
#longpress .key,
|
|
#flick .key,
|
|
#multitap .key,
|
|
.key-placeholder {
|
|
width: 70px;
|
|
margin-right: 6px;
|
|
margin-bottom: 6px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.key-placeholder#flick-center,
|
|
.key-placeholder#flick-center:hover {
|
|
background-color: #cccccc;
|
|
border-color: #cccccc;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.key-modifier { background: #dddddd; }
|
|
.key-modifier-selected { background: #ddddff; }
|
|
.key-deadkey { color: #000080; }
|
|
.key-blank { background: #eeeeee; }
|
|
.key-spacer { background: #f8f8f8; border-color: #eeeeee; }
|
|
|
|
/* Select image font for special function keys */
|
|
.key-special-text,.key-modifier,.key-modifier-selected { font-family:KeymanwebOsk; font-size: 0.8em;}
|
|
|
|
|
|
|
|
.ui-autocomplete {
|
|
max-height: 100px;
|
|
overflow-y: auto;
|
|
/* prevent horizontal scrollbar */
|
|
overflow-x: hidden;
|
|
font-size: 65%
|
|
}
|
|
|
|
br.clear {
|
|
clear: both;
|
|
}
|
|
|
|
#kbd-container,
|
|
#sub-key-container {
|
|
min-width: 1020px;
|
|
}
|
|
|
|
#toolbar div {
|
|
background: #DCDCDD;
|
|
}
|
|
|
|
#toolbar h3 {
|
|
margin: 0;
|
|
padding: 0 0 4px 0;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
#toolbar #controlToolbar > div {
|
|
margin: 4px 0;
|
|
padding: 4px;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
#toolbar #layoutToolbar > div {
|
|
margin: 4px 0;
|
|
padding: 4px;
|
|
border-top: 1px solid #444444;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
button, input, select {
|
|
font: 9pt Tahoma;
|
|
}
|
|
|
|
button {
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
#toolbar, #keyToolbar, #subKeyToolbar {
|
|
background: #DCDCDD;
|
|
font: 9pt Tahoma;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
#keyToolbar, #subKeyToolbar {
|
|
padding: 8px;
|
|
}
|
|
|
|
#data {
|
|
display: none;
|
|
}
|
|
|
|
/* In-line controls */
|
|
|
|
div.wedge-horz, div.wedge-vert {
|
|
cursor: pointer;
|
|
color: black;
|
|
width: 0px;
|
|
height: 0px;
|
|
position: absolute;
|
|
display: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
div.wedge-horz {
|
|
border-top: 8px solid transparent;
|
|
border-right: 0px solid transparent;
|
|
border-bottom: 8px solid transparent;
|
|
border-left: 14px solid #4bb94b;
|
|
}
|
|
|
|
div.wedge-vert {
|
|
border-top: 0px solid transparent;
|
|
border-right: 8px solid transparent;
|
|
border-left: 8px solid transparent;
|
|
border-bottom: 14px solid #4bb94b;
|
|
}
|
|
|
|
div.wedge-horz:hover {
|
|
border-left: 14px solid #00ff00;
|
|
}
|
|
|
|
div.wedge-vert:hover {
|
|
border-bottom: 14px solid #00ff00;
|
|
}
|
|
|
|
div.wedge-horz span, div.wedge-vert span {
|
|
position: relative;
|
|
display: block;
|
|
width: 14px;
|
|
line-height: 1em;
|
|
color: black;
|
|
text-align: center;
|
|
font-family: Calibri;
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
}
|
|
|
|
div.wedge-vert span {
|
|
left: -7px;
|
|
top: 2px;
|
|
}
|
|
|
|
div.wedge-horz span {
|
|
left: -16px;
|
|
top: -6px;
|
|
}
|
|
|
|
div#btnDelKey, div#btnDelSubKey {
|
|
z-index: 100;
|
|
cursor: pointer;
|
|
display: none;
|
|
background: #b94b4b;
|
|
border: 1px solid #b94b4b;
|
|
border-radius: 8px;
|
|
color: #FFFFFF;
|
|
font-family: Tahoma;
|
|
font-size: 10px;
|
|
height: 13px;
|
|
line-height: 8px;
|
|
position: absolute;
|
|
text-align: center;
|
|
width: 13px;
|
|
}
|
|
|
|
div#btnDelKey:hover, div#btnDelSubKey:hover {
|
|
background: #ff0000;
|
|
border: 1px solid #ff0000;
|
|
}
|
|
|
|
body:not(.text-controls-in-toolbar) #key-cap-toolbar-item label,
|
|
body:not(.text-controls-in-toolbar) #sub-key-cap-toolbar-item label {
|
|
display: none;
|
|
}
|
|
|
|
body:not(.text-controls-in-toolbar) input#inpKeyCap,
|
|
body:not(.text-controls-in-toolbar) input#inpSubKeyCap {
|
|
font-size: 24px;
|
|
z-index: 100;
|
|
position: absolute;
|
|
text-align: center;
|
|
border: solid 1px #c0c0c0;
|
|
display: none;
|
|
}
|
|
|
|
.key-size {
|
|
font-family: Calibri;
|
|
position: absolute;
|
|
z-index: 10;
|
|
line-height: 1em;
|
|
}
|
|
|
|
#kbd.phone-iphone5-portrait .key-size {
|
|
left: 567px;
|
|
top: 16px;
|
|
font-size: 8pt;
|
|
color: black;
|
|
}
|
|
|
|
#kbd.phone-iphone5-landscape .key-size {
|
|
left: 737px;
|
|
top: 8px;
|
|
font-size: 8pt;
|
|
color: white;
|
|
}
|
|
|
|
#kbd.tablet-ipad-portrait .key-size {
|
|
left: 607px;
|
|
top: 20px;
|
|
font-size: 8pt;
|
|
color: white;
|
|
}
|
|
|
|
#kbd.tablet-ipad-landscape .key-size {
|
|
left: 836px;
|
|
top: 16px;
|
|
font-size: 9pt;
|
|
color: white;
|
|
}
|
|
|
|
#kbd.desktop .key-size {
|
|
/* the layout is fixed on desktop so key size is not useful */
|
|
display: none;
|
|
}
|
|
|
|
/* Position flick keys relative to the flick grid, by hand */
|
|
|
|
#flick .key {
|
|
position: absolute;
|
|
}
|
|
|
|
.key.flick-nw {
|
|
left: 8px;
|
|
top: 8px;
|
|
}
|
|
|
|
.key.flick-n {
|
|
left: 87px;
|
|
top: 8px;
|
|
}
|
|
|
|
.key.flick-ne {
|
|
left: 166px;
|
|
top: 8px;
|
|
}
|
|
|
|
.key.flick-w {
|
|
left: 8px;
|
|
top: 65px;
|
|
}
|
|
|
|
.key.flick-e {
|
|
left: 166px;
|
|
top: 65px;
|
|
}
|
|
|
|
.key.flick-sw {
|
|
left: 8px;
|
|
top: 122px;
|
|
}
|
|
|
|
.key.flick-s {
|
|
left: 87px;
|
|
top: 122px;
|
|
}
|
|
|
|
.key.flick-se {
|
|
left: 166px;
|
|
top: 122px;
|
|
}
|
|
|
|
.tab {
|
|
font-size: 16px;
|
|
padding: 4px 0 0 4px;
|
|
display: block;
|
|
background: #DCDCDD;
|
|
padding: 4px 8px;
|
|
} |