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

Unified Diff: chrome/browser/resources/welcome/welcome.css

Issue 2252063002: Adding client code for new desktop First Run Experience. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing spacing nits before review Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/welcome/welcome.css
diff --git a/chrome/browser/resources/welcome/welcome.css b/chrome/browser/resources/welcome/welcome.css
new file mode 100644
index 0000000000000000000000000000000000000000..bd5501a2195b92a8259694f0dfe71b69a33a04f2
--- /dev/null
+++ b/chrome/browser/resources/welcome/welcome.css
@@ -0,0 +1,199 @@
+/* Copyright (c) 2016 The Chromium Authors. All rights reserved.
Moe 2016/08/19 17:10:52 you can probably inline this entire file in welcom
tmartino 2016/08/19 20:11:29 Is that the preferred way of doing it? It seemed l
Moe 2016/08/19 20:40:52 you can keep the css in a separate file if you wan
michaelpg 2016/09/06 22:21:56 That's only for Polymer components that need scope
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
+* {
+ font-weight: normal;
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ align-items: center;
+ box-sizing: border-box;
+ color: rgba(0,0,0,.87);
Moe 2016/08/19 17:10:52 why color with opacity? is there no grey color clo
+ display: flex;
+ flex-direction: column;
+ font: 14px/24px Roboto, 'Helvetica Neue', 'Lucida Grande', sans-serif;
Moe 2016/08/19 17:10:52 use chrome://resources/css/text_defaults_md.css if
+ justify-content: center;
+ min-height: 100vh;
+ overflow-y: hidden;
+ padding: 16px;
+}
+
+a {
+ text-decoration: none;
+}
+
+
+@keyframes slideUpContent {
+ from {
+ transform: translateY(186px);
+ }
+}
+
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+}
+
+@keyframes fadeOut {
+ to {
+ opacity: 0;
+ }
+}
+
+
+@keyframes fadeInAndSlideUp {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+}
+
+@keyframes spin {
+ from {
+ transform: rotate(-1440deg);
+ }
+}
+
+@keyframes fadeInAndSlideDownShadow {
+ from {
+ opacity: .6;
+ top: 8px;
+ }
+}
+
+@keyframes scaleUp {
+ 0% {
+ transform: scale(.8);
+ }
+}
+
+.spacer {
+ flex: 1;
+ max-height: 96px;
+}
+
+.content {
+ animation: slideUpContent 600ms 1.8s cubic-bezier(.4,.2,0,1) both;
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: center;
+ max-width: 500px;
+ text-align: center;
+}
+
+.heading {
+ animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4,.2,0,1) both;
+ font-size: 34px;
+ letter-spacing: -.44px;
+ line-height: 40px;
+ margin-bottom: 12px;
+ margin-top: 56px;
+}
+
+.subheading {
+ animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4,.2,0,1) both;
+ color: rgba(0,0,0,.54);
+ font-size: 16px;
+}
+
+.logo {
+ animation: fadeIn 600ms both;
+ height: 96px;
+ margin: 0 auto;
+ position: relative;
+ width: 96px;
+}
+
+.logo-icon {
+ animation: scaleUp 600ms 500ms cubic-bezier(.5,-.5,0,2.25) both;
+ background: #fff;
+ border-radius: 50%;
+ height: 96px;
+ width: 96px;
+}
+
+.logo-bw,
+.logo-color {
+ animation: fadeIn 600ms 500ms both, spin 2.4s cubic-bezier(.4,.2,0,1) both;
+ left: -5px;
+ position: absolute;
+ top: -5px;
+ width: 106px;
+}
+
+.logo-bw {
+ -webkit-filter: grayscale(100%);
+}
+
+.logo-color {
+ animation: fadeIn 300ms 700ms both, spin 2.4s cubic-bezier(.4,.2,0,1) both;
+}
+
+.logo-shadow {
+ -webkit-filter: blur(16px);
+ animation: fadeInAndSlideDownShadow 300ms 600ms both;
+ background: rgba(0,0,0,.2);
Moe 2016/08/19 17:10:52 space after commas
+ border-radius: 50%;
+ height: 96px;
+ position: absolute;
+ top: 16px;
+ width: 96px;
+ z-index: -1;
+}
+
+.signin {
+ animation: fadeInAndSlideUp 600ms 2s cubic-bezier(.4,.2,0,1) both;
+ margin-top: 48px;
+ text-align: left;
+}
+
+.signin-description {
+ margin: 0 auto;
+ max-width: 344px;
+}
+
+.signin-buttons {
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+ margin-top: 32px;
+}
+
+.action {
+ background: rgb(66, 133, 244);
Moe 2016/08/19 17:10:52 is this a standard google color? you're expected t
tmartino 2016/08/19 20:11:29 Yeah, it is, it's Google Blue 500. I actually trie
Moe 2016/08/19 20:40:52 if these styles are in a <style is='custom-style'>
+ color: #fff;
Moe 2016/08/19 17:10:52 white
+ font-size: 12px;
Moe 2016/08/19 17:10:52 if your WebUI page is in the content area. it shou
+ font-weight: 500;
+ line-height: 28px;
+ min-width: 32px;
+ padding: 0 16px;
+}
+
+.link {
+ color: rgb(51, 103, 214);
+ display: inline-block;
+ font-size: 12px;
+ line-height: 32px;
+ margin: 8px;
+ min-width: 56px;
+ text-align: center;
+}
+
+.link:hover {
+ text-decoration: underline;
+}
+
+.watermark {
+ -webkit-mask-image: url(chrome://welcome/watermark.svg);
+ -webkit-mask-repeat: no-repeat;
+ -webkit-mask-size: 100%;
+ background: rgba(0,0,0,.24);
Moe 2016/08/19 17:10:52 rgba(0, 0, 0, .24);
+ height: 24px;
+ margin-top: 48px;
+ width: 74px;
+}

Powered by Google App Engine
This is Rietveld 408576698