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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html

Issue 2751253003: [MD settings] align minimum font size on example (Closed)
Patch Set: merge master Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
5 <link rel="import" href="fonts_browser_proxy.html"> 5 <link rel="import" href="fonts_browser_proxy.html">
6 <link rel="import" href="../controls/settings_slider.html"> 6 <link rel="import" href="../controls/settings_slider.html">
7 <link rel="import" href="../controls/settings_dropdown_menu.html"> 7 <link rel="import" href="../controls/settings_dropdown_menu.html">
8 <link rel="import" href="../i18n_setup.html"> 8 <link rel="import" href="../i18n_setup.html">
9 <link rel="import" href="../settings_shared_css.html"> 9 <link rel="import" href="../settings_shared_css.html">
10 10
11 <dom-module id="settings-appearance-fonts-page"> 11 <dom-module id="settings-appearance-fonts-page">
12 <template> 12 <template>
13 <style include="settings-shared"></style> 13 <style include="settings-shared"></style>
14 <div class="settings-box first"> 14 <div class="settings-box first">
15 <div class="start">$i18n{fontSize}</div> 15 <div class="start">$i18n{fontSize}</div>
16 <settings-slider id="sizeSlider" 16 <settings-slider id="sizeSlider"
17 pref="{{prefs.webkit.webprefs.default_font_size}}" 17 pref="{{prefs.webkit.webprefs.default_font_size}}"
18 tick-values="[[fontSizeRange_]]" 18 tick-values="[[fontSizeRange_]]"
19 label-min="$i18n{tiny}" label-max="$i18n{huge}"> 19 label-min="$i18n{tiny}" label-max="$i18n{huge}">
20 </settings-slider> 20 </settings-slider>
21 </div> 21 </div>
22 <div class="settings-box"> 22 <div class="settings-box">
23 <div class="start">$i18n{minimumFont}</div> 23 <div class="start">$i18n{minimumFont}</div>
24 <div class="list-item" 24 <div style="
25 style=" 25 font-size:[[computeMinimumFontSize_(
26 font-size:[[computeMinimumFontSize_( 26 prefs.webkit.webprefs.minimum_font_size.value)]]px;
27 prefs.webkit.webprefs.minimum_font_size.value)]]px; 27 font-family:
28 font-family: 28 '[[prefs.webkit.webprefs.fonts.standard.Zyyy.value]]';">
29 '[[prefs.webkit.webprefs.fonts.standard.Zyyy.value]]';"> 29 [[computeMinimumFontSize_(
30 <span>[[ 30 prefs.webkit.webprefs.minimum_font_size.value)]]:
31 computeMinimumFontSize_( 31 $i18n{quickBrownFox}
32 prefs.webkit.webprefs.minimum_font_size.value)]]</span>
33 : $i18n{quickBrownFox}
34 </div> 32 </div>
35 <settings-slider id="minimumSizeSlider" 33 <settings-slider id="minimumSizeSlider"
36 pref="{{prefs.webkit.webprefs.minimum_font_size}}" 34 pref="{{prefs.webkit.webprefs.minimum_font_size}}"
37 tick-values="[[minimumFontSizeRange_]]" 35 tick-values="[[minimumFontSizeRange_]]"
38 label-min="$i18n{tiny}" label-max="$i18n{huge}"> 36 label-min="$i18n{tiny}" label-max="$i18n{huge}">
39 </settings-slider> 37 </settings-slider>
40 </div> 38 </div>
41 <div class="settings-box"> 39 <div class="settings-box">
42 <h2>$i18n{standardFont}</h2> 40 <h2>$i18n{standardFont}</h2>
43 </div> 41 </div>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 </div> 130 </div>
133 </div> 131 </div>
134 <button class="icon-external" is="paper-icon-button-light" 132 <button class="icon-external" is="paper-icon-button-light"
135 aria-label="$i18n{advancedFontSettings}" 133 aria-label="$i18n{advancedFontSettings}"
136 aria-describedby="advancedButtonSublabel"></button> 134 aria-describedby="advancedButtonSublabel"></button>
137 </div> 135 </div>
138 </template> 136 </template>
139 </template> 137 </template>
140 <script src="appearance_fonts_page.js"></script> 138 <script src="appearance_fonts_page.js"></script>
141 </dom-module> 139 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698