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

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

Issue 6303003: DOMUI Prefs: Implement inline editability for startup pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CSS tweak Created 9 years, 11 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 ce6fd746d074814026b9d67f9e573e1dfec045b4..e2efea1c7bd23e5d957b8a46793157c128cc1c23 100644
--- a/chrome/browser/resources/options/options_page.css
+++ b/chrome/browser/resources/options/options_page.css
@@ -379,18 +379,21 @@ list > [selected]:hover {
}
list:focus > [lead],
-list:focus > [lead][selected] {
+list:focus > [lead][selected],
+list [lead][selected][editing] {
border-top: 1px solid #b2b2b2;
border-bottom: 1px solid #b2b2b2;
}
list:focus > [lead]:nth-child(2),
-list:focus > [lead][selected]:nth-child(2) {
+list:focus > [lead][selected]:nth-child(2),
+list [lead][selected][editing]:nth-child(2) {
border-top: 1px solid #f2f2f2;
}
list:focus > [lead]:nth-last-child(2),
-list:focus > [lead][selected]:nth-last-child(2) {
+list:focus > [lead][selected]:nth-last-child(2),
+list [lead][selected][editing]:nth-last-child(2) {
border-bottom: 1px solid #f2f2f2;
}
@@ -419,7 +422,7 @@ list .deletable-item {
list .deletable-item > :first-child {
-webkit-box-align: center;
-webkit-box-flex: 1;
- -webkit-padding-end: 3px;
+ -webkit-padding-end: 5px;
display: -webkit-box;
}
@@ -434,7 +437,7 @@ list .close-button {
width: 16px;
}
-list > *:not(:hover) .close-button,
+list > *:not(:hover):not([editing]) .close-button,
list[disabled] .close-button,
list .close-button[disabled] {
opacity: 0;
@@ -449,6 +452,25 @@ list .close-button:active {
background-image: url("../../../app/theme/close_bar_p.png");
}
+list .static-text {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+list > :not([editing]) [editmode=true] {
+ display: none;
+}
+
+list > [editing] [editmode=false] {
+ display: none;
+}
+
+list > [editing] input:invalid {
+ /* TODO(stuartmorgan): Replace with validity badge */
+ background-color: pink;
+}
+
.left-side-table {
display: -webkit-box;
}
« no previous file with comments | « chrome/browser/resources/options/inline_editable_list.js ('k') | chrome/browser/resources/options/search_engine_manager.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698