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

Side by Side Diff: chrome/browser/resources/ntp_android/opentabs.css

Issue 10831317: Upstream Android NTP resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved .png files to separate CL Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2012 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 .list-item {
6 -webkit-tap-highlight-color: transparent;
7 -webkit-transition: 300ms linear;
8 -webkit-transition-property: background;
9 background: transparent;
10 height: 50px;
11 padding-bottom: auto;
12 padding-top: auto;
13 position: relative; /* So the fader can be positioned at the end */
14 }
15
16 .list-item-active,
17 .session-header .list-item.list-item-active {
18 -webkit-tap-highlight-color: transparent;
19 background: rgba(51, 181, 229, 0.4);
20 }
21
22 .list-item-active.no-active-delay {
23 -webkit-transition: none;
24 }
25
26 .list-item.standard-divider {
27 border-bottom: 1px solid #c1c1c1;
28 }
29
30 .list-item .section-divider {
31 background-color: #777;
32 bottom: 0;
33 height: 2px;
34 position: absolute;
35 width: 100%;
36 }
37
38 .list-item .icon {
39 background-position: center center;
40 background-repeat: no-repeat;
41 background-size: 24px;
42 height: 48px;
43 left: 0;
44 position: absolute;
45 width: 48px;
46 }
47
48 .list-item .title {
49 -webkit-box-align: center;
50 -webkit-mask-image: -webkit-gradient(
51 linear,
52 left center,
53 right center,
54 from(rgba(0,0,0,1)),
55 color-stop(0.85, rgba(0,0,0,1)),
56 color-stop(0.95, rgba(0,0,0,0)),
57 to(rgba(0,0,0,0))
58 );
59 color: #4c4c4c;
60 display: -webkit-box;
61 font-size: 16px;
62 height: 100%;
63 left: 50px;
64 overflow: hidden;
65 position: absolute;
66 right: 0;
67 top: 0;
68 white-space: nowrap;
69 }
70
71 .session-header .list-item {
72 background: #ebebeb;
73 }
74
75 .title .session-name {
76 color: #4c4c4c;
77 font-weight: bold;
78 }
79
80 .title .session-last-synced {
81 color: #8f8f8f;
82 font-weight: bold;
83 }
84
85 .session-children-container {
86 -webkit-transition: height 200ms ease-in-out;
87 height: 100%; /* needed for collapse animation */
88 overflow: hidden;
89 }
90
91 .session-header {
92 position: relative;
93 }
94
95 .expando {
96 background-size: 100%;
97 height: 13px;
98 margin-top: -6.5px;
99 position: absolute;
100 right: 18.5px;
101 top: 50%;
102 width: 14px;
103 }
104
105 .expando.open {
106 background-image: url(images/disclosure_open_mdpi.png);
107 }
108
109 .expando.closed {
110 background-image: url(images/disclosure_closed_mdpi.png);
111 }
112
113 .session-icon.laptop {
114 background-image: url(images/laptop_mdpi.png);
115 }
116
117 .session-icon.tablet {
118 background-image: url(images/tablet_mdpi.png);
119 }
120
121 .session-icon.phone {
122 background-image: url(images/phone_mdpi.png);
123 }
124
125 .session-icon.documents {
126 background-image: url(images/sent_mdpi.png);
127 }
128
129 @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
130 .expando.open {
131 background-image: url(images/disclosure_open_hdpi.png);
132 }
133 .expando.closed {
134 background-image: url(images/disclosure_closed_hdpi.png);
135 }
136 .session-icon.laptop {
137 background-image: url(images/laptop_hdpi.png);
138 }
139 .session-icon.tablet {
140 background-image: url(images/tablet_hdpi.png);
141 }
142 .session-icon.phone {
143 background-image: url(images/phone_hdpi.png);
144 }
145 .session-icon.documents {
146 background-image: url(images/sent_hdpi.png);
147 }
148 }
149
150 @media screen and (-webkit-min-device-pixel-ratio: 2.0) {
151 .expando.open {
152 background-image: url(images/disclosure_open_xhdpi.png);
153 }
154 .expando.closed {
155 background-image: url(images/disclosure_closed_xhdpi.png);
156 }
157 .session-icon.laptop {
158 background-image: url(images/laptop_xhdpi.png);
159 }
160 .session-icon.tablet {
161 background-image: url(images/tablet_xhdpi.png);
162 }
163 .session-icon.phone {
164 background-image: url(images/phone_xhdpi.png);
165 }
166 .session-icon.documents {
167 background-image: url(images/sent_xhdpi.png);
168 }
169 }
170
171 .session-icon {
172 background-position: center;
173 background-repeat: no-repeat;
174 background-size: 32px 32px;
175 height: 48px;
176 width: 48px;
177 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp_android/ntp_android.js ('k') | chrome/browser/resources/ntp_android/opentabs_tablet.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698