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

Side by Side Diff: pkg/polymer/lib/elements/polymer-overlay/polymer-overlay.css

Issue 175443005: [polymer] import all elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: updated from bower Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The Polymer 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 /* Note that trbl: 0 + position: fixed will not 'fit to window'
8 if a transform is applied to a parent of this element. That parent
9 becomes the containing block; see:
10 http://dev.w3.org/csswg/css3-transforms/#transform-rendering
11 We address this by using script based positioning =(
12 */
13 :host(.polymer-overlay:host) {
14 position: fixed;
15 z-index: 10;
16 outline: none;
17 display: none;
18 -webkit-transition: opacity 0.001s;
19 transition: opacity 0.001s;
20 }
21
22 :host(.revealed:host) {
23 display: block;
24 visibility: hidden;
25 }
26
27 :host(.revealed.opened:host) {
28 display: block;
29 visibility: visible;
30 }
31
32 .polymer-overlay {
33 position: fixed;
34 z-index: 10;
35 outline: none;
36 display: none;
37 -webkit-transition: opacity 0.001s;
38 transition: opacity 0.001s;
39 }
40
41 /*
42 The revealed class exists because it's necessary to 'show' a node
43 before applying a transition. When an overlay is opened, it is
44 immediately revealed (display: block) and then asynchronously the
45 opened or closing classes are added.
46
47 Because we don't want to actually show the node before a transition
48 or animation is applied, when the node is
49 revealed, it is made display: block but visibility: hidden.
50 It is then made visibility: visible when it is opened.
51 */
52
53 .revealed {
54 display: block;
55 visibility: hidden;
56 }
57
58 .revealed.opened {
59 display: block;
60 visibility: visible;
61 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/elements/polymer-overlay/index.html ('k') | pkg/polymer/lib/elements/polymer-overlay/polymer-overlay.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698