foodsoft/app/assets/stylesheets/delta_input.less

32 lines
758 B
Text
Raw Normal View History

// needs @import "twitter/bootstrap/bootstrap";
form.delta-input, .delta-input form {
margin: 0;
padding: 0;
}
.delta-input {
.btn {
2015-11-18 22:35:23 +01:00
padding: 4px 0;
width: 24px;
vertical-align: middle;
2015-11-18 22:35:23 +01:00
font-size: 10px;
}
input[data-delta] {
text-align: center;
}
// handle error class outside of bootstrap controls
input[data-delta].error {
// relevant bootstrap portion of: .formFieldState(@errorText, @errorText, @errorBackground);
border-color: @errorText;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
&:focus {
border-color: darken(@errorText, 10%);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@errorText, 20%);
.box-shadow(@shadow);
}
}
}