OLD | NEW |
(Empty) | |
| 1 /* |
| 2 Copyright 2013 The Toolkitchen Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style |
| 4 license that can be found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 :host { |
| 8 display: block; |
| 9 position: relative; |
| 10 box-sizing: border-box; |
| 11 -moz-box-sizing: border-box; |
| 12 height: 40px; |
| 13 line-height: 35px; |
| 14 font-size: 16px; |
| 15 padding: 0 10px; |
| 16 border: 1px solid transparent; |
| 17 border-radius: 3px; |
| 18 white-space: nowrap; |
| 19 cursor: pointer; |
| 20 opacity: 0.5; |
| 21 } |
| 22 |
| 23 :host(:hover:host) { |
| 24 opacity: 0.9; |
| 25 } |
| 26 |
| 27 :host(.polymer-selected:host, [active]:host) { |
| 28 opacity: 1; |
| 29 } |
| 30 |
| 31 :host(.polymer-ui-light-theme.polymer-selected:host, .polymer-ui-light-theme[act
ive]:host) { |
| 32 background: #f2f2f2; |
| 33 border: 1px solid rgba(0, 0, 0, 0.15); |
| 34 } |
| 35 |
| 36 :host(.polymer-ui-dark-theme:host) { |
| 37 color: #b3b3b3; |
| 38 } |
| 39 |
| 40 :host(.polymer-ui-dark-theme:hover:host) { |
| 41 color: rgba(255, 255, 255, 0.9); |
| 42 } |
| 43 |
| 44 :host(.polymer-ui-dark-theme.polymer-selected:host, .polymer-ui-dark-theme[activ
e]:host) { |
| 45 background-color: #000; |
| 46 border: 1px solid rgba(255, 255, 255, 0.2); |
| 47 color: rgba(255, 255, 255, 0.9); |
| 48 } |
| 49 |
| 50 :host([active].no-active-bg:host) { |
| 51 background-color: transparent; |
| 52 border: 1px solid transparent; |
| 53 } |
| 54 |
| 55 /* icon and label */ |
| 56 polymer-ui-icon:not([showing]) { |
| 57 display: none !important; |
| 58 } |
| 59 |
| 60 polymer-ui-icon { |
| 61 margin-right: 16px; |
| 62 } |
| 63 |
| 64 #label { |
| 65 vertical-align: middle; |
| 66 padding-right: 20px; |
| 67 } |
| 68 |
| 69 /*@polyfill :host #label > a, #link */ |
| 70 ::content > a, #link { |
| 71 position: absolute; |
| 72 top: 0; |
| 73 right: 0; |
| 74 bottom: 0; |
| 75 left: 0; |
| 76 margin: -1px; |
| 77 } |
| 78 |
| 79 #link[hidden] { |
| 80 display: none; |
| 81 } |
OLD | NEW |