Adds a toggle for email lists.

1).  Improvments to name/email regexp
2).  beginnings of validation logic for email list toggle
This commit is contained in:
Jonathan Rosenbaum
2015-02-12 07:17:59 +00:00
parent a1717c99af
commit 763587f840
5 changed files with 102 additions and 8 deletions
+39 -1
View File
@@ -4,4 +4,42 @@
#first_name_error, #last_name_error
{
color: red;
}
}
/* toggle for mailman or other email list */
.toggle {
height: 50px;
}
.toggle.off .noUi-handle {
border-color: red;
}
.toggle.on .noUi-handle {
border-color: green;
}
/* get rid of the pesky handle stripping with specificity */
#email_list_toggle > div > div > div.hello:before, #email_list_toggle > div > div > div.hello:after,
{
content: none;
}
.toggle.noUi-horizontal .noUi-handle {
width: 34px;
height: 20px;
top: -2px;
}
.toggle.noUi-horizontal.noUi-extended {
padding-right: 32px;
}
.toggle.noUi-horizontal.noUi-extended .noUi-handle {
left: -1px;
}
.toggle.noUi-horizontal.noUi-extended .noUi-origin {
right: -32px;
}
+1
View File
@@ -126,6 +126,7 @@
inset 0 1px 7px #DDD,
0 3px 6px -3px #BBB;
}
/* Handle stripes;
*/