2015-12-29 23:15:41 +01:00
|
|
|
/**
|
|
|
|
* Copyright 2015 IBM Corp.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
2016-01-03 23:26:47 +01:00
|
|
|
.red-ui-typedInput-container {
|
2015-12-29 23:15:41 +01:00
|
|
|
border: 1px solid $form-input-border-color;
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 34px;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow:hidden;
|
2016-06-27 00:48:59 +02:00
|
|
|
position: relative;
|
|
|
|
.red-ui-typedInput-input {
|
|
|
|
position: absolute;
|
|
|
|
left:0;
|
|
|
|
right:0;
|
|
|
|
top:0;
|
|
|
|
bottom:0;
|
|
|
|
outline: red;
|
|
|
|
}
|
2015-12-29 23:15:41 +01:00
|
|
|
input {
|
2016-06-27 00:48:59 +02:00
|
|
|
width: 100%;
|
2015-12-29 23:15:41 +01:00
|
|
|
padding: 0 0 0 1px;
|
|
|
|
margin:0;
|
|
|
|
height: 32px;
|
|
|
|
border:none;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2016-01-03 23:26:47 +01:00
|
|
|
&.red-ui-typedInput-focus:not(.input-error) {
|
2015-12-29 23:15:41 +01:00
|
|
|
border-color: $form-input-focus-color !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2016-06-27 00:48:59 +02:00
|
|
|
box-sizing: border-box;
|
2015-12-29 23:15:41 +01:00
|
|
|
border-top-left-radius: 4px;
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
padding: 0 1px 0 5px;
|
|
|
|
display:inline-block;
|
2016-01-03 23:26:47 +01:00
|
|
|
background: $typedInput-button-background;
|
2015-12-29 23:15:41 +01:00
|
|
|
height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
vertical-align: middle;
|
|
|
|
color: #555;
|
|
|
|
i {
|
|
|
|
position:relative;
|
|
|
|
top:-3px;
|
|
|
|
margin-right:4px;
|
|
|
|
margin-top: 1px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-06-04 01:40:40 +02:00
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
i {
|
|
|
|
color: #bbb;
|
|
|
|
}
|
|
|
|
}
|
2016-01-03 23:26:47 +01:00
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0 1px 0 5px;
|
|
|
|
}
|
|
|
|
|
2016-06-04 01:40:40 +02:00
|
|
|
&:not(.disabled):hover {
|
2015-12-29 23:15:41 +01:00
|
|
|
text-decoration: none;
|
2016-01-03 23:26:47 +01:00
|
|
|
background: $typedInput-button-background-hover;
|
2016-06-27 00:48:59 +02:00
|
|
|
|
|
|
|
span {
|
|
|
|
background: $typedInput-button-background-hover;
|
|
|
|
}
|
2015-12-29 23:15:41 +01:00
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-06-04 01:40:40 +02:00
|
|
|
&:not(.disabled):active {
|
2016-01-03 23:26:47 +01:00
|
|
|
background: $typedInput-button-background-active;
|
2015-12-29 23:15:41 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2016-01-03 23:26:47 +01:00
|
|
|
|
|
|
|
a.red-ui-typedInput-option-trigger {
|
|
|
|
border-top-left-radius: 0px;
|
|
|
|
border-bottom-left-radius: 0px;
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
padding: 0 5px 0 0;
|
2016-06-27 00:48:59 +02:00
|
|
|
position:absolute;
|
|
|
|
left:0;
|
|
|
|
top:0;
|
|
|
|
bottom:0;
|
|
|
|
right:0;
|
2016-01-03 23:26:47 +01:00
|
|
|
|
|
|
|
i {
|
2016-06-27 00:48:59 +02:00
|
|
|
position:absolute;
|
|
|
|
right: 4px;
|
|
|
|
top: 7px;
|
2016-01-03 23:26:47 +01:00
|
|
|
}
|
|
|
|
span {
|
|
|
|
background:#fff;
|
2016-06-27 00:48:59 +02:00
|
|
|
position:absolute;
|
|
|
|
left:0;
|
|
|
|
right:23px;
|
2016-01-03 23:26:47 +01:00
|
|
|
padding: 0 5px 0 5px;
|
|
|
|
}
|
|
|
|
}
|
2015-12-29 23:15:41 +01:00
|
|
|
}
|
2016-01-03 23:26:47 +01:00
|
|
|
.red-ui-typedInput-options {
|
2015-12-29 23:15:41 +01:00
|
|
|
@include component-shadow;
|
|
|
|
position: absolute;
|
|
|
|
border: 1px solid $primary-border-color;
|
|
|
|
background: #fff;
|
|
|
|
z-index: 2000;
|
|
|
|
a {
|
|
|
|
padding: 6px 18px 6px 6px;
|
|
|
|
display: block;
|
|
|
|
border-bottom: 1px solid $secondary-border-color;
|
|
|
|
color: #333;
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2016-01-03 23:26:47 +01:00
|
|
|
background: $typedInput-button-background-hover;
|
2015-12-29 23:15:41 +01:00
|
|
|
}
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
&:active {
|
2016-01-03 23:26:47 +01:00
|
|
|
background: $typedInput-button-background-active;
|
2015-12-29 23:15:41 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|