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

Unified Diff: chrome/browser/resources/options/options_page.css

Issue 8695007: Replace TOUCH_UI condition in WebUI with dynamic flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tiny tweaks based on CR feedback Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/options.js ('k') | chrome/browser/resources/shared/js/cr.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/options_page.css
diff --git a/chrome/browser/resources/options/options_page.css b/chrome/browser/resources/options/options_page.css
index 0af61202fcb3d83769134cc335317df1a1ebe44e..ff45d67fd439afafe92a61412159eece6b683cfc 100644
--- a/chrome/browser/resources/options/options_page.css
+++ b/chrome/browser/resources/options/options_page.css
@@ -22,30 +22,31 @@
margin: 0;
}
-<if expr="pp_ifdef('touchui')">
/*
* Add padding to increase the touchable area of search box. Use original font
* size to avoid the width of search box exceeding the width of navbar.
*/
-#search-field {
+html[touch-optimized] #search-field {
font-size: 13px;
padding: 5px;
}
-#search-field::-webkit-search-cancel-button {
+html[touch-optimized] #search-field::-webkit-search-cancel-button {
-webkit-transform: scale(1.5);
}
/*
- * In TOUCH_UI builds, make the radio/checkbox input boxes in
+ * For touch-optimized UI, make the radio/checkbox input boxes in
* options/preference pages easier to touch.
+ * TODO(rbyers): We need to solve this more generally for all web pages
+ * (crbug.com/99981), and perhaps temporarily for all WebUI (crbug.com/102482).
*/
-div.radio > label > span,
-div.checkbox > label > span {
+html[touch-optimized] div.radio > label > span,
+html[touch-optimized] div.checkbox > label > span {
-webkit-padding-start: 5px;
}
-label > input[type=checkbox],
-label > input[type=radio] {
+html[touch-optimized] label > input[type=checkbox],
+html[touch-optimized] label > input[type=radio] {
-webkit-transform: scale(1.4);
}
@@ -54,10 +55,9 @@ label > input[type=radio] {
* 16 px font-size proved to be more touch friendly. It increases the touchable
* area for buttons and input boxes.
*/
-body {
+html[touch-optimized] body {
font-size: 16px;
}
-</if>
.overlay {
-webkit-box-align: center;
« no previous file with comments | « chrome/browser/resources/options/options.js ('k') | chrome/browser/resources/shared/js/cr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698