OLD | NEW |
1 /* | 1 /* |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
6 Code distributed by Google as part of the polymer project is also | 6 Code distributed by Google as part of the polymer project is also |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
8 */ | 8 */ |
9 | 9 |
10 :host { | 10 :host { |
11 display: block; | 11 display: block; |
12 position: relative; | |
13 font-size: 14px; | 12 font-size: 14px; |
14 font-weight: 500; | 13 font-weight: 500; |
15 height: 48px; | 14 height: 48px; |
16 overflow: hidden; | 15 overflow: hidden; |
| 16 -webkit-user-select: none; |
| 17 -moz-user-select: none; |
| 18 -ms-user-select: none; |
| 19 user-select: none; |
| 20 -webkit-tap-highlight-color: rgba(0,0,0,0); |
17 } | 21 } |
18 | 22 |
19 #tabsContainer { | 23 #tabsContainer { |
| 24 position: relative; |
| 25 height: 100%; |
| 26 white-space: nowrap; |
| 27 overflow: hidden; |
| 28 } |
| 29 |
| 30 #tabsContent { |
| 31 height: 100%; |
| 32 } |
| 33 |
| 34 #tabsContainer.scrollable > #tabsContent { |
20 position: absolute; | 35 position: absolute; |
21 top: 0; | |
22 right: 0; | |
23 bottom: 0; | |
24 left: 0; | |
25 white-space: nowrap; | 36 white-space: nowrap; |
26 } | 37 } |
27 | 38 |
| 39 .scroll-button { |
| 40 width: 40px; |
| 41 padding: 0 12px; |
| 42 } |
| 43 |
| 44 .scroll-button > paper-icon-button { |
| 45 transition: opacity 0.18s; |
| 46 } |
| 47 |
| 48 .scroll-button > .hidden { |
| 49 opacity: 0; |
| 50 } |
| 51 |
28 #selectionBar { | 52 #selectionBar { |
29 position: absolute; | 53 position: absolute; |
30 height: 2px; | 54 height: 2px; |
31 bottom: 0; | 55 bottom: 0; |
32 left: 0; | 56 left: 0; |
33 width: 0; | 57 width: 0; |
34 background-color: #ffff8d; | 58 background-color: #ffff8d; |
35 transition: width, left; | 59 transition: width, left; |
36 } | 60 } |
37 | 61 |
38 #selectionBar[hidden] { | |
39 display: hidden; | |
40 } | |
41 | |
42 #selectionBar.expand { | 62 #selectionBar.expand { |
43 transition-duration: 0.15s; | 63 transition-duration: 0.15s; |
44 transition-timing-function: cubic-bezier(0.4, 0.0, 1, 1); | 64 transition-timing-function: cubic-bezier(0.4, 0.0, 1, 1); |
45 } | 65 } |
46 | 66 |
47 #selectionBar.contract { | 67 #selectionBar.contract { |
48 transition-duration: 0.18s; | 68 transition-duration: 0.18s; |
49 transition-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1); | 69 transition-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1); |
50 } | 70 } |
51 | 71 |
52 polyfill-next-selector { content: '#tabsContainer > *:not(#selectionBar)'; } | 72 polyfill-next-selector { content: '#tabsContent > *:not(#selectionBar)'; } |
53 ::content > * { | 73 ::content > * { |
54 -ms-flex: 1; | 74 height: 100%; |
55 -webkit-flex: 1; | |
56 flex: 1; | |
57 } | 75 } |
OLD | NEW |