summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp4/new_tab.css
blob: 2f0d56d1b6d5e2110f23657eaf9e85811e687c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

html {
  font-family: segoe ui, arial, helvetica, sans-serif;
  font-size: 14px;
  /* It's necessary to put this here instead of in body in order to get the
     background-size of 100% to work properly */
  height: 100%;
  overflow: hidden;
}

body {
  background-size: auto 100%;
  margin: 0;
  /* Don't highlight links when they're tapped.  Safari has bugs here that
     show up as flicker when dragging in some situations */
  -webkit-tap-highlight-color: transparent;
  /* Don't allow selecting text - can occur when dragging */
  -webkit-user-select: none;
}

/* [hidden] does display:none, but its priority is too low in some cases. */
[hidden] {
  display: none !important;
}

#notification-container {
  display: block;
  margin-top: 2px;
  position: relative;
  text-align: center;
  z-index: 100;
  -webkit-transition-duration: 100ms;
  -webkit-transition-property: opacity;
}

#notification-container.inactive {
  opacity: 0;
  -webkit-transition-duration: 200ms;
}

#notification {
  background-color: #FFF199;
  border: 1px solid lightGrey;
  border-radius: 6px;
  color: black;
  display: inline-block;
  font-weight: bold;
  padding: 7px 15px;
}

#notification > div > div,
#notification > div {
  display: inline-block;
}

#notification .close-button {
  vertical-align: middle;
  -webkit-margin-start: 0.5em;
}

.close-button {
  background: no-repeat;
  background-color: transparent;
  /* TODO(estade): this should animate between states. */
  background-image: url('chrome://theme/IDR_CLOSE_BAR');
  border: 0;
  cursor: default;
  display: inline-block;
  height: 16px;
  padding: 0;
  width: 16px;
}

.close-button:hover,
.close-button:focus {
  background-image: url('chrome://theme/IDR_CLOSE_BAR_H');
}

.close-button:active {
  background-image: url('chrome://theme/IDR_CLOSE_BAR_P');
}

.linkButton {
  color: #06C;
  cursor: pointer;
  display: inline-block;
  text-decoration: underline;
  -webkit-margin-start: 0.5em;
}

#card-slider-frame {
  /* Must match #footer height. */
  bottom: 50px;
  overflow: hidden;
  /* We want this to fill the window except for the region used
     by footer */
  position: fixed;
  top: 0;
  width: 100%;
}

#page-list {
  /* fill the apps-frame */
  height: 100%;
  display: -webkit-box;
}

#attribution {
  bottom: 0;
  left: auto;
  margin-left: 8px;
  /* Leave room for the scrollbar. */
  margin-right: 13px;
  position: absolute;
  right: 0;
  text-align: left;
  z-index: -5;
}

/* For themes that right-align their images, we flip the attribution to the
 * left to avoid conflicts.  */
html[themegravity='right'] #attribution,
html[dir='rtl'] #attribution {
  left: 0;
  right: auto;
  text-align: right;
}

#attribution > span {
  display: block;
  font-size: 84%;
}

#footer {
  background-image: -webkit-linear-gradient(
      rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9));
  bottom: 0;
  position: fixed;
  width: 100%;
  z-index: 5;
}

/* TODO(estade): remove this border hack and replace with a webkit-gradient
 * border-image on #footer once WebKit supports border-image-slice.
 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
#footer-border {
  height: 1px;
}

#footer-content {
  display: -webkit-box;
  height: 49px;
  -webkit-box-align: center;
}

#footer-content > * {
  margin: 0 9px;
}

#logo-img {
  margin-top: 4px;
}

.starting-up * {
  -webkit-transition: none !important;
}

/* Login Status. **************************************************************/

#login-container {
  background: transparent none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  /* Leave room for the scrollbar. */
  margin-left: 13px;
  margin-right: 13px;
  margin-top: 5px;
  padding: 0;
  position: fixed;
  right: 0;
  text-align: right;
  top: 0;
  z-index: 100;
  -webkit-box-shadow: none;
}

html[dir='rtl'] #login-container {
  left: 0;
  right: auto;
}

.login-status-icon {
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 27px;
  -webkit-padding-end: 37px;
}

html[dir='rtl'] .login-status-icon {
  background-position-x: left;
}

.profile-name:hover {
  text-decoration: underline;
}

.link-span {
  text-decoration: underline;
}

#login-status-bubble-contents {
  font-size: 13px;
}

#login-status-message-container {
  margin-bottom: 13px;
}

#login-status-learn-more {
  display: inline-block;
}

.login-status-row {
  display: -webkit-box;
  -webkit-box-align: center;
  -webkit-box-orient: horizontal;
  -webkit-box-pack: end;
}

#login-status-advanced-container {
  -webkit-box-flex: 1;
}

#login-status-dismiss {
  min-width: 6em;
}

/* Trash. *********************************************************************/

#trash {
  -webkit-transition: top 200ms, opacity 0;
  -webkit-transition-delay: 0, 200ms;
  color: #222;
  height: 100%;
  position: absolute;
  opacity: 0;
  right: 0;
  top: 50px;
  width: auto;
}

html[dir='rtl'] #trash {
  left: 0;
  right: auto;
}

#footer.showing-trash-mode #trash {
  -webkit-transition-delay: 0, 0;
  -webkit-transition-duration: 0, 200ms;
  opacity: 0.75;
  top: 0;
}

#footer.showing-trash-mode #trash.drag-target {
  opacity: 1;
}

#trash > .trash-text {
  -webkit-padding-end: 7px;
  -webkit-padding-start: 30px;
  border: 1px dashed #7f7f7f;
  border-radius: 4px;
  display: inline-block;
  font-size: 84%;
  padding-bottom: 9px;
  padding-top: 10px;
  position: relative;
  top: 7px;
}

#trash > .lid,
#trash > .can {
  top: 18px;
}

#footer.showing-trash-mode #trash.drag-target .lid {
  -webkit-transform: rotate(-45deg);
}

html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid {
  -webkit-transform: rotate(45deg);
}

#fontMeasuringDiv {
  /* The font attributes match the nav inputs. */
  font-size: 8pt;
  font-weight: bold;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* Page switcher buttons. *****************************************************/

.page-switcher {
  background-color: transparent;
  border: none;
  bottom: 0;
  font-size: 40px;
  padding: 0;
  position: absolute;
  margin: 0;
  max-width: 150px;
  min-width: 90px;
  outline: none;
  top: 0;
  z-index: 5;
  -webkit-transition: width 150ms, right 150ms, background-color 150ms;
}