Revert "Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam()."
This reverts commit 666e22f989.
This commit is contained in:
@@ -14,11 +14,6 @@
|
||||
|
||||
@include text_headline();
|
||||
|
||||
&.btn-sm {
|
||||
font-size: 12px;
|
||||
padding: 4px 23px;
|
||||
}
|
||||
|
||||
&[disabled]
|
||||
{
|
||||
cursor: not-allowed;
|
||||
@@ -170,9 +165,6 @@
|
||||
button
|
||||
{
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
|
||||
&.invalid {
|
||||
@include invalidFormElement();
|
||||
}
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,6 @@ select
|
||||
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
&.invalid {
|
||||
@include invalidFormElement();
|
||||
}
|
||||
}
|
||||
|
||||
.opblock-body select
|
||||
@@ -57,8 +53,12 @@ input[type=file]
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
|
||||
&.invalid {
|
||||
@include invalidFormElement();
|
||||
&.invalid
|
||||
{
|
||||
animation: shake .4s 1;
|
||||
|
||||
border-color: $_color-delete;
|
||||
background: lighten($_color-delete, 35%);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -166,9 +166,3 @@ $browser-context: 16;
|
||||
@warn 'Breakpoint mixin supports: tablet, mobile, desktop';
|
||||
}
|
||||
}
|
||||
|
||||
@mixin invalidFormElement() {
|
||||
animation: shake .4s 1;
|
||||
border-color: $_color-delete;
|
||||
background: lighten($_color-delete, 35%);
|
||||
}
|
||||
|
||||
@@ -97,10 +97,6 @@ table
|
||||
width: 100%;
|
||||
max-width: 340px;
|
||||
}
|
||||
|
||||
select {
|
||||
border-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.parameter__name
|
||||
|
||||
Reference in New Issue
Block a user