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

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

Issue 5685003: DOMUI Prefs: Add a deletable item list type, and use it for startup pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits fixed Created 10 years 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 20a640d2e3e0dbc5c1f91d6a12348048b64ebdd3..491b54393c11fd0b9a6a8029e20efc27db3cef95 100644
--- a/chrome/browser/resources/options/options_page.css
+++ b/chrome/browser/resources/options/options_page.css
@@ -396,6 +396,35 @@ list > .heading:hover {
border-color: transparent;
}
+list .deletable-item {
+ display: -webkit-box;
+}
+
+list .deletable-item > :first-child {
+ -webkit-box-flex: 1;
+}
+
+list .close-button {
+ background-color: transparent;
+ /* TODO(stuartmorgan): Replace with real images once they are available. */
+ background-image: url("../../../app/theme/close_bar.png");
+ border: none;
+ height: 16px;
+ width: 16px;
+}
+
+list > *:not(:hover) .close-button, list[disabled] .close-button {
+ display: none;
+}
+
+list .close-button:hover {
+ background-image: url("../../../app/theme/close_bar_h.png");
+}
+
+list .close-button:active {
+ background-image: url("../../../app/theme/close_bar_p.png");
+}
+
.left-side-table {
display: -webkit-box;
}
@@ -429,6 +458,10 @@ html[dir=rtl].option-name {
list .favicon-cell {
-webkit-margin-start: 7px;
-webkit-padding-start: 26px;
+ display: block;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
}
html[dir=rtl] .favicon-cell {
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | chrome/browser/resources/options/startup_page_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698