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

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

Issue 7088010: Layout adjustment for i18n compatibility. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Cleanup rule redundancy. Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
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 932eded11531571666521a8d0d1879901df1abf6..26dce9d66788f77c13ee1d904afb19c819fca4b6 100644
--- a/chrome/browser/resources/options/options_page.css
+++ b/chrome/browser/resources/options/options_page.css
@@ -353,6 +353,11 @@ html.hide-menu #mainview {
min-height: 192px;
}
+/**
+ * TODO(kevers): Standardize formatting of sections to use display tables.
+ * For now, we require separate specialized rules for sections that are
+ * formatted as table rows.
+ */
section {
-webkit-box-orient: horizontal;
border-bottom: 1px solid #eeeeee;
@@ -777,3 +782,36 @@ html:not([flashPluginSupportsClearSiteData]) .clear-plugin-lso-data-enabled,
html[flashPluginSupportsClearSiteData] .clear-plugin-lso-data-disabled {
display: none;
}
+
+
+/* Display a collection of sections as a table in order to display nicely
+ * in multiple locales. The left column should expand to accomodate the
+ * widest label without introducing excessive whitespace. Labels in
+ * languages such as German or Dutch tend to be wider than for English
+ */
+.displaytable {
+ display: table;
+ width: 100%;
+}
+
+.displaytable > section {
+ display: table-row;
+}
+
+/* right table column containing settable options */
+.displaytable > section > h3 + div,
+.displaytable > section > h3 + table {
+ padding-top: 17px;
+ padding-bottom: 20px;
+}
+
+.displaytable > section > * {
+ display: table-cell;
+ vertical-align: baseline;
+ border-bottom: 1px solid #eeeeee;
+}
+
+/* do not display a border after the last section in the table */
+.displaytable > section:last-child > * {
+ border-bottom: none;
+}
« no previous file with comments | « chrome/browser/resources/options/chromeos/system_options.html ('k') | chrome/browser/resources/options/personal_options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698