f62aa45b18
# Conflicts: # apps/common/main/resources/img/toolbar/1x/big/.css.handlebars # apps/common/main/resources/less/asc-mixins.less # apps/common/main/resources/less/buttons.less # apps/common/main/resources/less/checkbox.less # apps/common/main/resources/less/combo-dataview.less # apps/common/main/resources/less/comments.less # apps/common/main/resources/less/common.less # apps/common/main/resources/less/dataview.less # apps/common/main/resources/less/dropdown-menu.less # apps/common/main/resources/less/listview.less # apps/common/main/resources/less/multislider-gradient.less # apps/common/main/resources/less/radiobox.less # apps/common/main/resources/less/scroller.less # apps/common/main/resources/less/separator.less # apps/common/main/resources/less/theme-colorpalette.less # apps/common/main/resources/less/toolbar.less # apps/common/main/resources/less/window.less # apps/documenteditor/main/resources/less/advanced-settings.less # apps/documenteditor/main/resources/less/filemenu.less # apps/documenteditor/main/resources/less/leftmenu.less # apps/documenteditor/main/resources/less/rightmenu.less # apps/documenteditor/main/resources/less/statusbar.less # apps/documenteditor/main/resources/less/toolbar.less # apps/presentationeditor/main/resources/less/leftmenu.less # apps/presentationeditor/main/resources/less/rightmenu.less # apps/presentationeditor/main/resources/less/statusbar.less # apps/spreadsheeteditor/main/resources/less/celleditor.less # apps/spreadsheeteditor/main/resources/less/leftmenu.less # apps/spreadsheeteditor/main/resources/less/rightmenu.less # apps/spreadsheeteditor/main/resources/less/statusbar.less # apps/spreadsheeteditor/main/resources/less/toolbar.less
135 lines
2.4 KiB
Plaintext
135 lines
2.4 KiB
Plaintext
.form-control {
|
|
.border-radius(@border-radius-small);
|
|
.box-shadow(none);
|
|
color: @text-normal;
|
|
.user-select(text);
|
|
|
|
border: @scaled-one-px-value solid @border-regular-control;
|
|
background-color: @background-normal;
|
|
|
|
&:focus {
|
|
border-color: @border-control-focus;
|
|
outline: 0;
|
|
.box-shadow(none);
|
|
}
|
|
}
|
|
|
|
.form-control[readonly] {
|
|
cursor: pointer;
|
|
background-color: @background-normal;
|
|
}
|
|
|
|
.form-control[disabled] {
|
|
cursor: default;
|
|
background-color: @background-normal;
|
|
.user-select(none);
|
|
}
|
|
|
|
.input-row {
|
|
position: relative;
|
|
}
|
|
|
|
.input-error {
|
|
display: none;
|
|
|
|
&:before {
|
|
content: '';
|
|
position: absolute;
|
|
right: 3px;
|
|
top: 4px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background-position: @input-error-offset-x @input-error-offset-y;
|
|
}
|
|
}
|
|
|
|
.input-field {
|
|
input,
|
|
.input-error {
|
|
float: left;
|
|
position: relative;
|
|
}
|
|
|
|
&.form-control:focus,
|
|
.form-control:focus {
|
|
//border-color: @border-control-focus;
|
|
}
|
|
|
|
&.error {
|
|
input:not([disabled]) {
|
|
border-color: @brand-danger;
|
|
}
|
|
|
|
input:not([disabled]) + .input-error {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&.warning {
|
|
input:not([disabled]) + .input-error {
|
|
display: block;
|
|
}
|
|
|
|
.input-error {
|
|
&:before {
|
|
background-position: @input-warning-offset-x @input-warning-offset-y;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
input:required:focus:invalid,
|
|
input:focus:invalid,
|
|
input.error {
|
|
border-color: @brand-danger;
|
|
|
|
& + span.input-error {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.disabled .form-control {
|
|
opacity: 0.65;
|
|
cursor: default !important;
|
|
}
|
|
|
|
::-ms-clear {
|
|
display: none;
|
|
}
|
|
|
|
input[type="password"] {
|
|
font-size: 16px;
|
|
}
|
|
|
|
input[type="text"]::selection, textarea::selection {
|
|
background: @highlight-text-select;
|
|
color: @text-inverse;
|
|
}
|
|
|
|
textarea.form-control:focus {
|
|
//border-color: @border-control-focus;
|
|
}
|
|
|
|
.input-field-btn {
|
|
position: relative;
|
|
|
|
.select-button {
|
|
position: absolute;
|
|
right: @scaled-one-px-value;
|
|
|
|
> .btn-toolbar {
|
|
height: 22px;
|
|
padding-top: 1px;
|
|
}
|
|
}
|
|
|
|
.input-error {
|
|
&:before {
|
|
right: 22px;
|
|
}
|
|
}
|
|
|
|
input {
|
|
padding-right: 20px;
|
|
}
|
|
} |