CSS: move controls specific styles to controls.less

This commit is contained in:
Florian Strohmaier 2019-07-01 17:06:32 +02:00 committed by Johannes Meyer
parent 1c12d84eee
commit 21055d2bfe
2 changed files with 24 additions and 23 deletions

View File

@ -181,3 +181,27 @@ html.no-js .sort-control form {
margin-left: auto;
margin-top: 0.25em;
}
.controls form {
.control-label-group {
margin-top: 0;
margin-bottom: 0;
padding-top: 0.25em;
padding-bottom: 0.25em;
}
input,
select {
padding: .5em;
max-width: 16em;
}
select {
padding-right: 1.526em;
margin-top: 0;
margin-bottom: 0;
/* compensate inconsistent select height calculations */
height: 2em;
}
}

View File

@ -162,29 +162,6 @@ form input {
margin: 1em .5em;
}
.controls form {
.control-label-group {
margin-top: 0;
margin-bottom: 0;
padding-top: 0.25em;
padding-bottom: 0.25em;
}
input,
select {
line-height: 1em;
padding: .3625em .5625em;
max-width: 16em;
}
select {
padding-right: 1.526em;
margin-top: 0;
margin-bottom: 0;
}
}
form select {
padding-right: 1.5625em;
}