OLD | NEW |
---|---|
1 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | 1 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> |
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
6 | 6 |
7 <dom-module id="user-manager-tutorial"> | 7 <dom-module id="user-manager-tutorial"> |
8 <link rel="import" type="css" | |
9 href="chrome://md-user-manager/user_manager_tutorial.css"> | |
10 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> | 8 <link rel="import" type="css" href="chrome://resources/css/action_link.css"> |
11 <template> | 9 <template> |
12 <style include="shared-styles"></style> | 10 <style include="shared-styles"> |
11 .tutorial-slide { | |
12 -webkit-transition: opacity 200ms ease-in-out; | |
13 background-color: white; | |
14 border-radius: 2px; | |
15 bottom: 0; | |
16 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); | |
17 height: 408px; | |
18 left: 0; | |
19 margin: auto; | |
20 position: absolute; | |
21 right: 0; | |
22 top: 0; | |
23 width: 320px; | |
24 z-index: 100; | |
25 } | |
26 | |
27 :host.single-pod #yourChrome, | |
28 :host.single-pod #complete { | |
29 -webkit-margin-start: 30px; | |
30 } | |
31 | |
32 #guests { | |
33 bottom: 20px; | |
34 left: auto; | |
35 margin: 0; | |
36 right: 100px; | |
37 top: auto; | |
38 } | |
39 | |
40 :host-context([dir='rtl']) #guests { | |
41 left: 100px; | |
42 right: auto; | |
43 } | |
44 | |
45 #friends, | |
46 #notYou { | |
47 bottom: 20px; | |
48 left: auto; | |
49 margin: 0; | |
50 right: 20px; | |
51 top: auto; | |
52 } | |
53 | |
54 :host-context([dir='rtl']) #friends, | |
55 :host-context([dir='rtl']) #notYou { | |
56 left: 20px; | |
57 right: auto; | |
58 } | |
59 | |
60 #notYou { | |
61 height: 100px; | |
62 width: 240px; | |
63 } | |
64 | |
65 .slide-contents { | |
66 padding: 0 20px; | |
67 text-align: center; | |
68 } | |
69 | |
70 .slide-title { | |
71 color: black; | |
72 font-size: 20px; | |
73 line-height: 20px; | |
74 margin: 30px 0; | |
75 } | |
76 | |
77 .slide-text { | |
78 color: var(--google-grey-600); | |
Dan Beam
2016/05/26 23:41:03
google-grey-600 doesn't exist, did you mean paper-
| |
79 font-size: 15px; | |
80 line-height: 20px; | |
81 } | |
82 | |
83 .slide-buttons { | |
84 bottom: 20px; | |
85 position: absolute; | |
86 text-align: center; | |
87 width: 100%; | |
88 } | |
89 | |
90 .slide-buttons [is='action-link'] { | |
91 width: 100%; | |
92 } | |
93 | |
94 .slide-buttons button { | |
95 bottom: 0; | |
96 height: 35px; | |
97 padding: 0 15px; | |
98 width: 138px; | |
99 } | |
100 | |
101 .arrow-down { | |
102 border-left: 15px solid transparent; | |
103 border-right: 15px solid transparent; | |
104 border-top: 15px solid white; | |
105 bottom: -15px; | |
106 height: 0; | |
107 position: absolute; | |
108 right: 40px; | |
109 width: 0; | |
110 } | |
111 | |
112 :host-context([dir='rtl']) .arrow-down { | |
113 left: 40px; | |
114 right: auto; | |
115 } | |
116 | |
117 #guests .arrow-down { | |
118 right: 110px; | |
119 } | |
120 | |
121 :host-context([dir='rtl']) #guests .arrow-down { | |
122 left: 110px; | |
123 right: auto; | |
124 } | |
125 | |
126 .slide-image { | |
127 height: 182px; | |
128 } | |
129 | |
130 #yourChrome .slide-image { | |
131 background-color: rgb(241, 202, 58); | |
132 background-image: | |
133 url(chrome://theme/IDR_ICON_USER_MANAGER_TUTORIAL_YOUR_CHROME); | |
134 } | |
135 | |
136 #guests .slide-image { | |
137 background-color: rgb(90, 196, 144); | |
138 background-image: url(chrome://theme/IDR_ICON_USER_MANAGER_TUTORIAL_GUES TS); | |
139 } | |
140 | |
141 #friends .slide-image { | |
142 background-color: var(--paper-light-blue-100); | |
143 background-image: | |
144 url(chrome://theme/IDR_ICON_USER_MANAGER_TUTORIAL_FRIENDS); | |
145 } | |
146 | |
147 #complete .slide-image { | |
148 background-color: white; | |
149 background-image: | |
150 url(chrome://theme/IDR_ICON_USER_MANAGER_TUTORIAL_COMPLETE); | |
151 } | |
152 | |
153 #notYou #dismiss { | |
154 position: absolute; | |
155 right: 5px; | |
156 top: 5px; | |
157 } | |
158 | |
159 #notYou #slide-add-user { | |
160 margin-top: 10px; | |
161 } | |
162 | |
163 :host-context([dir='rtl']) #notYou #dismiss { | |
164 left: 5px; | |
165 right: auto; | |
166 } | |
167 </style> | |
13 <template is="dom-if" if="[[!hidden_]]"> | 168 <template is="dom-if" if="[[!hidden_]]"> |
14 <template is="dom-if" | 169 <template is="dom-if" |
15 if="[[!isStepHidden_(currentStep_, steps_.YOUR_CHROME)]]"> | 170 if="[[!isStepHidden_(currentStep_, steps_.YOUR_CHROME)]]"> |
16 <div class="tutorial-slide" id="[[steps_.YOUR_CHROME]]"> | 171 <div class="tutorial-slide" id="[[steps_.YOUR_CHROME]]"> |
17 <div class="slide-image"></div> | 172 <div class="slide-image"></div> |
18 <div class="slide-contents"> | 173 <div class="slide-contents"> |
19 <div class="slide-title">[[i18n('slideYourChromeTitle')]]</div> | 174 <div class="slide-title">[[i18n('slideYourChromeTitle')]]</div> |
20 <div class="slide-text">[[i18n('slideYourChromeText')]]</div> | 175 <div class="slide-text">[[i18n('slideYourChromeText')]]</div> |
21 </div> | 176 </div> |
22 <div class="slide-buttons"> | 177 <div class="slide-buttons"> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 </a> | 242 </a> |
88 </div> | 243 </div> |
89 </div> | 244 </div> |
90 <div class="arrow-down"></div> | 245 <div class="arrow-down"></div> |
91 </div> | 246 </div> |
92 </template> | 247 </template> |
93 </template> | 248 </template> |
94 </template> | 249 </template> |
95 <script src="chrome://md-user-manager/user_manager_tutorial.js"></script> | 250 <script src="chrome://md-user-manager/user_manager_tutorial.js"></script> |
96 </dom-module> | 251 </dom-module> |
OLD | NEW |