| 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 11 matching lines...) Expand all Loading... |
| 22 background-image: none; | 22 background-image: none; |
| 23 background-position: center; | 23 background-position: center; |
| 24 background-repeat: no-repeat; | 24 background-repeat: no-repeat; |
| 25 background-size: contain; | 25 background-size: contain; |
| 26 bottom: 0; | 26 bottom: 0; |
| 27 height: 1.2em; | 27 height: 1.2em; |
| 28 left: 0; | 28 left: 0; |
| 29 margin: auto; | 29 margin: auto; |
| 30 position: absolute; | 30 position: absolute; |
| 31 right: 0; | 31 right: 0; |
| 32 text-align: center; |
| 32 top: 0; | 33 top: 0; |
| 33 } | 34 } |
| 34 | 35 |
| 35 :host([align=left]) .key { | 36 :host([align=left]) .key { |
| 36 padding-left: 1em; | 37 padding-left: 1em; |
| 37 } | 38 } |
| 38 | 39 |
| 39 /* TODO(rsadam@): Remove when we fully switch to native shadow dom. */ | 40 /* TODO(rsadam@): Remove when we fully switch to native shadow dom. */ |
| 40 /* TODO(rsadam@): Move shift key rules to kb-shift-key. */ | 41 /* TODO(rsadam@): Move shift key rules to kb-shift-key. */ |
| 41 kb-shift-key .key, | 42 kb-shift-key .key, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 </polymer-element> | 109 </polymer-element> |
| 109 | 110 |
| 110 <!-- Special keys --> | 111 <!-- Special keys --> |
| 111 <polymer-element name="kb-abc-key" class="symbol dark" char="Invalid" | 112 <polymer-element name="kb-abc-key" class="symbol dark" char="Invalid" |
| 112 extends="kb-key" weight="125"> | 113 extends="kb-key" weight="125"> |
| 113 </polymer-element> | 114 </polymer-element> |
| 114 | 115 |
| 115 <polymer-element name="kb-hide-keyboard-key" class="hide-keyboard dark" | 116 <polymer-element name="kb-hide-keyboard-key" class="hide-keyboard dark" |
| 116 align="center" attributes="showMenu" char="Invalid" extends="kb-key"> | 117 align="center" attributes="showMenu" char="Invalid" extends="kb-key"> |
| 117 </polymer-element> | 118 </polymer-element> |
| OLD | NEW |