web-apps/apps/common/main/resources/less/input.less

144 lines
2.8 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.form-control {
.border-radius(@border-radius-small);
.box-shadow(none);
2021-02-16 07:21:22 +00:00
color: @text-normal-ie;
2020-12-19 19:43:19 +00:00
color: @text-normal;
2016-03-11 00:48:53 +00:00
.user-select(text);
2021-02-16 07:21:22 +00:00
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
Merge branch 'develop' into feature/multiZoom5.5 # 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
2021-02-10 12:40:30 +00:00
border: @scaled-one-px-value solid @border-regular-control;
2021-02-16 07:21:22 +00:00
background-color: @background-normal-ie;
background-color: @background-normal;
2016-03-11 00:48:53 +00:00
&:focus {
2021-02-16 07:21:22 +00:00
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
2016-03-11 00:48:53 +00:00
outline: 0;
.box-shadow(none);
}
}
.form-control[readonly] {
cursor: pointer;
2021-02-16 07:21:22 +00:00
background-color: @background-normal-ie;
background-color: @background-normal;
2016-03-11 00:48:53 +00:00
}
.form-control[disabled] {
cursor: default;
2021-02-16 07:21:22 +00:00
background-color: @background-normal-ie;
background-color: @background-normal;
2016-03-11 00:48:53 +00:00
.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;
filter: none;
2016-03-11 00:48:53 +00:00
}
}
.input-field {
input,
.input-error {
float: left;
position: relative;
}
&.form-control:focus,
.form-control:focus {
2021-02-02 11:59:45 +00:00
//border-color: @border-control-focus;
}
2016-03-11 00:48:53 +00:00
&.error {
input:not([disabled]) {
2016-03-11 00:48:53 +00:00
border-color: @brand-danger;
}
input:not([disabled]) + .input-error {
2016-03-11 00:48:53 +00:00
display: block;
}
}
2020-12-25 11:50:01 +00:00
&.warning {
input:not([disabled]) + .input-error {
display: block;
}
.input-error {
&:before {
background-position: @input-warning-offset-x @input-warning-offset-y;
}
}
}
2016-03-11 00:48:53 +00:00
}
input:required:focus:invalid,
input:focus:invalid,
input.error {
border-color: @brand-danger;
& + span.input-error {
display: block;
}
}
.disabled .form-control {
opacity: @component-disabled-opacity;
2016-03-11 00:48:53 +00:00
cursor: default !important;
}
::-ms-clear {
display: none;
}
input[type="password"] {
font-size: 16px;
}
2019-09-19 09:45:40 +00:00
input[type="text"]::selection, textarea::selection {
2021-02-16 07:21:22 +00:00
background: @highlight-text-select-ie;
2020-12-19 19:43:19 +00:00
background: @highlight-text-select;
2021-02-16 07:21:22 +00:00
color: @text-inverse-ie;
2020-12-19 19:43:19 +00:00
color: @text-inverse;
2019-09-19 09:45:40 +00:00
}
textarea.form-control:focus {
2021-02-02 11:59:45 +00:00
//border-color: @border-control-focus;
2020-04-06 11:57:26 +00:00
}
.input-field-btn {
position: relative;
2020-04-06 11:57:26 +00:00
.select-button {
position: absolute;
2021-02-16 07:21:22 +00:00
right: @scaled-one-px-value-ie;
2021-01-31 19:35:09 +00:00
right: @scaled-one-px-value;
> .btn-toolbar {
height: 22px;
padding-top: 1px;
}
2020-04-06 11:57:26 +00:00
}
2021-01-31 19:35:09 +00:00
2020-04-06 11:57:26 +00:00
.input-error {
&:before {
right: 22px;
}
}
2020-04-20 12:39:40 +00:00
input {
padding-right: 20px;
}
}