| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 -- Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 3 -- Use of this source code is governed by a BSD-style license that can be |
| 4 -- found in the LICENSE file. | 4 -- found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <polymer-element name="kb-key" extends="kb-key-base" attributes="image keyCode | 7 <polymer-element name="kb-key" extends="kb-key-base" attributes="image keyCode |
| 8 keyName shiftModifier sound stretch weight"> | 8 keyName shiftModifier sound stretch weight"> |
| 9 <template> | 9 <template> |
| 10 <style> | 10 <style> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 top: 0; | 33 top: 0; |
| 34 } | 34 } |
| 35 | 35 |
| 36 :host([align=left]) .key { | 36 :host([align=left]) .key { |
| 37 padding-left: 1em; | 37 padding-left: 1em; |
| 38 } | 38 } |
| 39 | 39 |
| 40 /* TODO(rsadam@): Remove when we fully switch to native shadow dom. */ | 40 /* TODO(rsadam@): Remove when we fully switch to native shadow dom. */ |
| 41 /* TODO(rsadam@): Move shift key rules to kb-shift-key. */ | 41 /* TODO(rsadam@): Move shift key rules to kb-shift-key. */ |
| 42 kb-shift-key .key, | 42 kb-shift-key .key, |
| 43 :host(kb-shift-key) .key, | 43 :host(kb-shift-key) .key { |
| 44 :host([image]) .key { | |
| 45 height: 70%; | 44 height: 70%; |
| 46 width: auto; | 45 width: auto; |
| 47 } | 46 } |
| 48 | 47 |
| 49 :host([image].cursor) .key { | 48 :host([image].cursor) .key { |
| 50 height: 85%; | 49 height: 85%; |
| 51 } | 50 } |
| 52 | 51 |
| 53 :host([image].hide-keyboard) .key { | 52 :host([image]) .key { |
| 54 height: 100%; | 53 height: 30%; |
| 55 } | 54 } |
| 56 | 55 |
| 57 :host([image].search) .key { | 56 :host([image].search) .key { |
| 58 height: 80%; | 57 height: 80%; |
| 59 } | 58 } |
| 60 | 59 |
| 61 :host .hint, | 60 :host .hint, |
| 62 :host([invert]) key { | 61 :host([invert]) key { |
| 63 color: #bbbbbb; | 62 color: #bbbbbb; |
| 64 } | 63 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 </polymer-element> | 99 </polymer-element> |
| 101 | 100 |
| 102 <!-- Special keys --> | 101 <!-- Special keys --> |
| 103 <polymer-element name="kb-abc-key" class="symbol dark" char="Invalid" | 102 <polymer-element name="kb-abc-key" class="symbol dark" char="Invalid" |
| 104 extends="kb-key" weight="125"> | 103 extends="kb-key" weight="125"> |
| 105 </polymer-element> | 104 </polymer-element> |
| 106 | 105 |
| 107 <polymer-element name="kb-hide-keyboard-key" class="hide-keyboard dark" | 106 <polymer-element name="kb-hide-keyboard-key" class="hide-keyboard dark" |
| 108 align="center" attributes="showMenu" char="Invalid" extends="kb-key"> | 107 align="center" attributes="showMenu" char="Invalid" extends="kb-key"> |
| 109 </polymer-element> | 108 </polymer-element> |
| OLD | NEW |