Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: skin/options.css

Issue 29339527: Issue 3892 - Disable button if input is invalid when adding subscriptions or filters (Closed)
Patch Set: Created April 6, 2016, 10:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« options.js ('K') | « options.js ('k') | skin/options-sprite.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skin/options.css
===================================================================
--- a/skin/options.css
+++ b/skin/options.css
@@ -91,7 +91,7 @@
display: none;
}
-input[type="text"], input[type="search"]
+input[type="text"], input[type="search"], input[type="url"]
{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@@ -392,12 +392,29 @@
border-top: 1px solid #CDCDCD;
}
-button[disabled="true"]
+button[role="checkbox"]:disabled
{
border-radius: 2px;
background-color: #ccc;
}
+#dialog-body button:disabled,
+#custom-filters-add button:disabled
+{
+ color: #A4A4A4;
+ cursor: default;
+}
+
+#dialog-body button:disabled::before
+{
+ background-position: -49px -51px;
+}
+
+#custom-filters-add button:disabled::after
+{
+ background-position: -18px -32px;
+}
+
.table button.delete
{
background-color: transparent;
@@ -481,7 +498,6 @@
{
background-position: 0px -42px;
content: "";
- cursor: pointer;
Sebastian Noack 2016/04/06 22:46:01 This was redundant, as we already set "cursor" to
height: 11px;
vertical-align: middle;
width: 7px;
@@ -879,8 +895,7 @@
#custom-filters-add button::after
{
content: "";
- background-position: -28px -32px;
Sebastian Noack 2016/04/06 22:46:02 This position was wrong. The icon is actually just
- cursor: pointer;
+ background-position: -27px -32px;
height: 10px;
-webkit-margin-start: 6px;
-moz-margin-start: 6px;
@@ -1224,7 +1239,8 @@
}
#dialog input[type="text"],
-#dialog input[type="search"]
+#dialog input[type="search"],
+#dialog input[type="url"]
{
font-size: 16px;
margin-top: 10px;
« options.js ('K') | « options.js ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld