| 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-shift-key" attributes="lowerCaseKeysetId | 7 <polymer-element name="kb-shift-key" attributes="lowerCaseKeysetId |
| 8 upperCaseKeysetId" class="shift dark" char="Shift" on-pointerout="{{out}}" | 8 upperCaseKeysetId" class="shift dark" char="Shift" on-pointerout="{{out}}" |
| 9 extends="kb-key"> | 9 extends="kb-key"> |
| 10 <template> | 10 <template> |
| 11 <style> | 11 <style> |
| 12 .shift-light-wrapper { | 12 .shift-light-wrapper { |
| 13 bottom: 3px; | 13 bottom: 3px; |
| 14 height: 10%; | 14 height: 10%; |
| 15 margin: 0; | 15 margin: 0; |
| 16 padding: 0; | 16 padding: 0; |
| 17 position: absolute; | 17 position: absolute; |
| 18 width: 100%; | 18 width: 100%; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .shift-light { | 21 .shift-light { |
| 22 -webkit-box-shadow: inset 0 1px #101010, inset 0 -1px #444444; | 22 background-color: #ffffff; |
| 23 background-image: -webkit-linear-gradient(#101010, #000000); | 23 border: none; |
| 24 border: solid; | 24 height: 0.2em; |
| 25 border-bottom-color: #1d1d1d; | |
| 26 border-top-color: #2d2d2d; | |
| 27 border-width: 1px 0; | |
| 28 height: 0.3em; | |
| 29 margin: 0 auto; | 25 margin: 0 auto; |
| 30 position: relative; | 26 position: relative; |
| 31 width: 1.8em; | 27 width: 1.8em; |
| 32 } | 28 } |
| 33 </style> | 29 </style> |
| 34 <div class="shift-light-wrapper"> | 30 <div class="shift-light-wrapper"> |
| 35 <div class="shift-light"> </div> | 31 <div class="shift-light"> </div> |
| 36 </div> | 32 </div> |
| 37 <shadow></shadow> | 33 <shadow></shadow> |
| 38 </template> | 34 </template> |
| 39 </polymer-element> | 35 </polymer-element> |
| OLD | NEW |