| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 -- Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 -- Copyright (c) 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-row" attributes="align"> | 7 <polymer-element name="kb-row" attributes="align"> |
| 8 <template> | 8 <template> |
| 9 <style> | 9 <style> |
| 10 :host { | 10 :host { |
| 11 text-align: center; | 11 text-align: center; |
| 12 margin-right: 0.25em; | 12 margin-right: 0.25em; |
| 13 margin-top: 0.25em; | 13 margin-top: 0.25em; |
| 14 } | 14 } |
| 15 :host :last-of-type { | 15 :host :last-of-type { |
| 16 margin-bottom: 0.25em; | 16 margin-bottom: 0.25em; |
| 17 } | 17 } |
| 18 | 18 |
| 19 :host:nth-child(1)>:not(.dark) { | 19 :host:nth-child(1)>:not(.dark):not(.active) { |
| 20 -webkit-box-shadow: inset 0px 1px #6f6f6f, inset 0px -1px #565656; | 20 -webkit-box-shadow: inset 0px 1px #6f6f6f, inset 0px -1px #565656; |
| 21 background-image: -webkit-linear-gradient(#636363, #5b5b5b); | 21 background-image: -webkit-linear-gradient(#636363, #5b5b5b); |
| 22 background-size: cover; | 22 background-size: cover; |
| 23 border-bottom-color: #4a4a4a; | 23 border-bottom-color: #4a4a4a; |
| 24 border-top-color: #878787; | 24 border-top-color: #878787; |
| 25 } | 25 } |
| 26 | 26 |
| 27 :host:nth-child(2)>:not(.dark) { | 27 :host:nth-child(2)>:not(.dark):not(.active) { |
| 28 -webkit-box-shadow: inset 0px 1px #666666, inset 0px -1px #4c4c4c; | 28 -webkit-box-shadow: inset 0px 1px #666666, inset 0px -1px #4c4c4c; |
| 29 background-image: -webkit-linear-gradient(#5a5a5a, #515151); | 29 background-image: -webkit-linear-gradient(#5a5a5a, #515151); |
| 30 background-size: cover; | 30 background-size: cover; |
| 31 border-bottom-color: #414141; | 31 border-bottom-color: #414141; |
| 32 border-top-color: #7f7f7f; | 32 border-top-color: #7f7f7f; |
| 33 } | 33 } |
| 34 | 34 |
| 35 :host:nth-child(3)>:not(.dark) { | 35 :host:nth-child(3)>:not(.dark):not(.active) { |
| 36 -webkit-box-shadow: inset 0px 1px #5d5d5d, inset 0px -1px #444444; | 36 -webkit-box-shadow: inset 0px 1px #5d5d5d, inset 0px -1px #444444; |
| 37 background-image: -webkit-linear-gradient(#505050, #494949); | 37 background-image: -webkit-linear-gradient(#505050, #494949); |
| 38 background-size: cover; | 38 background-size: cover; |
| 39 border-bottom-color: #3a3a3a; | 39 border-bottom-color: #3a3a3a; |
| 40 border-top-color: #787878; | 40 border-top-color: #787878; |
| 41 } | 41 } |
| 42 | 42 |
| 43 :host:nth-child(4)>:not(.dark) { | 43 :host:nth-child(4)>:not(.dark):not(.active) { |
| 44 -webkit-box-shadow: inset 0px 1px #565656, inset 0px -1px #434343; | 44 -webkit-box-shadow: inset 0px 1px #565656, inset 0px -1px #434343; |
| 45 background-image: -webkit-linear-gradient(#484848, #474747); | 45 background-image: -webkit-linear-gradient(#484848, #474747); |
| 46 background-size: cover; | 46 background-size: cover; |
| 47 border-bottom-color: #393939; | 47 border-bottom-color: #393939; |
| 48 border-top-color: #717171; | 48 border-top-color: #717171; |
| 49 } | 49 } |
| 50 | 50 |
| 51 :host>:not(.dark) { | 51 :host>:not(.dark):not(.active) { |
| 52 -webkit-box-shadow: inset 0px 1px #565656, inset 0px -1px #434343; | 52 -webkit-box-shadow: inset 0px 1px #565656, inset 0px -1px #434343; |
| 53 background-image: -webkit-linear-gradient(#484848, #474747); | 53 background-image: -webkit-linear-gradient(#484848, #474747); |
| 54 background-size: cover; | 54 background-size: cover; |
| 55 border-bottom-color: #393939; | 55 border-bottom-color: #393939; |
| 56 border-top-color: #717171; | 56 border-top-color: #717171; |
| 57 } | 57 } |
| 58 </style> | 58 </style> |
| 59 <content select="*"></content> | 59 <content select="*"></content> |
| 60 </template> | 60 </template> |
| 61 <script> | 61 <script> |
| 62 Polymer('kb-row', { | 62 Polymer('kb-row', { |
| 63 align: RowAlignment.STRETCH, | 63 align: RowAlignment.STRETCH, |
| 64 }); | 64 }); |
| 65 </script> | 65 </script> |
| 66 </polymer-element> | 66 </polymer-element> |
| OLD | NEW |