OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 /* Google Drive welcome banners.*/ | 5 /* Google Drive welcome banners.*/ |
6 .drive-welcome-wrapper { | 6 .drive-welcome-wrapper { |
7 /* This image looks good in high DPI as is. */ | 7 /* This image looks good in high DPI as is. */ |
8 background-image: url(chrome://resources/images/clouds.png); | 8 background-image: url(chrome://resources/images/clouds.png); |
9 background-repeat: repeat-x; | 9 background-repeat: repeat-x; |
10 color: #333; | 10 color: #333; |
11 } | 11 } |
12 | 12 |
13 .drive-welcome-icon { | 13 .drive-welcome-icon { |
14 background-image: -webkit-image-set( | 14 background-image: -webkit-image-set( |
15 url('../images/files/ui/drive_logo.png') 1x, | 15 url('../images/files/ui/drive_logo.png') 1x, |
16 url('../images/files/ui/2x/drive_logo.png') 2x); | 16 url('../images/files/ui/2x/drive_logo.png') 2x); |
17 background-repeat: no-repeat; | 17 background-repeat: no-repeat; |
18 } | 18 } |
19 | 19 |
20 .drive-welcome-links { | 20 .drive-welcome-links { |
21 -webkit-box-orient: horizontal; | 21 display: flex; |
22 display: -webkit-box; | 22 flex-direction: row; |
23 } | 23 } |
24 | 24 |
25 .drive-welcome-button { | 25 .drive-welcome-button { |
26 -webkit-user-select: none; | 26 -webkit-user-select: none; |
27 background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1); | 27 background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1); |
28 border: 1px solid rgba(0,0,0,0.1); | 28 border: 1px solid rgba(0,0,0,0.1); |
29 border-radius: 2px; | 29 border-radius: 2px; |
30 color: #444; | 30 color: #444; |
31 cursor: default; | 31 cursor: default; |
32 display: inline-block; | 32 display: inline-block; |
(...skipping 30 matching lines...) Expand all Loading... |
63 | 63 |
64 .drive-welcome-button.drive-welcome-start:hover { | 64 .drive-welcome-button.drive-welcome-start:hover { |
65 background-image: | 65 background-image: |
66 linear-gradient(to bottom, rgb(77, 144, 254), rgb(53, 122, 232)); | 66 linear-gradient(to bottom, rgb(77, 144, 254), rgb(53, 122, 232)); |
67 border-color: rgb(47, 91, 183); | 67 border-color: rgb(47, 91, 183); |
68 box-shadow: 0 1px 1px rgba(0,0,0,0.1); | 68 box-shadow: 0 1px 1px rgba(0,0,0,0.1); |
69 } | 69 } |
70 | 70 |
71 /* Header welcome banner. */ | 71 /* Header welcome banner. */ |
72 .drive-welcome.header { | 72 .drive-welcome.header { |
73 -webkit-box-flex: 0; | 73 flex: none; |
74 height: 100px; | 74 height: 100px; |
75 overflow: hidden; | 75 overflow: hidden; |
76 position: relative; | 76 position: relative; |
77 transition: height 180ms ease, visibility 0 linear 180ms; | 77 transition: height 180ms ease, visibility 0 linear 180ms; |
78 } | 78 } |
79 | 79 |
80 .dialog-container:not([drive-welcome='header']) .drive-welcome.header { | 80 .dialog-container:not([drive-welcome='header']) .drive-welcome.header { |
81 height: 0; | 81 height: 0; |
82 visibility: hidden; | 82 visibility: hidden; |
83 } | 83 } |
84 | 84 |
85 .drive-welcome.header .drive-welcome-wrapper { | 85 .drive-welcome.header .drive-welcome-wrapper { |
86 -webkit-box-orient: horizontal; | |
87 background-size: 308px 100px; | 86 background-size: 308px 100px; |
88 bottom: 0; | 87 bottom: 0; |
89 display: -webkit-box; | 88 display: flex; |
| 89 flex-direction: row; |
90 left: 0; | 90 left: 0; |
91 position: absolute; | 91 position: absolute; |
92 right: 0; | 92 right: 0; |
93 top: 0; | 93 top: 0; |
94 } | 94 } |
95 | 95 |
96 .drive-welcome.header .drive-welcome-icon { | 96 .drive-welcome.header .drive-welcome-icon { |
97 background-position: center 18px; | 97 background-position: center 18px; |
98 background-size: 51px 44px; | 98 background-size: 51px 44px; |
99 width: 120px; | 99 width: 120px; |
100 } | 100 } |
101 | 101 |
102 .drive-welcome.header .drive-welcome-message { | 102 .drive-welcome.header .drive-welcome-message { |
103 -webkit-box-flex: 1; | 103 display: flex; |
104 -webkit-box-orient: vertical; | 104 flex: auto; |
105 display: -webkit-box; | 105 flex-direction: column; |
106 } | 106 } |
107 | 107 |
108 .drive-welcome.header .drive-welcome-title { | 108 .drive-welcome.header .drive-welcome-title { |
109 font-size: 140%; | 109 font-size: 140%; |
110 margin-bottom: 4px; | 110 margin-bottom: 4px; |
111 margin-top: 14px; | 111 margin-top: 14px; |
112 } | 112 } |
113 | 113 |
114 .drive-welcome.header .drive-welcome-text { | 114 .drive-welcome.header .drive-welcome-text { |
115 margin-bottom: 6px; | 115 margin-bottom: 6px; |
116 } | 116 } |
117 | 117 |
118 .drive-welcome.header .drive-welcome-dismiss { | 118 .drive-welcome.header .drive-welcome-dismiss { |
119 display: none; | 119 display: none; |
120 } | 120 } |
121 | 121 |
122 /* Full page welcome banner. */ | 122 /* Full page welcome banner. */ |
123 .drive-welcome.page { | 123 .drive-welcome.page { |
124 bottom: 0; | 124 bottom: 0; |
| 125 flex: none; |
125 left: 0; | 126 left: 0; |
126 position: absolute; | 127 position: absolute; |
127 right: 0; | 128 right: 0; |
128 top: 0; | 129 top: 0; |
129 } | 130 } |
130 | 131 |
131 .dialog-container:not([drive-welcome='page']) .drive-welcome.page { | 132 .dialog-container:not([drive-welcome='page']) .drive-welcome.page { |
132 display: none; | 133 display: none; |
133 } | 134 } |
134 | 135 |
135 .drive-welcome.page .cr-dialog-close { | 136 .drive-welcome.page .cr-dialog-close { |
136 display: none; | 137 display: none; |
137 } | 138 } |
138 | 139 |
139 .drive-welcome.page .drive-welcome-wrapper { | 140 .drive-welcome.page .drive-welcome-wrapper { |
140 -webkit-box-align: center; | 141 align-items: center; |
141 -webkit-box-orient: vertical; | |
142 background-size: 520px 173px; | 142 background-size: 520px 173px; |
143 bottom: 0; | 143 bottom: 0; |
144 display: -webkit-box; | 144 display: flex; |
| 145 flex-direction: column; |
145 font-size: 120%; | 146 font-size: 120%; |
146 left: 0; | 147 left: 0; |
147 overflow: hidden; | 148 overflow: hidden; |
148 position: absolute; | 149 position: absolute; |
149 right: 0; | 150 right: 0; |
150 top: 0; | 151 top: 0; |
151 } | 152 } |
152 | 153 |
153 .drive-welcome.page .drive-welcome-icon { | 154 .drive-welcome.page .drive-welcome-icon { |
154 background-position: center center; | 155 background-position: center center; |
(...skipping 24 matching lines...) Expand all Loading... |
179 margin-left: 20px; | 180 margin-left: 20px; |
180 } | 181 } |
181 | 182 |
182 body:not([type='full-page']) .drive-welcome.page .drive-welcome-wrapper { | 183 body:not([type='full-page']) .drive-welcome.page .drive-welcome-wrapper { |
183 background-position: 0 0; | 184 background-position: 0 0; |
184 } | 185 } |
185 | 186 |
186 body:not([type='full-page']) .drive-welcome.page .drive-welcome-icon { | 187 body:not([type='full-page']) .drive-welcome.page .drive-welcome-icon { |
187 height: 200px; | 188 height: 200px; |
188 } | 189 } |
OLD | NEW |