2 -- Copyright 2013 The Chromium Authors. All rights reserved.
3 -- Use of this source code is governed by a BSD-style license that can be
4 -- found in the LICENSE file.
7 <polymer-element name=
"kb-key" extends=
"kb-key-base" attributes=
"image keyCode
8 keyName shiftModifier sound stretch weight">
12 background-color: #ffffff;
15 border-width:
0px
0px;
17 font-family: roboto-bold;
22 background-image: none;
23 background-position: center;
24 background-repeat: no-repeat;
25 background-size: contain;
36 :host([align=left]) .key {
40 /* TODO(rsadam@): Remove when we fully switch to native shadow dom. */
41 /* TODO(rsadam@): Move shift key rules to kb-shift-key. */
43 :host(kb-shift-key) .key {
48 :host([image].cursor) .key {
56 :host([image].tab) .key {
72 :host-context(.hide-hint-text) .hint {
76 :host([invert]) .hint {
85 background-color: #cccccc;
89 background-color: #dddddd;
90 background-size: cover;
93 :host(.dark:not(.active)) {
94 background-color: #
555555;
97 :host(:not(.dark):not(.active)) {
98 background-color: #ffffff;
99 background-size: cover;
102 <div id=
"key" class=
"key">
105 <div class=
"hint" part=
"hint">{{hintText}}
</div>
109 <!-- Special keys -->
110 <polymer-element name=
"kb-abc-key" class=
"symbol dark" char=
"Invalid"
111 extends=
"kb-key" weight=
"125">
114 <polymer-element name=
"kb-hide-keyboard-key" class=
"hide-keyboard dark"
115 align=
"center" attributes=
"showMenu" char=
"Invalid" extends=
"kb-key">