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

Side by Side Diff: chrome/browser/resources/history/history.css

Issue 12039045: History: Fix RTL layout in grouped history and some other minor fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 7 years, 10 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
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 body:not(.uber-frame) { 5 body:not(.uber-frame) {
6 color: rgb(48, 57, 66); 6 color: rgb(48, 57, 66);
7 margin: 0 8px 0 8px; 7 margin: 0 8px 0 8px;
8 } 8 }
9 9
10 #editing-controls, 10 #editing-controls,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 /* The box should be no bigger than its parent. */ 94 /* The box should be no bigger than its parent. */
95 max-width: 100%; 95 max-width: 100%;
96 overflow: hidden; 96 overflow: hidden;
97 padding-bottom: 1px; 97 padding-bottom: 1px;
98 } 98 }
99 99
100 .site-domain-wrapper { 100 .site-domain-wrapper {
101 cursor: pointer; 101 cursor: pointer;
102 } 102 }
103 103
104 html[dir=rtl] .entry-box { 104 html[dir=rtl] .entry-box,
105 html[dir=rtl] .site-domain-wrapper {
105 float: right; /* To make the box shrink to fit its content. */ 106 float: right; /* To make the box shrink to fit its content. */
106 } 107 }
107 108
108 .day { 109 .day {
109 white-space: nowrap; 110 white-space: nowrap;
110 } 111 }
111 112
112 .search-results, 113 .search-results,
113 .day-results { 114 .day-results {
114 margin: 0 0 24px 0; 115 margin: 0 0 24px 0;
115 padding: 0; 116 padding: 0;
116 } 117 }
117 118
118 .site-results { 119 .site-results {
119 -webkit-transition: height 350ms ease-in-out; 120 -webkit-transition: height 350ms ease-in-out;
120 clear: left; 121 clear: left;
121 margin: 0; 122 margin: 0;
122 overflow: hidden; 123 overflow: hidden;
123 padding: 0; 124 padding: 0;
124 } 125 }
125 126
127 html[dir='rtl'] .site-results {
128 clear: right;
Patrick Dubroy 2013/01/30 19:23:04 Perhaps just use "clear: both" for simplicity?
Sergiu 2013/02/05 18:21:23 Done.
129 }
130
126 h2.timeframe { 131 h2.timeframe {
127 font-size: 1.5em; 132 font-size: 1.5em;
128 } 133 }
129 134
130 .snippet { 135 .snippet {
131 -webkit-box-orient: vertical; 136 -webkit-box-orient: vertical;
132 -webkit-line-clamp: 2; 137 -webkit-line-clamp: 2;
133 -webkit-margin-start: 110px; 138 -webkit-margin-start: 110px;
134 clear: both; 139 clear: both;
135 color: rgb(34, 34, 34); 140 color: rgb(34, 34, 34);
136 display: -webkit-box; 141 display: -webkit-box;
137 line-height: 1.6em; 142 line-height: 1.6em;
138 margin-bottom: 1em; 143 margin-bottom: 1em;
139 overflow: hidden; 144 overflow: hidden;
140 text-overflow: ellipsis; 145 text-overflow: ellipsis;
141 } 146 }
142 147
143 .entry .domain { 148 .entry .domain {
144 color: rgb(151, 156, 160); 149 color: rgb(151, 156, 160);
145 padding-left: 6px; 150 padding-left: 6px;
146 padding-right: 6px; 151 padding-right: 6px;
147 } 152 }
148 153
149 .site-results .domain { 154 .site-results .domain {
150 display: none; 155 display: none;
151 } 156 }
152 157
158
159 html[dir='rtl'] .number-visits {
160 direction: rtl;
161 unicode-bidi: embed;
162 }
163
153 .number-visits { 164 .number-visits {
165 /* TODO(sergiu): make sure this works on rtl properly */
Patrick Dubroy 2013/01/30 19:23:04 You should remove this TODO before landing...you a
Sergiu 2013/01/30 21:12:43 Well, it works in the current version, but I'm not
Patrick Dubroy 2013/02/02 00:36:24 I think arabic numerals are understood in most loc
Sergiu 2013/02/05 18:21:23 I've tested it in Arabic now as well and there's a
166 -webkit-margin-start: 0.3em;
154 color: rgb(151, 156, 160); 167 color: rgb(151, 156, 160);
155 } 168 }
156 169
157 .drop-down { 170 .drop-down {
158 -webkit-margin-end: 5px; 171 -webkit-margin-end: 5px;
159 background: white -webkit-canvas(drop-down-arrow) no-repeat center 4px; 172 background: white -webkit-canvas(drop-down-arrow) no-repeat center 4px;
160 border: 1px solid rgb(192, 195, 198); 173 border: 1px solid rgb(192, 195, 198);
161 border-radius: 2px; 174 border-radius: 2px;
162 height: 12px; 175 height: 12px;
163 padding: 0; 176 padding: 0;
164 position: relative; 177 position: relative;
165 top: 2px; 178 top: 2px;
166 width: 12px; 179 width: 12px;
167 } 180 }
168 181
169 .drop-down:hover { 182 .drop-down:hover {
170 background-image: -webkit-canvas(drop-down-arrow-hover); 183 background-image: -webkit-canvas(drop-down-arrow-hover);
171 border-color: rgb(48, 57, 66); 184 border-color: rgb(48, 57, 66);
172 } 185 }
173 186
174 .drop-down[menu-shown], 187 .drop-down[menu-shown],
175 .drop-down:focus { 188 .drop-down:focus {
176 background-color: rgb(48, 57, 66); 189 background-color: rgb(48, 57, 66);
177 background-image: -webkit-canvas(drop-down-arrow-active); 190 background-image: -webkit-canvas(drop-down-arrow-active);
178 border-color: rgb(48, 57, 66); 191 border-color: rgb(48, 57, 66);
179 } 192 }
180 193
181 html[dir='rtl'] .entry .title { 194 html[dir='rtl'] .entry .title,
195 html[dir='rtl'] .site-domain {
182 /* Put the favicon on the right. */ 196 /* Put the favicon on the right. */
183 background-position-x: right; 197 background-position-x: right;
184 } 198 }
185 199
186 .entry .time { 200 .entry .time {
187 color: rgb(151, 156, 160); 201 color: rgb(151, 156, 160);
188 overflow: hidden; 202 overflow: hidden;
189 text-overflow: ellipsis; 203 text-overflow: ellipsis;
190 white-space: nowrap; 204 white-space: nowrap;
191 width: 90px; 205 width: 90px;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 -webkit-padding-start: 20px; 256 -webkit-padding-start: 20px;
243 257
244 /* Control the favicon appearance. */ 258 /* Control the favicon appearance. */
245 background-position-y: 3px; 259 background-position-y: 3px;
246 background-repeat: no-repeat; 260 background-repeat: no-repeat;
247 background-size: 16px; 261 background-size: 16px;
248 } 262 }
249 263
250 .site-domain-arrow { 264 .site-domain-arrow {
251 -webkit-transition: -webkit-transform 300ms linear; 265 -webkit-transition: -webkit-transform 300ms linear;
252 color: #8F8F8F; 266 color: rgb(143, 143, 143);
253 height: 21px; 267 height: 21px;
254 margin-right: 2px; 268 margin-right: 2px;
255 text-align: center; 269 text-align: center;
256 width: 21px; 270 width: 21px;
257 } 271 }
258 272
259 .site-domain-arrow.collapse { 273 .site-domain-arrow.collapse {
260 -webkit-transform: rotate(0); 274 -webkit-transform: rotate(0);
261 } 275 }
262 276
263 .site-domain-arrow.expand { 277 .site-domain-arrow.expand {
264 -webkit-transform: rotate(90deg); 278 -webkit-transform: rotate(90deg);
265 } 279 }
266 280
281 html[dir='rtl'] .site-domain-arrow {
282 -webkit-transform: scaleX(-1);
Patrick Dubroy 2013/01/30 19:23:04 Maybe just do this with rotate() too? Might be a b
Sergiu 2013/02/05 18:21:23 Done.
283 }
284
285 html[dir='rtl'] .site-domain-arrow.expand {
286 -webkit-transform: scaleX(-1) rotate(90deg);
287 }
288
267 .entry .starred { 289 .entry .starred {
268 -webkit-margin-start: 4px; 290 -webkit-margin-start: 4px;
269 background: url('../../../../ui/webui/resources/images/star_small.png') no-rep eat; 291 background: url('../../../../ui/webui/resources/images/star_small.png') no-rep eat;
270 display: inline-block; 292 display: inline-block;
271 height: 11px; 293 height: 11px;
272 width: 11px; 294 width: 11px;
273 } 295 }
274 296
275 .entry .title > a { 297 .entry .title > a {
276 color: rgb(48, 57, 66); 298 color: rgb(48, 57, 66);
(...skipping 14 matching lines...) Expand all
291 } 313 }
292 314
293 .menu-button.drop-down { 315 .menu-button.drop-down {
294 position: relative; 316 position: relative;
295 top: 2px; 317 top: 2px;
296 } 318 }
297 319
298 #action-menu > :not(hr) { 320 #action-menu > :not(hr) {
299 line-height: 29px; 321 line-height: 29px;
300 } 322 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/history/history.js » ('j') | chrome/browser/resources/history/history.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698