This repository has been archived by the owner on Nov 23, 2019. It is now read-only.
forked from mozilla-b2g/gaia
/
keyboard.css
964 lines (803 loc) · 22.8 KB
/
keyboard.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
html {
font-size: 10px;
pointer-events: none;
}
body {
margin: 0;
overflow: hidden;
}
button::-moz-focus-inner {
padding: 0;
border: 0;
}
.cache {
position: absolute;
left: 0;
bottom: 0;
z-index: -1;
opacity: 0;
overflow: hidden;
width: 0;
height: 0;
display: none;
}
/* Keyboard */
#keyboard {
position: absolute;
bottom: 0;
z-index: 15;
width: 100%;
border-top: 0.1rem solid #a1a5a8;
background-color: #606b6e;
pointer-events: auto;
visibility: visible;
}
/* Row styles */
.keyboard-row {
text-align: center;
font-size: 0;
}
.row1 {
background-color: #5b6668;
}
.row2 {
background-color: #566063;
}
.row3 {
background-color: #525c5e;
}
.row0 > .keyboard-key > .visual-wrapper > .key-element {
border-right-color: #525b5e;
}
.row1 > .keyboard-key > .visual-wrapper > .key-element {
border-right-color: #4c5657;
}
.row2 > .keyboard-key > .visual-wrapper > .key-element {
border-right-color: #475052;
}
.row3 > .keyboard-key > .visual-wrapper > .key-element {
border-right-color: #434b4d;
}
#keyboard.full-candidate-panel button.keyboard-key {
visibility: hidden;
}
/* Buttons: logic keys */
.keyboard-key {
display: inline-block;
min-width: 2.6rem;
padding: 0;
font-size: 0;
font-family: sans-serif;
border: none;
border-radius: 0; /* To override the system-default border radius for button element */
background: none;
/* In case the keys are nested, for example in the alt char menu,
they need to be tappable. */
pointer-events: auto;
}
/* Visible keys */
.keyboard-key > .visual-wrapper {
display: inline-block;
position: relative;
width: 100%;
height: 4.3rem;
margin: 0.4rem 0;
/* Events must originate from .keyboard-key, not its children elements */
pointer-events: none;
}
/* Standard key styles. */
.keyboard-key > .visual-wrapper > .key-element {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
color: #fff;
font-size: 2.4rem;
line-height: 4.3rem;
font-weight: normal;
text-align: center;
border-right: 0.1rem solid #525b5e;
border-left: 0.1rem solid transparent;
}
.popup {
position: absolute;
top: -5.8rem;
left: calc(50% - 2.8rem);
width: 5.6rem;
height: 5.6rem;
color: #fff;
font-size: 2.8rem;
line-height: 5.6rem;
border-radius: 50%;
background-color: #00aacc;
visibility: hidden;
/* To override the text-align in .float-key-first and .float-key-last */
text-align: center;
}
.keyboard-key.highlighted {
background-color: #4a5255;
}
.keyboard-key:last-child > .visual-wrapper > .key-element {
border-right: transparent;
}
.keyboard-key.highlighted > .visual-wrapper > .key-element {
color: #00caf2;
}
/* Show the bubble text when the button is highlighted. */
.keyboard-key.highlighted > .visual-wrapper > .popup {
z-index: 1;
visibility: visible;
}
/* Special rules for lowercase and uppercase popups */
/* Default is uppercase, so hide the lowercase popup */
.keyboard-key.highlighted > .visual-wrapper > .popup.lowercase {
visibility: hidden;
}
/* For lowercase, hide the uppercase popup and show the lowercase one */
.keyboard-key.highlighted.lowercase > .visual-wrapper > .popup.lowercase {
visibility: visible;
}
.keyboard-key.highlighted.lowercase > .visual-wrapper > .popup.uppercase {
visibility: hidden;
}
.keyboard-row button:last-child.highlighted > .visual-wrapper > .popup {
left: -2.4rem;
}
.keyboard-row button:first-child.highlighted > .visual-wrapper > .popup {
left: 0;
}
/* Special keys */
.keyboard-key.special-key > .visual-wrapper > .key-element {
top: 0;
right: 0;
bottom: 0;
left: 0;
color: #abb0b1;
font: 500 1.5rem/4.3rem 'Keyboard Symbols', sans-serif;
}
/* Highlight for special keys */
.keyboard-key.special-key.highlighted > .visual-wrapper > .key-element {
color: #00b8d6;
}
.keyboard-key.special-key.highlighted > .visual-wrapper:before,
.keyboard-key.special-key.highlighted > .visual-wrapper:after,
.keyboard-key.special-key.highlighted > .visual-wrapper > .popup,
.keyboard-key.highlighted[data-keycode="32"] > .visual-wrapper > .popup,
#keyboard-accent-char-menu .keyboard-key > .visual-wrapper:before {
opacity: 0;
}
/* Switching keys */
.keyboard-key.special-key.switch-key > .visual-wrapper > .key-element {
font-size: 1.8rem;
}
/* Page Switching key - [ABC], [Alt], and [12&] */
.keyboard-key.special-key.page-switch-key > .visual-wrapper > .key-element {
font-size: 1.7rem;
}
/* For disabled keys */
.keyboard-key.special-key[disabled="true"] {
/* Without this rule, the focus would lose when the user clicks this key.
This seems to be because a disabled key would not get touch/click event. */
pointer-events: none;
}
.keyboard-key.special-key[disabled="true"] > .visual-wrapper > .key-element {
color: #677172;
}
/* Special keys - text */
.keyboard-key.special-key.text > .visual-wrapper > .key-element {
font-family: Sans-serif;
}
/* For keyboard layout menu*/
.keyboard-key.special-key.highlighted.kbr-menu-on > .visual-wrapper:before,
.keyboard-key.special-key.highlighted.kbr-menu-on > .visual-wrapper:after {
display: inherit;
}
.keyboard-key.special-key.highlighted.kbr-menu-on .visual-wrapper > .key-element {
font-size: 0;
}
/* Key states */
/* Active key, used for shift key - uppercase */
.keyboard-key.kbr-key-active {
background-color: #00caf2;
}
.keyboard-key.kbr-key-active > .visual-wrapper > .key-element {
color: #fff;
border-right-color: transparent;
}
/* Caps lock case */
.keyboard-key.special-key.kbr-key-hold:not(.highlighted) > .visual-wrapper > .key-element {
color: #00caf2;
}
/* The underline for caps lock */
.keyboard-key.kbr-key-hold:not(.highlighted) > .visual-wrapper {
box-shadow: 0 0.4rem 0 #00caf2;
}
/* Alt menu enabled */
.keyboard-key.highlighted.kbr-menu-on > .visual-wrapper > .key-element {
background: none;
}
.keyboard-key.highlighted.kbr-menu-on > .visual-wrapper > .popup {
display: none;
}
.keyboard-key.pinyin-ch-ellipsis > .visual-wrapper > .key-element {
font-size: 1.6rem;
}
div.zh-encode-switcher-half {
margin-top: -0.8rem;
}
div.zh-encode-switcher {
width: 100%;
height: calc(50%);
padding: 0;
float: left;
font-size: 1.8rem;
}
div.zh-encode-switcher-selected {
color: #00AACC;
}
/* Alternatives menu -- this menu appears when you tap and hold a key that has
alternative special (accented) characters. The menu "grows" out of the key
and displays the list of alternatives. */
#keyboard-accent-char-menu {
position: absolute;
top: -6rem;
font-size: 0;
border-radius: 3rem;
background-color: #00aacc;
overflow: hidden;
text-align: left;
/* Special hack to make the keys in the menu flow upwards. */
transform: rotateX(180deg);
margin-left: -1.0rem; /* because the last child is wider than others */
}
#keyboard-accent-char-menu.kbr-menu-left {
left: auto;
/* because the last child is wider than others, shift 1 pixel to align with
* the key row. */
margin-right: -0.9rem;
}
#keyboard-accent-char-menu.left-edge {
margin-left: 0.4rem;
}
#keyboard-accent-char-menu.right-edge {
margin-right: 0.4rem;
}
/* Non keyboard key styles in menu */
#keyboard-accent-char-menu .keyboard-key {
transform: rotateX(180deg);
float: left;
}
#keyboard-accent-char-menu.kbr-menu-left .keyboard-key {
float: right;
}
/* if it is the first or last key in the accent menu make it wider */
#keyboard-accent-char-menu .keyboard-key:first-child,
#keyboard-accent-char-menu .keyboard-key:last-child {
min-width: 4.2rem;
}
/*
* If it is the first and the last key in the accent menu, it means that
* there is only one and we need to make it wider still so we get a round
* menu
*/
#keyboard-accent-char-menu .keyboard-key:first-child:last-child {
min-width: 6rem;
}
#keyboard-accent-char-menu .keyboard-key > .visual-wrapper {
height: 6rem;
margin: 0;
}
#keyboard-accent-char-menu .keyboard-key > .visual-wrapper .key-element {
background: none;
border-radius: 0;
border-right: 1px solid #008eab;
}
#keyboard-accent-char-menu .keyboard-key.highlighted > .visual-wrapper:after,
#keyboard-accent-char-menu .keyboard-key.highlighted > .visual-wrapper > .popup {
display: none;
}
/* Styles for keys in accent menu (not highlighted). */
#keyboard-accent-char-menu .keyboard-key > .visual-wrapper > .key-element {
line-height: 6rem;
font-weight: 500;
color: #fff;
}
#keyboard-accent-char-menu .keyboard-key:first-child > .visual-wrapper > .key-element {
padding-left: 0.5rem;
}
#keyboard-accent-char-menu .keyboard-key:last-child > .visual-wrapper > .key-element {
padding-right: 0.5rem;
}
#keyboard-accent-char-menu.kbr-menu-left .keyboard-key > .visual-wrapper > .key-element {
border-left: 1px solid #008eab;
border-right: 0;
}
#keyboard-accent-char-menu.kbr-menu-left .keyboard-key:first-child > .visual-wrapper > .key-element {
padding-right: 0.5rem;
padding-left: 0;
}
#keyboard-accent-char-menu.kbr-menu-left .keyboard-key:last-child > .visual-wrapper > .key-element {
padding-left: 0.5rem;
padding-right: 0;
}
/* Highlighted special accent characters. These keys appear in the popover
bubble above the key when you tap and hold. */
#keyboard-accent-char-menu .keyboard-key.highlighted > .visual-wrapper > .key-element {
background-color: #008eab;
}
/* Multi-row menu styles */
#keyboard-accent-char-menu.multi-row {
border-radius: 0.2rem;
margin-left: 0;
background-color: #00a1c2;
}
#keyboard-accent-char-menu.multi-row::before {
content: '';
background-color: #19a8c2;
width: 100%;
height: 50%;
bottom: 0;
left: 0;
position: absolute;
}
#keyboard-accent-char-menu.multi-row.kbr-menu-left {
/* To make the divider align the key row */
margin-right: 1px;
}
/* revert the expanded width because it won't have rounded corner */
#keyboard-accent-char-menu.multi-row .keyboard-key:first-child,
#keyboard-accent-char-menu.multi-row .keyboard-key:last-child {
min-width: 2.6rem;
}
#keyboard-accent-char-menu.multi-row .keyboard-key:first-child > .visual-wrapper > .key-element,
#keyboard-accent-char-menu.multi-row .keyboard-key:last-child > .visual-wrapper > .key-element {
padding-left: 0;
padding-right: 0;
}
/*
* Reset the margin used to align with the underneath key row, this is because
* generally, the key in alternatives char menu would have the same width as a
* normal key.
*/
#keyboard.landscape #keyboard-accent-char-menu {
margin-left: 0;
}
#keyboard.landscape #keyboard-accent-char-menu.kbr-menu-left {
/* Shift 1 pixel to align with the key row. */
margin-right: 0.1rem;
}
#keyboard.full-candidate-panel {
padding-top: 3.4rem;
}
.keyboard-candidate-panel {
display: block;
background: #252220;
padding: 0;
margin: 0.2rem 0 0.2rem 0;
border: none;
border-top: 0.1rem solid #000000;
border-bottom: 0.1rem solid #000000;
height: 2.8rem;
width: 100%;
overflow: hidden;
white-space: normal;
}
#keyboard.full-candidate-panel .keyboard-candidate-panel {
overflow-y: auto;
position: absolute;
top: 0.1rem;
height: -moz-calc(100% - 0.4rem);
z-index: 1;
margin: 0.1rem 0 0.2rem 0;
}
.keyboard-candidate-panel-toggle-button {
display: none;
z-index: 1;
position: absolute;
right: 0;
top: 0.25rem;
font-size: 0;
height: 2.8rem;
background: #252220 url('images/icon_extend.png') center center no-repeat;
background-size: 2.4rem;
}
#keyboard.full-candidate-panel .keyboard-candidate-panel-toggle-button {
background-image: url('images/icon_close.png');
}
.keyboard-candidate-panel .candidate-row {
border-top: 0.1rem solid #000000;
}
.keyboard-candidate-panel .candidate-row-first {
border-top: none;
}
#keyboard.candidate-panel .keyboard-candidate-panel .candidate-row {
display: none;
}
#keyboard.candidate-panel .keyboard-candidate-panel .candidate-row-first {
display: block;
}
.keyboard-candidate-panel-toggle-button.highlighted,
.keyboard-candidate-panel .candidate-row span.highlighted {
background-color: #008eab;
color: #333333;
}
.keyboard-candidate-panel .candidate-row span {
display: inline-block;
margin: 0;
padding: 0 2px 0 0;
min-width: -moz-calc(4rem - 2px);
height: 2.8rem;
font-size: 2rem;
color: #a6a6a6;
text-align: center;
line-height: 2.8rem;
background: transparent url('images/divider.png') right center no-repeat;
background-size: auto 4rem;
border: none;
}
.keyboard-candidate-panel.vietnamese .candidate-row span {
font-size: 1.7rem;
}
/* for latin suggestions we don't need such a tall box */
/* and in latin we hide the toggle button, so we can be full-width */
.candidate-panel .keyboard-candidate-panel.latin {
display: block;
white-space: nowrap;
height: 3rem;
width: 100%;
background: #333;
margin: -0.6rem 0 0 0; /* I don't know why we need the top margin */
border: none;
border-bottom: 0.1rem solid #a0a6a8;
overflow: hidden;
}
.full-candidate-panel .keyboard-candidate-panel[data-truncated]::after {
content: '…';
background: none ! important;
border-color: transparent ! important;
display: block;
text-align: center;
margin: 0;
height: 2.8rem;
font-size: 2rem;
color: #a6a6a6;
line-height: 2.8rem;
}
.keyboard-candidate-panel.latin span {
display: inline-block;
font-size: 2.0rem;
font-weight: normal;
line-height: 3rem;
height: 3rem;
border: 0;
margin: 0;
padding: 0;
background: none;
color: #fff;
text-align: center;
overflow: hidden;
white-space: nowrap;
width: 100%;
}
.keyboard-candidate-panel.latin span.autocorrect {
color: #0ac;
}
/*
* Don't display the toggle button for latin suggestions.
* For now, at least, we only ever get 3 at a time
*/
#keyboard.candidate-panel .keyboard-candidate-panel-toggle-button.latin {
display: none;
}
.keyboard-candidate-panel span[data-active],
.keyboard-candidate-panel-toggle-button[data-active] {
background: -moz-linear-gradient(bottom, rgb(191,191,183) 10%, rgb(161,158,153) 90%);
}
/* A note to show on the key to indicate the alternative char */
.alt-note {
position: absolute;
top: 0.5rem;
color: #a6a6a6;
font: 1.6rem/1.6rem "Keyboard Symbols", sans-serif;
}
.keyboard-key.highlighted .alt-note {
visibility: hidden;
}
.keyboard-key.big-key > .visual-wrapper .key-element {
font-size: 3.2rem;
font-weight: normal;
color: #fff;
}
.keyboard-key.big-key .visual-wrapper .alt-note {
width: 100%;
text-align: center;
text-indent: 4rem;
font-size: 1.6rem;
top: 0.2rem;
padding-left: 1rem;
color: #a6a6a6;
}
.keyboard-key.big-key.highlighted .alt-note {
visibility: visible;
}
/* Increase tap area for first / last keys in a row that
doesn't fill full width */
.keyboard-key.float-key-first {
text-align: right;
}
.keyboard-key.float-key-last {
text-align: left;
}
#keyboard.landscape .keyboard-key > .visual-wrapper > .key-element {
font-size: 2.8rem
}
#keyboard.landscape .keyboard-key.special-key > .visual-wrapper > .key-element {
font: 500 2.1rem/4.3rem 'Keyboard Symbols', sans-serif;
}
#keyboard.landscape .keyboard-key.highlighted > .visual-wrapper > .popup {
top: -7rem;
left: calc(50% - 3.5rem);
width: 7rem;
height: 7rem;
line-height: 7rem;
font-size: 3.5rem
}
.suggestions-container {
display: none;
}
.dismiss-suggestions-button {
visibility: hidden;
}
/*
* Styles for the dismiss suggestions button in the candidate panel
*/
.keyboard-candidate-panel.latin > .dismiss-suggestions-button {
display:inline-block;
height: 100%;
/*
* the icon is 2.4rem wide but the visual space only takes up 1.4rem
* we want 10 blank pixels to the left and 15 to the right. But the first
* suggestion has a 0.3rem margin, so we only need to add 1.2rem to the
* icon size.
*/
width: 3.6rem;
background: url('images/icon_dismiss.png') 0.5rem center /2.4rem no-repeat;
margin: 0;
padding: 0;
float: left;
visibility: visible;
}
.keyboard-candidate-panel.latin > .dismiss-suggestions-button.hide {
visibility: hidden;
}
.keyboard-candidate-panel.latin > .suggestions-container {
display: block;
width: calc(100% - 3.6rem);
float: left;
}
.keyboard-candidate-panel.latin > .suggestions-container > div {
text-align: center;
display: inline-block;
height: 100%;
margin: 0 0.3rem;
padding: 0;
border: 0;
overflow: hidden;
-moz-box-sizing: border-box;
}
.keyboard-candidate-panel.latin > .suggestions-container.has1 > div {
width: calc(100% - 0.6rem);
}
.keyboard-candidate-panel.latin > .suggestions-container.has2 > div {
width: calc(50% - 0.6rem);
}
.keyboard-candidate-panel.latin > .suggestions-container.has3 > div {
width: calc(33% - 0.6rem);
}
/* Indicator for keyboard hiding action */
.keyboard-key[data-keycode="32"] {
background: url('images/icon_hide_keyboard.png') right 0.4rem top 0.4rem / 1.6rem no-repeat;
}
.keyboard-key.highlighted[data-keycode="32"] {
background-color: #4a5255;
}
/* Indicator for alternate indicator */
.alternate-indicator {
background: url('images/icon_alternate_keyboard.png') left 50% bottom 0.4rem / 1.4rem no-repeat;
}
.search-icon {
background: url('images/icon_search.png') left calc(50% - 0.1rem) bottom 1.2rem / 3rem no-repeat;
}
/* hide actual text for search-icon */
.keyboard-key.search-icon > .visual-wrapper > .key-element,
.keyboard-key.search-icon.highlighted > .visual-wrapper > .key-element {
color: transparent;
}
/*
* Specific layout rules; When a layoutX.js has specificCssRule set to true
* you can use layout name (Example: ar for Arabic) as a class name.
* This is useful is cases where characters are outlining their containers.
*/
/* Arabic */
.ar .keyboard-key > .visual-wrapper > .key-element {
font-size: 1.8rem;
}
.keyboard-key > .visual-wrapper > span[data-label="ض"],
.keyboard-key > .visual-wrapper > span[data-label="ش"]{
margin-left:-.5rem;
}
.keyboard-key > .visual-wrapper > span[data-label="س"]{
margin-left:-.2rem;
}
.keyboard-key > .visual-wrapper > span[data-label="ص"]{
margin-left:-.1rem;
}
/* Bangla Probhat */
.keyboard-key > .visual-wrapper > span[data-label="ো"] {
font-size: 1.6rem;
}
.keyboard-key > .visual-wrapper > span[data-label="া"] {
font-size: 1.7rem;
}
/* Hindi */
.keyboard-key.hindi > .visual-wrapper > span[data-label="औ"],
.keyboard-key.hindi > .visual-wrapper > span[data-label="आ"],
.keyboard-key.hindi > .visual-wrapper > span[data-label="ओ"],
.keyboard-key.hindi > .visual-wrapper > span[data-label="ऑ"] {
font-size: 2rem;
}
/* Tamil */
.keyboard-key.tamil > .visual-wrapper > .popup {
width: auto;
min-width: 4.4rem;
padding-left: 0.6rem;
padding-right: 0.6rem;
border-radius: 2.8rem;
}
.keyboard-row button:last-child.tamil.highlighted >
.visual-wrapper > .popup {
left: auto;
right: 0;
}
/* Zhuyin */
.zh-Hant-Zhuyin .keyboard-key:not(.special-key) > .visual-wrapper > .key-element {
font-size: 2rem;
}
.zh-Hant-Zhuyin .keyboard-row.row0 {
background-color: #636e71;
}
.zh-Hant-Zhuyin .keyboard-row.row1 {
background-color: #5e696c;
}
.zh-Hant-Zhuyin .keyboard-row.row2 {
background-color: #5b6668;
}
.zh-Hant-Zhuyin .keyboard-row.row3 {
background-color: #566063;
}
.zh-Hant-Zhuyin .keyboard-row.row4 {
background-color: #525b5e;
}
.zh-Hant-Zhuyin .keyboard-row.row4 > .keyboard-key > .visual-wrapper > .key-element {
border-right-color: #434b4d;
}
/* With symbols on the bottom */
.keyboard-key.bottom-symbol > .visual-wrapper:after {
content: '';
display: block;
bottom: 0;
position: absolute;
width: 100%;
text-align: center;
font-size: 1.2rem;
color: #a6a6a6;
margin-bottom: -0.3rem;
}
.keyboard-key.bottom-symbol.highlighted > .visual-wrapper:after {
opacity: 1;
}
.keyboard-key.bottom-symbol[data-keycode="50"] > .visual-wrapper:after {
content: 'ABC';
}
.keyboard-key.bottom-symbol[data-keycode="51"] > .visual-wrapper:after {
content: 'DEF';
}
.keyboard-key.bottom-symbol[data-keycode="52"] > .visual-wrapper:after {
content: 'GHI';
}
.keyboard-key.bottom-symbol[data-keycode="53"] > .visual-wrapper:after {
content: 'JKL';
}
.keyboard-key.bottom-symbol[data-keycode="54"] > .visual-wrapper:after {
content: 'MNO';
}
.keyboard-key.bottom-symbol[data-keycode="55"] > .visual-wrapper:after {
content: 'PQRS';
}
.keyboard-key.bottom-symbol[data-keycode="56"] > .visual-wrapper:after {
content: 'TUV';
}
.keyboard-key.bottom-symbol[data-keycode="57"] > .visual-wrapper:after {
content: 'WXYZ';
}
/* All keys except 0 should be move up to 2px. */
.keyboard-key.bottom-symbol:not([data-keycode="48"]) > .visual-wrapper > .key-element {
top: -0.2rem;
}
/* We need to put '*' in the middle, so its top is set top 8px. */
.keyboard-key.bottom-symbol > .visual-wrapper > .key-element[data-label="*"] {
top: 0.8rem;
}
/* Based on UI spec, [Backspace] is put in middle and 16px size. */
.keyboard-key.bottom-symbol[data-keycode="8"] > .visual-wrapper > .key-element {
top: 0;
font-size: 1.6rem;
}
/* Based on UI spec, alt-note '+' is set bigger. */
.keyboard-key.bottom-symbol[data-keycode="48"] > .visual-wrapper > .alt-note {
font-size: 1.8rem;
}
@media (orientation:portrait) {
.special-key > .visual-wrapper > .key-element[data-label="அஆஇ"] {
font-size: 1.1rem;
}
.keyboard-key.tamil > .visual-wrapper > .key-element {
font-size: 2rem;
}
.keyboard-key.tamil > .visual-wrapper > span[data-label="ஹ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ஊ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ா"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ூ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ே"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ெ"] {
font-size: 1.7rem;
}
.keyboard-key.tamil > .visual-wrapper > span[data-label="ௗ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ை"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ண"] {
font-size: 1.4rem;
}
.keyboard-key.tamil > .visual-wrapper > span[data-label="ஔ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ொ"],
.keyboard-key.tamil > .visual-wrapper > span[data-label="ோ"] {
font-size: 1.2rem;
}
.keyboard-key.tamil > .visual-wrapper > span[data-label="ௌ"] {
font-size: 1.1rem;
}
}
@media (orientation:landscape) {
#keyboard.landscape .special-key > .visual-wrapper >
.key-element[data-label="அஆஇ"] {
font-size: 1.7rem;
}
#keyboard.landscape .keyboard-key.tamil.highlighted >
.visual-wrapper > .popup {
top: -7rem;
left: calc(50% - 3.5rem);
width: auto;
min-width: 5.6rem;
height: 7rem;
line-height: 7rem;
font-size: 3.5rem;
border-radius: 3.5rem;
padding-left: 0.7rem;
padding-right: 0.7rem;
}
#keyboard.landscape .keyboard-row button:last-child.tamil.highlighted >
.visual-wrapper > .popup {
left: auto;
right: 0;
}
#keyboard.landscape .keyboard-key.tamil >
.visual-wrapper > span[data-label="ஔ"],
#keyboard.landscape .keyboard-key.tamil >
.visual-wrapper > span[data-label="ொ"] {
font-size: 2.5rem;
}
#keyboard.landscape .keyboard-key.tamil >
.visual-wrapper > span[data-label="ௌ"] {
font-size: 2rem;
}
}