OLD | NEW |
1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 :host { | 5 :host { |
6 text-align: start; | 6 text-align: start; |
7 } | 7 } |
8 | 8 |
9 #container { | 9 #container { |
10 position: absolute; | 10 position: absolute; |
11 /* Controls the position of the dropdown relative to the right of the screen. | 11 /* Controls the position of the dropdown relative to the right of the screen. |
12 * Default is aligned with the right of the toolbar buttons. | 12 * Default is aligned with the right of the toolbar buttons. |
13 * TODO(tsergeant): Change the layout of the dropdown so this is not required. | 13 * TODO(tsergeant): Change the layout of the dropdown so this is not required. |
14 */ | 14 */ |
15 right: var(--viewer-toolbar-dropdown-right-distance, 36px); | 15 right: var(--viewer-toolbar-dropdown-right-distance, 28px); |
16 } | 16 } |
17 | 17 |
18 :host-context([dir=rtl]) #container { | 18 :host-context([dir=rtl]) #container { |
19 left: var(--viewer-toolbar-dropdown-right-distance, 36px); | 19 left: var(--viewer-toolbar-dropdown-right-distance, 28px); |
20 right: auto; | 20 right: auto; |
21 } | 21 } |
22 | 22 |
23 paper-material { | 23 #dropdown { |
| 24 @apply(--shadow-elevation-2dp); |
24 background-color: rgb(256, 256, 256); | 25 background-color: rgb(256, 256, 256); |
25 border-radius: 4px; | 26 border-radius: 4px; |
| 27 color: var(--primary-text-color); |
26 overflow-y: hidden; | 28 overflow-y: hidden; |
27 padding-bottom: 2px; | 29 padding-bottom: 2px; |
28 width: 260px; | 30 width: 260px; |
29 } | 31 } |
30 | 32 |
31 #scroll-container { | 33 #scroll-container { |
32 max-height: 300px; | 34 max-height: 300px; |
33 overflow-y: auto; | 35 overflow-y: auto; |
34 padding: 6px 0 4px 0; | 36 padding: 6px 0 4px 0; |
35 } | 37 } |
36 | 38 |
37 #icon { | 39 #icon { |
38 cursor: pointer; | 40 cursor: pointer; |
39 display: inline-block; | 41 display: inline-block; |
40 } | 42 } |
41 | 43 |
42 :host([dropdown-open]) #icon { | 44 :host([dropdown-open]) #icon { |
43 background-color: rgb(25, 27, 29); | 45 background-color: rgb(25, 27, 29); |
44 border-radius: 4px; | 46 border-radius: 4px; |
45 } | 47 } |
46 | 48 |
47 #arrow { | 49 #arrow { |
48 -webkit-margin-start: -12px; | 50 -webkit-margin-start: -12px; |
49 -webkit-padding-end: 4px; | 51 -webkit-padding-end: 4px; |
50 } | 52 } |
51 | 53 |
52 h1 { | 54 h1 { |
53 border-bottom: 1px solid rgb(219, 219, 219); | 55 border-bottom: 1px solid rgb(219, 219, 219); |
54 color: rgb(33, 33, 33); | 56 font-size: 107.6%; |
55 font-size: 77.8%; | |
56 font-weight: 500; | 57 font-weight: 500; |
57 margin: 0; | 58 margin: 0; |
58 padding: 14px 28px; | 59 padding: 14px 28px; |
59 } | 60 } |
OLD | NEW |