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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_card.html

Issue 1965913005: ChromeOS: Implement minumal material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inline CSS. Created 4 years, 7 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
OLDNEW
(Empty)
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
3 found in the LICENSE file. -->
4
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
7
8 <!--
9 Simple OOBE card which should be used for OOBE UI elements.
10 It has blue header and grey footer.
11
12 Example:
13 <oobe-card>
14 <div class="header" flex vertical layout end-justified start>
jdufault 2016/05/20 18:27:27 Is the end quote after header supposed to be after
Alexander Alekseev 2016/05/24 00:38:45 Fixed.
15 ...
16 </div>
17 <oobe-input-form class="footer" ...>
18 </oobe-input-form>
19 </oobe-card>
20
21 Add class |header| to all which you want to go inside blue header. Similar
22 with class |footer|.
23 -->
24 <dom-module name="oobe-card">
25 <style>
26 :host {
27 display: flex;
28 flex-direction: column;
29 position: relative;
30 }
31
32 .oobe-header {
33 background-color: var(--google-blue-500);
34 color: white;
35 height: 198px;
36 }
37
38 :host(:not(.disabled)) .oobe-header {
39 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.17);
40 /* z-index is needed to make shadow visible. */
41 z-index: 1;
42 }
43
44 .oobe-footer {
45 background-color: white;
46 }
47
48 .oobe-footer {
jdufault 2016/05/20 18:27:27 Merge .oobe-footer classes
Alexander Alekseev 2016/05/24 00:38:45 Done.
49 position: relative;
50 }
51
52 .header-container {
53 padding: 50px 40px 18px;
54 }
55
56 .footer-container {
57 padding: 24px 40px 34px;
58 }
59
60 ::content div.oobe-body-text {
61 margin-bottom: 24px;
62 }
63
64 ::content div.oobe-body-text p {
65 color: rgba(0, 0, 0, 0.87);
66 font-size: 14px;
67 line-height: 20px;
68 margin: 0;
69 }
70
71 ::content h1.welcome-message {
72 color: white;
73 font-size: 20px;
74 font-weight: normal;
75 margin-bottom: 0;
76 }
77
78 .overlay {
79 background-color: rgba(0, 0, 0, 0.5);
80 display: none;
81 height: 100%;
82 position: absolute;
83 right: 0;
84 top: 0;
85 width: 100%;
86 z-index: 11;
87 }
88
89 :host(.full-disabled) #full-overlay,
90 :host(.disabled) #bottom-overlay,
91 </style>
92
93 <template>
94 <div class="oobe-header vertical layout relative">
jdufault 2016/05/20 18:27:27 Can you verify that the vertical, layout, and rela
Alexander Alekseev 2016/05/24 00:38:45 Yes, they are still usefull. https://elements.poly
95 <div class="header-container flex vertical layout relative">
96 <content select=".header"></content>
97 </div>
98 </div>
99 <div class="oobe-footer flex vertical layout">
100 <div class="footer-container flex vertical layout">
101 <content select=".footer"></content>
102 </div>
103 <div id="bottom-overlay" class="overlay"></div>
104 </div>
105 <div id="full-overlay" class="overlay"></div>
106 </template>
107 </dom-module>
108
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698