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

Side by Side Diff: chrome/browser/resources/welcome/welcome.css

Issue 2383903002: UX corrections to new FRE Welcome page. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/resources/welcome/welcome.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright 2016 The Chromium Authors. All rights reserved. 1 /* Copyright 2016 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 body { 5 body {
6 align-items: center; 6 align-items: center;
7 color: var(--paper-grey-900); 7 color: var(--paper-grey-900);
8 display: flex; 8 display: flex;
9 flex-direction: column; 9 flex-direction: column;
10 font-size: 100%; 10 font-size: 100%;
11 justify-content: center; 11 justify-content: center;
12 min-height: 96vh; 12 min-height: 100vh;
13 overflow-y: hidden; 13 overflow-y: hidden;
14 padding: 16px;
15 } 14 }
16 15
17 @keyframes slideUpContent { 16 @keyframes slideUpContent {
18 from { 17 from {
19 transform: translateY(186px); 18 transform: translateY(186px);
20 } 19 }
21 } 20 }
22 21
23 @keyframes fadeIn { 22 @keyframes fadeIn {
24 from { 23 from {
(...skipping 10 matching lines...) Expand all
35 34
36 @keyframes fadeInAndSlideUp { 35 @keyframes fadeInAndSlideUp {
37 from { 36 from {
38 opacity: 0; 37 opacity: 0;
39 transform: translateY(8px); 38 transform: translateY(8px);
40 } 39 }
41 } 40 }
42 41
43 @keyframes spin { 42 @keyframes spin {
44 from { 43 from {
45 transform: rotate(-1440deg); 44 transform: rotate(-1440deg) scale(0.8);
46 } 45 }
47 } 46 }
48 47
49 @keyframes fadeInAndSlideDownShadow { 48 @keyframes fadeInAndSlideDownShadow {
50 from { 49 from {
51 opacity: .6; 50 opacity: .6;
52 top: 8px; 51 top: 0;
53 } 52 }
54 } 53 }
55 54
56 @keyframes scaleUp { 55 @keyframes scaleUp {
57 0% { 56 0% {
58 transform: scale(.8); 57 transform: scale(.8);
59 } 58 }
60 } 59 }
61 60
62 .spacer { 61 @keyframes colorize {
63 flex: 1; 62 from {
64 max-height: 96px; 63 -webkit-filter: grayscale(100%);
64 opacity: .6;
65 }
66 }
67
68 @keyframes bounce {
69 0% {
70 transform: matrix3d(0.8, 0, 0, 0, 0, 0.8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
71 }
72 7.61% {
73 transform: matrix3d(0.907, 0, 0, 0, 0, 0.907, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
74 }
75 11.41% {
76 transform: matrix3d(0.948, 0, 0, 0, 0, 0.948, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
77 }
78 15.12% {
79 transform: matrix3d(0.976, 0, 0, 0, 0, 0.976, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
80 }
81 18.92% {
82 transform: matrix3d(0.996, 0, 0, 0, 0, 0.996, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
83 }
84 22.72% {
85 transform: matrix3d(1.008, 0, 0, 0, 0, 1.008, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
86 }
87 30.23% {
88 transform: matrix3d(1.014, 0, 0, 0, 0, 1.014, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
89 }
90 50.25% {
91 transform: matrix3d(1.003, 0, 0, 0, 0, 1.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
92 }
93 70.27% {
94 transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
95 }
96 100% {
97 transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
98 }
65 } 99 }
66 100
67 .content { 101 .content {
68 align-items: center; 102 align-items: center;
69 animation: slideUpContent 600ms 1.8s cubic-bezier(.4, .2, 0, 1) both; 103 animation: slideUpContent 600ms 1.8s cubic-bezier(.4, .2, 0, 1) both;
70 display: flex; 104 display: flex;
71 flex: 1; 105 flex: 1;
72 flex-direction: column; 106 flex-direction: column;
73 justify-content: center; 107 justify-content: center;
74 max-width: 500px; 108 max-width: 500px;
75 } 109 }
76 110
77 .heading { 111 .heading {
78 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4, .2, 0, 1) both; 112 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4, .2, 0, 1) both;
79 font-size: 2.125em; 113 font-size: 2.125em;
80 margin-bottom: .25em; 114 margin-bottom: .25em;
81 margin-top: 1.5em; 115 margin-top: 1.5em;
116 text-align: center;
82 } 117 }
83 118
84 .subheading { 119 .subheading {
85 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4, .2, 0, 1) both; 120 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4, .2, 0, 1) both;
86 color: var(--google-grey-500); 121 color: var(--google-grey-500);
87 font-size: 1em; 122 font-size: 1em;
88 margin-top: .25em; 123 margin-top: .25em;
124 text-align: center;
89 } 125 }
90 126
91 .logo { 127 .logo {
92 animation: fadeIn 600ms both; 128 animation: fadeIn 600ms both, bounce 1s 600ms linear both;
93 height: 96px; 129 height: 96px;
94 position: relative; 130 position: relative;
95 width: 96px; 131 width: 96px;
96 } 132 }
97 133
98 .logo-icon { 134 .logo-icon {
99 animation: scaleUp 600ms 500ms cubic-bezier(.5, -.5, 0, 2.25) both; 135 animation: spin 2.4s cubic-bezier(.4, .2, 0, 1) both,
100 background: white; 136 colorize 300ms 700ms linear both;
101 border-radius: 50%; 137 content: -webkit-image-set(url(chrome://welcome/logo.png) 1x,
138 url(chrome://welcome/logo2x.png) 2x);
102 height: 96px; 139 height: 96px;
140 left: 0;
141 position: absolute;
103 width: 96px; 142 width: 96px;
104 } 143 }
105 144
106 .logo-bw,
107 .logo-color {
108 animation: fadeIn 600ms 500ms both,
109 spin 2.4s cubic-bezier(.4, .2, 0, 1) both;
110 content: -webkit-image-set(url(logo.png) 1x, url(logo2x.png) 2x);
111 left: -5px;
112 position: absolute;
113 top: -5px;
114 width: 106px;
115 }
116
117 .logo-bw {
118 -webkit-filter: grayscale(100%);
119 }
120
121 .logo-color {
122 animation: fadeIn 300ms 700ms both,
123 spin 2.4s cubic-bezier(.4, .2, 0, 1) both;
124 }
125
126 .logo-shadow { 145 .logo-shadow {
127 -webkit-filter: blur(16px); 146 -webkit-filter: blur(16px);
128 animation: fadeInAndSlideDownShadow 300ms 600ms both; 147 animation: fadeInAndSlideDownShadow 300ms 600ms both;
129 background: rgba(0, 0, 0, .2); 148 background: rgba(0, 0, 0, .2);
130 border-radius: 50%; 149 border-radius: 50%;
131 height: 96px; 150 height: 96px;
132 position: absolute; 151 position: absolute;
133 top: 16px; 152 top: 16px;
134 width: 96px; 153 width: 96px;
135 z-index: -1; 154 z-index: -1;
(...skipping 14 matching lines...) Expand all
150 .signin-buttons { 169 .signin-buttons {
151 align-items: center; 170 align-items: center;
152 display: flex; 171 display: flex;
153 flex-direction: column; 172 flex-direction: column;
154 margin-top: 2em; 173 margin-top: 2em;
155 } 174 }
156 175
157 .action { 176 .action {
158 background: var(--google-blue-500); 177 background: var(--google-blue-500);
159 color: white; 178 color: white;
160 font-size: .75em; 179 font-size: .875em;
161 font-weight: 500; 180 font-weight: 500;
162 line-height: 2.5em; 181 line-height: 2.5em;
163 padding: 0 1.25em; 182 padding: 0.1em 1.5em;
183 }
184
185 .action:active {
186 background: var(--google-blue-500);
164 } 187 }
165 188
166 .action:focus { 189 .action:focus {
167 background: var(--google-blue-700); 190 background: var(--google-blue-700);
168 } 191 }
169 192
170 .link { 193 .link {
171 color: var(--google-blue-500); 194 color: var(--google-blue-700);
172 display: inline-block; 195 display: inline-block;
173 font-size: .75em; 196 font-size: .875em;
174 margin: 1.5em; 197 margin: 1.5em;
175 text-align: center; 198 text-align: center;
176 text-decoration: none; 199 text-decoration: none;
177 } 200 }
178 201
179 .link:hover { 202 .link:hover {
180 text-decoration: underline; 203 text-decoration: underline;
181 } 204 }
182 205
183 .watermark { 206 .watermark {
184 -webkit-mask-image: url(chrome://welcome/watermark.svg); 207 -webkit-mask-image: url(chrome://welcome/watermark.svg);
185 -webkit-mask-repeat: no-repeat; 208 -webkit-mask-repeat: no-repeat;
186 -webkit-mask-size: 100%; 209 -webkit-mask-size: 100%;
210 animation: fadeIn 1s cubic-bezier(0, 0, .2, 1) both;
187 background: var(--paper-grey-400); 211 background: var(--paper-grey-400);
212 bottom: 24px;
188 height: 24px; 213 height: 24px;
189 margin-top: 48px; 214 position: absolute;
190 width: 74px; 215 width: 74px;
191 } 216 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/welcome/welcome.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698