- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / history / history_mobile.css
1 /* Copyright (c) 2013 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 /* This file contains styles specific to Android and iOS. */
6
7 html {
8   height: 100%;
9 }
10
11 body {
12   color: rgb(76, 76, 76);
13   height: 100%;
14   margin: 0;
15 }
16
17 .page {
18   -webkit-flex-flow: column;
19   display: -webkit-flex;
20   height: 100%;
21 }
22
23 #scrolling-container {
24   -webkit-flex: auto;  /* Container should take up extra vertical space. */
25   -webkit-overflow-scrolling: touch;
26   overflow-y: auto;
27 }
28
29 h1 {
30   font-weight: bold;
31   margin-bottom: 12px;
32 }
33
34 #top-container,
35 #results-display {
36   margin: 0;
37 }
38
39 #top-container,
40 #results-display,
41 #results-pagination {
42   max-width: none;
43 }
44
45 h1,
46 h3,
47 #notification-bar,
48 #search-field,
49 .entry-box,
50 #loading-spinner {
51   padding-left: 16px;
52   padding-right: 16px;
53 }
54
55 h3 {
56   background: rgb(245, 245, 245);
57   color: rgb(138, 138, 138);
58   font-size: 14px;
59   height: 30px;
60   line-height: 30px;
61   margin-top: 0;
62   overflow: hidden;
63   text-overflow: ellipsis;
64   white-space: nowrap;
65 }
66
67 #search-field {
68   -webkit-padding-start: 64px;
69   background-image:
70       url('../../../../ui/webui/resources/images/2x/search.png');
71   background-position: 16px center;
72   background-repeat: no-repeat;
73   background-size: 32px;
74   border: 0;
75   display: block;
76   line-height: 1.5;
77   margin-top: 16px;
78   width: 100%;
79 }
80
81 html[dir='rtl'] #search-field {
82   background-position: right 16px center;
83 }
84
85 .no-results-message {
86   margin-bottom: 1em;
87   padding-left: 16px;
88   padding-right: 16px;
89 }
90
91 .search-results .no-results-message {
92   margin-top: 1em;
93 }
94
95 #notification-bar.alone {
96   float: none;
97   font-size: 75%;
98   margin: 0;
99   padding-bottom: 0;
100   padding-top: 0;
101 }
102
103 #remove-selected,
104 #search-button,
105 .gap {
106   display: none;
107 }
108
109 .entry-box {
110   -webkit-padding-end: 0;
111 }
112
113 button.remove-entry {
114   background: url('../../../../ui/webui/resources/images/2x/x-thin.png')
115       no-repeat center center;
116   background-size: 13px;
117   border: 0;
118   box-sizing: border-box;
119   height: 100%;
120   min-width: 45px;
121   opacity: 0.7;
122   padding: 0 16px;
123   vertical-align: top;
124   width: 45px;
125 }
126
127 button.remove-entry:active {
128   opacity: 1.0;
129 }
130
131 .entry-box {
132   margin-bottom: 0;
133   margin-top: 0;
134   padding-bottom: 0;
135 }
136
137 h3,
138 .entry,
139 #search-field {
140   border-bottom: 1px solid rgb(220, 220, 220);
141   border-top: 1px solid rgb(220, 220, 220);
142   margin-bottom: -1px;
143   overflow: hidden;
144 }
145
146 .entry-box,
147 #search-field,
148 #results-pagination button {
149   height: 60px;
150 }
151
152 .entry-box-container {
153   display: block;
154 }
155
156 input {
157   border-radius: 0;
158 }
159
160 #clear-browsing-data {
161   /* Style it like a native Android button. */
162   background-color: rgb(221, 221, 221);
163   border: 0;
164   border-radius: 0;
165   border-top: 1px solid rgb(198, 198, 198);
166   box-shadow: none;
167   font-size: 75%;
168   font-weight: bold;
169   height: 46px;
170   margin: 0;
171   min-height: 46px;
172   text-shadow: none;
173   text-transform: uppercase;
174   width: 100%;
175 }
176
177 .day-results,
178 .search-results {
179   margin: 0;
180 }
181
182 /* Fade out the entry-box, rather than its parent node, so that the dividing
183    line between entries doesn't fade out. */
184 .entry.fade-out .entry-box {
185   -webkit-transition: opacity 200ms;
186   opacity: 1;
187 }
188
189 .entry.fade-out {
190   opacity: 1;
191 }
192
193 .entry.fade-out .entry-box {
194   opacity: 0;
195 }
196
197 .entry input[type=checkbox] {
198   display: none;
199 }
200
201 .entry .visit-entry {
202   -webkit-flex: auto;
203   -webkit-flex-flow: column;
204   -webkit-padding-start: 48px;
205   background-size: 32px;
206   line-height: 1.3;
207 }
208
209 .entry .domain {
210   -webkit-padding-start: 0;
211   font-size: 14px;
212 }
213
214 #older-button {
215   -webkit-padding-end: 16px;
216 }
217
218 #newest-button {
219   -webkit-padding-start: 16px;
220 }
221
222 #loading-spinner {
223   margin-top: 16px;
224 }
225
226 <if expr="is_ios">
227 /* iOS does not support the latest flexbox syntax, only the 2009 working draft
228    syntax (http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/). */
229 .entry-box,
230 .site-domain-wrapper {
231   -wekbit-box-align: center;
232   display: -webkit-box;
233 }
234
235 .entry .visit-entry {
236   -webkit-box-flex: 1;
237   -webkit-box-orient: vertical;
238   -webkit-box-pack: center;
239   display: -webkit-box;
240 }
241
242 #scrolling-container {
243   bottom: 46px;
244   left: 0;
245   position: fixed;
246   right: 0;
247   top: 0;
248 }
249
250 #clear-browsing-data {
251   bottom: 0;
252   position: fixed;
253 }
254 </if>
255
256 .entry .bookmark-section {
257   display: none;
258 }
259
260 .entry .time {
261   line-height: 60px;
262   min-width: 90px;
263   text-align: inherit;
264   width: 90px;
265 }
266
267 @media only screen and (max-width:600px) {
268
269   /* Omit the time on very small screens. */
270   .entry .time {
271     display: none;
272   }
273
274 } /* @media only screen and (max-width:600px) */
275
276 @media only screen and (min-width:720px) {
277
278   h3,
279   .entry,
280   #search-field {
281     border: 1px solid rgb(220, 220, 220);
282   }
283
284   h3 {
285     margin-top: 30px;
286   }
287
288   #scrolling-container {
289     padding-bottom: 30px;
290   }
291
292   #scrolling-container > * {
293     margin-left: auto;
294     margin-right: auto;
295     max-width: 718px;
296   }
297
298   h1,
299   #notification-bar,
300   #loading-spinner,
301   .no-results-message {
302     padding-left: 0;
303     padding-right: 0;
304   }
305
306 } /* @media only screen and (max-width:720px) */
307
308 <if expr="is_ios">
309 .ios-keyboard-visible #clear-browsing-data {
310   display: none;
311 }
312
313 .ios-keyboard-visible #scrolling-container {
314   /* Should be 0, but that breaks scrolling -- see crbug.com/292715. */
315   bottom: -1px;
316 }
317 </if> /* is_ios */