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

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

Issue 10827283: This updates the StaticIP configuration UI to match new mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 8 years, 4 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/options2/options_page.css
diff --git a/chrome/browser/resources/options2/options_page.css b/chrome/browser/resources/options2/options_page.css
index b65aa5302f795678b2592f7843f7166dd8635ccf..90d9c70ee563ace88a92c507d488087e3a7bd100 100644
--- a/chrome/browser/resources/options2/options_page.css
+++ b/chrome/browser/resources/options2/options_page.css
@@ -140,6 +140,53 @@ div.disabled {
padding-top: 20px;
}
+
+/* Editable text field properties */
+.editable-text-field > * {
+ -webkit-box-align: center;
+ -webkit-transition: 150ms background-color;
+ border: none;
+ box-sizing: border-box;
+ display: -webkit-box;
+ height: 20px;
+ margin: 0;
+}
+
+.editable-text-field > .spacer {
+ /* The above height rule should not apply to spacers. */
+ height: 0;
+}
+
+.editable-text-field .editable-text {
+ padding: 2px 3px;
+}
+
+.editable-text-field .static-text {
+ height: 24px;
+ overflow: hidden;
+ padding: 3px 4px;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.editable-text-field:not([editable]) > [displaymode='edit'] {
+ display: none;
+}
+
+.editable-text-field[editable] > [displaymode='static'] {
+ display: none;
+}
+
+.editable-text-field[empty] > input[type='text'] {
+ color: #ccc;
+ font-style: italic;
+}
+
+.editable-text-field[disabled] {
+ opacity: 0.6;
+}
+
+/* Editable List properties */
list > * {
-webkit-box-align: center;
-webkit-transition: 150ms background-color;
@@ -276,7 +323,7 @@ list .static-text {
white-space: nowrap;
}
-list[inlineeditable] input {
+list[type='text'][inlineeditable] input {
box-sizing: border-box;
margin: 0;
width: 100%;

Powered by Google App Engine
This is Rietveld 408576698