OLD | NEW |
1 .hbox { | 1 .hbox { |
2 display: -webkit-box; | 2 display: -webkit-box; |
3 -webkit-box-orient: horizontal; | 3 -webkit-box-orient: horizontal; |
4 } | 4 } |
5 | 5 |
6 .vbox { | 6 .vbox { |
7 display: -webkit-box; | 7 display: -webkit-box; |
8 -webkit-box-orient: vertical; | 8 -webkit-box-orient: vertical; |
9 } | 9 } |
10 | 10 |
11 .stretch { | 11 .stretch { |
12 -webkit-box-flex: 1; | 12 -webkit-box-flex: 1; |
13 } | 13 } |
14 | 14 |
15 .frozen, | 15 .frozen, |
16 .subpage-sheet-container.frozen { | 16 .subpage-sheet-container.frozen { |
17 position: fixed; | 17 position: fixed; |
18 } | 18 } |
19 | 19 |
20 #search-field { | 20 #search-field { |
21 font-size: inherit; | 21 font-size: inherit; |
22 margin: 0; | 22 margin: 0; |
23 } | 23 } |
24 | 24 |
25 <if expr="pp_ifdef('touchui')"> | |
26 /* | 25 /* |
27 * Add padding to increase the touchable area of search box. Use original font | 26 * Add padding to increase the touchable area of search box. Use original font |
28 * size to avoid the width of search box exceeding the width of navbar. | 27 * size to avoid the width of search box exceeding the width of navbar. |
29 */ | 28 */ |
30 #search-field { | 29 html[touch-optimized] #search-field { |
31 font-size: 13px; | 30 font-size: 13px; |
32 padding: 5px; | 31 padding: 5px; |
33 } | 32 } |
34 #search-field::-webkit-search-cancel-button { | 33 html[touch-optimized] #search-field::-webkit-search-cancel-button { |
35 -webkit-transform: scale(1.5); | 34 -webkit-transform: scale(1.5); |
36 } | 35 } |
37 | 36 |
38 /* | 37 /* |
39 * In TOUCH_UI builds, make the radio/checkbox input boxes in | 38 * For touch-optimized UI, make the radio/checkbox input boxes in |
40 * options/preference pages easier to touch. | 39 * options/preference pages easier to touch. |
| 40 * TODO(rbyers): We need to solve this more generally for all web pages |
| 41 * (crbug.com/99981), and perhaps temporarily for all WebUI (crbug.com/102482). |
41 */ | 42 */ |
42 div.radio > label > span, | 43 html[touch-optimized] div.radio > label > span, |
43 div.checkbox > label > span { | 44 html[touch-optimized] div.checkbox > label > span { |
44 -webkit-padding-start: 5px; | 45 -webkit-padding-start: 5px; |
45 } | 46 } |
46 | 47 |
47 label > input[type=checkbox], | 48 html[touch-optimized] label > input[type=checkbox], |
48 label > input[type=radio] { | 49 html[touch-optimized] label > input[type=radio] { |
49 -webkit-transform: scale(1.4); | 50 -webkit-transform: scale(1.4); |
50 } | 51 } |
51 | 52 |
52 /* | 53 /* |
53 * Override the font-size rule in shared_options.css file. | 54 * Override the font-size rule in shared_options.css file. |
54 * 16 px font-size proved to be more touch friendly. It increases the touchable | 55 * 16 px font-size proved to be more touch friendly. It increases the touchable |
55 * area for buttons and input boxes. | 56 * area for buttons and input boxes. |
56 */ | 57 */ |
57 body { | 58 html[touch-optimized] body { |
58 font-size: 16px; | 59 font-size: 16px; |
59 } | 60 } |
60 </if> | |
61 | 61 |
62 .overlay { | 62 .overlay { |
63 -webkit-box-align: center; | 63 -webkit-box-align: center; |
64 -webkit-box-orient: vertical; | 64 -webkit-box-orient: vertical; |
65 -webkit-box-pack: center; | 65 -webkit-box-pack: center; |
66 -webkit-transition: 250ms opacity; | 66 -webkit-transition: 250ms opacity; |
67 background: -webkit-radial-gradient(rgba(127, 127, 127, 0.5), | 67 background: -webkit-radial-gradient(rgba(127, 127, 127, 0.5), |
68 rgba(127, 127, 127, 0.5) 35%, | 68 rgba(127, 127, 127, 0.5) 35%, |
69 rgba(0, 0, 0, 0.7)); | 69 rgba(0, 0, 0, 0.7)); |
70 bottom: 0; | 70 bottom: 0; |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); | 727 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); |
728 } | 728 } |
729 | 729 |
730 html[dir='rtl'] .controlled-setting-bubble-text { | 730 html[dir='rtl'] .controlled-setting-bubble-text { |
731 background-position: right top; | 731 background-position: right top; |
732 } | 732 } |
733 | 733 |
734 .controlled-setting-bubble-action { | 734 .controlled-setting-bubble-action { |
735 padding: 0 !important; | 735 padding: 0 !important; |
736 } | 736 } |
OLD | NEW |