2016-07-26 22:55:29 +00:00
|
|
|
@import '../../core/variables.scss';
|
|
|
|
|
|
|
|
|
|
$input-size: 32px;
|
|
|
|
|
|
|
|
|
|
.md-input-container {
|
|
|
|
|
min-height: 48px;
|
2016-08-01 05:45:40 +00:00
|
|
|
margin: 4px 0 20px;
|
2016-07-26 22:55:29 +00:00
|
|
|
padding-top: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&:after {
|
2016-08-01 05:45:40 +00:00
|
|
|
height: 1px;
|
2016-07-26 22:55:29 +00:00
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
2016-08-01 05:45:40 +00:00
|
|
|
background-color: rgba(#000, .12);
|
2016-07-26 22:55:29 +00:00
|
|
|
transition: $swift-ease-out;
|
|
|
|
|
content: " ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 23px;
|
2016-07-27 04:55:32 +00:00
|
|
|
left: 0;
|
2016-07-26 22:55:29 +00:00
|
|
|
pointer-events: none;
|
|
|
|
|
transition: $swift-ease-out;
|
|
|
|
|
transition-duration: .3s;
|
|
|
|
|
color: rgba(#000, .54);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-27 22:17:22 +00:00
|
|
|
input,
|
|
|
|
|
textarea {
|
2016-07-26 22:55:29 +00:00
|
|
|
width: 100%;
|
|
|
|
|
height: $input-size;
|
2016-07-27 04:55:32 +00:00
|
|
|
padding: 0;
|
2016-07-26 22:55:29 +00:00
|
|
|
display: block;
|
|
|
|
|
border: none;
|
|
|
|
|
background: none;
|
2016-07-27 04:55:32 +00:00
|
|
|
transition: $swift-ease-out;
|
2016-07-28 03:10:33 +00:00
|
|
|
transition-property: font-size;
|
2016-07-26 22:55:29 +00:00
|
|
|
color: rgba(#000, .54);
|
2016-08-01 05:45:40 +00:00
|
|
|
font-size: 1px;
|
|
|
|
|
line-height: $input-size;
|
2016-07-26 22:55:29 +00:00
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-07-27 22:17:22 +00:00
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
|
min-height: 32px;
|
2016-08-01 05:45:40 +00:00
|
|
|
max-height: 230px;
|
|
|
|
|
padding: 5px 0;
|
|
|
|
|
line-height: 1.3em;
|
2016-07-27 22:17:22 +00:00
|
|
|
resize: none;
|
|
|
|
|
}
|
2016-08-01 05:45:40 +00:00
|
|
|
|
|
|
|
|
.md-error {
|
|
|
|
|
height: 20px;
|
2016-08-02 04:20:35 +00:00
|
|
|
padding-top: 4px;
|
2016-08-01 05:45:40 +00:00
|
|
|
display: block !important;
|
|
|
|
|
position: absolute;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translate3d(0, -8px, 0);
|
|
|
|
|
transition: $swift-ease-in;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
2016-08-02 04:20:35 +00:00
|
|
|
|
|
|
|
|
.md-count {
|
|
|
|
|
height: 20px;
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
2016-07-26 22:55:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-input-focused,
|
|
|
|
|
.md-has-value {
|
2016-07-27 04:55:32 +00:00
|
|
|
label {
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
top: 0;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-27 22:17:22 +00:00
|
|
|
input,
|
|
|
|
|
textarea {
|
2016-07-26 22:55:29 +00:00
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
2016-07-27 04:55:32 +00:00
|
|
|
}
|
2016-07-26 22:55:29 +00:00
|
|
|
|
2016-07-27 04:55:32 +00:00
|
|
|
.md-has-value {
|
2016-07-27 22:17:22 +00:00
|
|
|
input,
|
|
|
|
|
textarea {
|
2016-07-27 04:55:32 +00:00
|
|
|
color: rgba(#000, .87);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-input-inline {
|
2016-07-28 03:10:33 +00:00
|
|
|
label {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-27 04:55:32 +00:00
|
|
|
&.md-input-focused {
|
|
|
|
|
label {
|
|
|
|
|
top: 23px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-has-value {
|
|
|
|
|
label {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-input-disabled {
|
2016-08-01 05:45:40 +00:00
|
|
|
&:after {
|
|
|
|
|
background: bottom left repeat-x;
|
|
|
|
|
background-image: linear-gradient(to right, rgba(#000, .38) 0%, rgba(#000, .38) 33%, transparent 0%);
|
|
|
|
|
background-size: 4px 1px;
|
2016-07-27 04:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
2016-08-01 05:45:40 +00:00
|
|
|
label,
|
2016-07-27 22:17:22 +00:00
|
|
|
input,
|
|
|
|
|
textarea {
|
2016-07-27 04:55:32 +00:00
|
|
|
color: rgba(#000, .38);
|
2016-07-26 22:55:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2016-07-27 22:17:22 +00:00
|
|
|
|
|
|
|
|
.md-has-password {
|
|
|
|
|
&.md-input-focused .md-toggle-password {
|
|
|
|
|
color: rgba(#000, .54);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-toggle-password {
|
|
|
|
|
margin: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: -2px;
|
|
|
|
|
color: rgba(#000, .38);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-08-01 05:45:40 +00:00
|
|
|
|
|
|
|
|
.md-input-invalid {
|
|
|
|
|
.md-error {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-08-02 05:05:32 +00:00
|
|
|
|
|
|
|
|
.md-input-required {
|
|
|
|
|
label:after {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 2px;
|
|
|
|
|
right: 0;
|
|
|
|
|
transform: translateX(calc(100% + 2px));
|
|
|
|
|
content: "*";
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
line-height: 1em;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
}
|