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

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

Issue 2401853005: Adding client code for new Windows 10 First Run Experience (Closed)
Patch Set: Using Polymer dom-bind 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/welcome/win10/sectioned.css
diff --git a/chrome/browser/resources/welcome/win10/sectioned.css b/chrome/browser/resources/welcome/win10/sectioned.css
new file mode 100644
index 0000000000000000000000000000000000000000..6ab2b6727298fa423b0d87268f6db3cda585f590
--- /dev/null
+++ b/chrome/browser/resources/welcome/win10/sectioned.css
@@ -0,0 +1,297 @@
+/* Copyright 2016 The Chromium Authors. All rights reserved.
michaelpg 2016/10/22 03:19:00 There is still a great deal of duplicated code her
Patrick Monette 2016/10/24 20:49:39 Not a very good reason but we'll eventually get ri
michaelpg 2016/10/24 21:30:08 I didn't realize that. Can you add comments -- or
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
+* {
+ margin: 0;
+ padding: 0;
+}
+
+body {
+ box-sizing: border-box;
+ color: var(--paper-grey-900);
+ display: flex;
+ flex-direction: column;
+ font-size: 100%;
+ justify-content: center;
+ min-height: 100vh;
+}
+
+a {
+ color: var(--google-blue-500);
+ text-decoration: none;
+}
+
+strong {
+ font-weight: 500;
+}
+
+.content {
+ padding: 64px 24px 24px 24px;
+}
+
+.header-logo {
+ content: -webkit-image-set(url(/logo-large.png) 1x,
+ url(/logo-large2x.png) 2x);
+}
+
+.text {
+ margin: 0 auto;
+ max-width: 45em;
+}
+
+.heading {
+ font-size: 2.125em;
+ margin-bottom: .25em;
+ margin-top: 1.5em;
+}
+
+.subheading {
+ color: var(--google-grey-500);
+ font-size: 1em;
+ margin-bottom: 1.5em;
+ margin-top: .25em;
+ text-align: center;
+}
+
+.sections {
+ margin-bottom: 3em;
+}
+
+.section.expandable {
+ border-top: 1px solid var(--google-grey-300);
+}
+
+.section.expandable:last-child {
+ border-bottom: 1px solid var(--google-grey-300);
+}
+
+.section.expandable .section-heading {
+ color: var(--google-blue-500);
+ cursor: pointer;
+}
+
+.section-heading {
+ align-items: center;
+ display: flex;
+ padding: 1.5em 0;
+}
+
+.section-heading-text {
+ flex: 1;
+ font-weight: 500;
+}
+
+.section.expandable .section-heading-text {
+ font-weight: normal;
+}
+
+.section.expandable.expanded .section-heading-text {
+ font-weight: 500;
+}
+
+.section-heading-expand {
+ height: 1.25em;
+ opacity: 0.54;
+ transition: transform 150ms cubic-bezier(.4, .2, 0, 1) 50ms;
+ width: 1.25em;
+}
+
+.section.expandable.expanded .section-heading-expand {
+ transform: rotate(180deg);
+ transition-delay: 150ms;
+}
+
+.section-steps {
+ overflow: hidden;
+}
+
+.section-steps li {
+ margin-bottom: 1em;
+ margin-left: 1.25em;
+ padding-left: 1em;
+}
+
+.section-steps li:last-child {
+ margin-bottom: 1em;
+}
+
+.section.expandable .section-steps {
+ max-height: 0;
+ opacity: 0;
+ transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
+}
+
+.section.expandable.expanded .section-steps {
+ max-height: 8.75em;
+ opacity: 1;
+ transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
+ opacity 150ms 250ms;
+}
+
+.button {
+ -webkit-font-smoothing: antialiased;
+ background: var(--paper-blue-a200);
+ border-radius: 2px;
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
+ color: #fff;
+ display: inline-block;
+ font-size: .74em;
+ font-weight: 500;
+ line-height: 1.75em;
+ min-width: 2em;
+ padding: 0 1em;
+ text-align: center;
+ transition: 300ms cubic-bezier(.4, .2, 0, 1);
+ will-change: box-shadow;
+}
+
+.button:hover {
+ background: var(--paper-blue-a400);
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24);
+}
+
+.bg {
+ background: var(--paper-light-blue-700);
+ flex: 1;
+ margin-top: 96px;
+ padding: 24px;
+}
+
+.logo-small {
+ content: -webkit-image-set(url(/logo-small.png) 1x,
+ url(/logo-small2x.png) 2x);
+ display: inline;
+ height: 1.25em;
+ vertical-align: top;
+ width: 1.25em;
+}
+
+.screenshots {
+ display: block;
+ height: 440px;
+ margin: 0 auto;
+ max-width: 100%;
+ position: relative;
+ top: -96px;
+ width: 720px;
+}
+
+.screenshot-image {
+ box-shadow: 0 0 8px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .24);
+ height: 56vw;
+ max-height: 440px;
+ max-width: 720px;
+ min-height: 294px;
+ min-width: 480px;
+ position: absolute;
+ transition: opacity 150ms;
+ width: 92vw;
+}
+
+.screenshot-image.hidden {
+ opacity: 0;
+}
+
+#screenshot-image--default {
+ background: -webkit-image-set(
+ url(https://www.gstatic.com/chrome/login/win10/default-large.webp) 1x,
+ url(https://www.gstatic.com/chrome/login/win10/default-large@2x.webp) 2x);
+ background-repeat: no-repeat;
+ background-size: cover;
+}
+
+#screenshot-image--taskbar {
+ background: -webkit-image-set(
+ url(https://www.gstatic.com/chrome/login/win10/pin-large.webp) 1x,
+ url(https://www.gstatic.com/chrome/login/win10/pin-large@2x.webp) 2x);
+ background-repeat: no-repeat;
+ background-size: cover;
+}
+
+.screenshot-html-overlay {
+ box-sizing: border-box;
+ font-size: 7px;
+ line-height: 0;
+ position: absolute;
+}
+
+#screenshot-html-overlay--browser {
+ left: 35.8%;
+ top: 75.8%;
+}
+
+#screenshot-html-overlay--edge {
+ left: 41.5%;
+ top: 82.4%;
+}
+
+#screenshot-html-overlay--taskbar {
+ left: 62.2%;
+ top: 81.5%;
+}
+
+#screenshot-html-overlay--taskbar div {
+ color: #ccc;
+ font-family: Tahoma, Verdana, Segoe, sans-serif;
+ font-weight: 500;
+}
+
+#screenshot-html-overlay--icon {
+ background-image: url(/logo-small.png);
+ background-size: cover;
+ height: 5.8%;
+ left: 70.60%;
+ top: 93.1%;
+ width: 3.5%;
+}
+
+/* This value is precisely set so that the text over the screenshot starts
+ scaling at the same time the image starts scaling too. */
+@media (min-width: 520px) {
+ .screenshot-html-overlay {
+ font-size: 1.35vw;
+ }
+}
+
+/* Font-size used when the screenshot exactly reaches its max size. */
+@media (min-width: 780px) {
+ .screenshot-html-overlay {
+ font-size: 10.5px;
+ }
+}
+
+@media (min-width: 1280px) {
+ body {
+ flex-direction: row;
+ }
+
+ .content {
+ align-items: center;
+ display: flex;
+ flex: 1;
+ justify-content: flex-end;
+ padding: 96px;
+ }
+
+ .text {
+ margin: 0 180px;
+ max-width: none;
+ width: 400px;
+ }
+
+ .bg {
+ align-items: center;
+ display: flex;
+ flex: 1;
+ margin: 0;
+ max-width: 42%;
+ padding: 0;
+ }
+
+ .screenshots {
+ margin-left: -180px;
+ max-width: none;
+ top: 0;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698