Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/polymer/v0_8/components-chromium/paper-drawer-panel/paper-drawer-panel.css

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /**
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9
10 */
11 :host {
12 display: block;
13 position: absolute;
14 top: 0;
15 left: 0;
16 width: 100%;
17 height: 100%;
18 overflow: hidden;
19 }
20
21 iron-selector > #drawer {
22 position: absolute;
23 top: 0;
24 left: 0;
25 height: 100%;
26 background-color: white;
27 will-change: transform;
28 box-sizing: border-box;
29 -moz-box-sizing: border-box;
30
31 @apply(--paper-drawer-panel-drawer-container);
32 }
33
34 .transition > #drawer {
35 transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s;
36 transition: transform ease-in-out 0.3s, width ease-in-out 0.3s;
37 }
38
39 .left-drawer > #drawer {
40 @apply(--paper-drawer-panel-left-drawer-container);
41 }
42
43 .right-drawer > #drawer {
44 left: auto;
45 right: 0;
46
47 @apply(--paper-drawer-panel-right-drawer-container);
48 }
49
50 iron-selector > #main {
51 position: absolute;
52 top: 0;
53 right: 0;
54 bottom: 0;
55
56 @apply(--paper-drawer-panel-main-container);
57 }
58
59 .transition > #main {
60 transition: left ease-in-out 0.3s, padding ease-in-out 0.3s;
61 }
62
63 .right-drawer > #main {
64 left: 0;
65 }
66
67 .right-drawer.transition > #main {
68 transition: right ease-in-out 0.3s, padding ease-in-out 0.3s;
69 }
70
71 #main > ::content > [main] {
72 height: 100%;
73 }
74
75 #drawer > ::content > [drawer] {
76 height: 100%;
77 }
78
79 #scrim {
80 position: absolute;
81 top: 0;
82 right: 0;
83 bottom: 0;
84 left: 0;
85 visibility: hidden;
86 opacity: 0;
87 transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s;
88 background-color: rgba(0, 0, 0, 0.3);
89 }
90
91 .narrow-layout > #drawer.iron-selected {
92 box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
93 }
94
95 .right-drawer.narrow-layout > #drawer.iron-selected {
96 box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15);
97 }
98
99 .narrow-layout > #drawer > ::content > [drawer] {
100 border: 0;
101 }
102
103 .left-drawer.narrow-layout > #drawer:not(.iron-selected) {
104 -webkit-transform: translateX(-100%);
105 transform: translateX(-100%);
106 }
107
108 .right-drawer.narrow-layout > #drawer:not(.iron-selected) {
109 left: auto;
110 -webkit-transform: translateX(100%);
111 transform: translateX(100%);
112 }
113
114 .narrow-layout > #main {
115 left: 0 !important;
116 padding: 0;
117 }
118
119 .right-drawer.narrow-layout > #main {
120 left: 0;
121 right: 0;
122 padding: 0;
123 }
124
125 .narrow-layout > #main:not(.iron-selected) > #scrim,
126 .dragging > #main > #scrim {
127 visibility: visible;
128 opacity: var(--paper-drawer-panel-scrim-opacity, 1);
129 }
130
131 .narrow-layout > #main > * {
132 margin: 0;
133 min-height: 100%;
134 left: 0;
135 right: 0;
136 box-sizing: border-box;
137 -moz-box-sizing: border-box;
138 }
139
140 iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] {
141 display: none;
142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698