You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

316 lines
12 KiB

/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.3
*/
md-input-container {
display: inline-block;
position: relative;
padding: 2px;
margin: 18px 0;
vertical-align: middle;
/*
* The .md-input class is added to the input/textarea
*/ }
md-input-container:after {
content: '';
display: table;
clear: both; }
md-input-container.md-block {
display: block; }
md-input-container .md-errors-spacer {
float: right;
min-height: 24px;
min-width: 1px; }
[dir=rtl] md-input-container .md-errors-spacer {
float: left; }
md-input-container > md-icon {
position: absolute;
top: 8px;
left: 2px;
right: auto; }
[dir=rtl] md-input-container > md-icon {
left: auto; }
[dir=rtl] md-input-container > md-icon {
right: 2px; }
md-input-container textarea,
md-input-container input[type="text"],
md-input-container input[type="password"],
md-input-container input[type="datetime"],
md-input-container input[type="datetime-local"],
md-input-container input[type="date"],
md-input-container input[type="month"],
md-input-container input[type="time"],
md-input-container input[type="week"],
md-input-container input[type="number"],
md-input-container input[type="email"],
md-input-container input[type="url"],
md-input-container input[type="search"],
md-input-container input[type="tel"],
md-input-container input[type="color"] {
/* remove default appearance from all input/textarea */
-moz-appearance: none;
-webkit-appearance: none; }
md-input-container input[type="date"],
md-input-container input[type="datetime-local"],
md-input-container input[type="month"],
md-input-container input[type="time"],
md-input-container input[type="week"] {
min-height: 26px; }
md-input-container textarea {
resize: none;
overflow: hidden; }
md-input-container textarea.md-input {
min-height: 26px;
-ms-flex-preferred-size: auto; }
md-input-container textarea[md-no-autogrow] {
height: auto;
overflow: auto; }
md-input-container label:not(.md-container-ignore) {
position: absolute;
bottom: 100%;
left: 0;
right: auto; }
[dir=rtl] md-input-container label:not(.md-container-ignore) {
left: auto; }
[dir=rtl] md-input-container label:not(.md-container-ignore) {
right: 0; }
md-input-container label:not(.md-container-ignore).md-required:after {
content: ' *';
font-size: 13px;
vertical-align: top; }
md-input-container label:not(.md-no-float):not(.md-container-ignore),
md-input-container .md-placeholder {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
order: 1;
pointer-events: none;
-webkit-font-smoothing: antialiased;
padding-left: 3px;
padding-right: 0;
z-index: 1;
-webkit-transform: translate3d(0, 28px, 0) scale(1);
transform: translate3d(0, 28px, 0) scale(1);
-webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
max-width: 100%;
-webkit-transform-origin: left top;
transform-origin: left top; }
[dir=rtl] md-input-container label:not(.md-no-float):not(.md-container-ignore), [dir=rtl]
md-input-container .md-placeholder {
padding-left: 0; }
[dir=rtl] md-input-container label:not(.md-no-float):not(.md-container-ignore), [dir=rtl]
md-input-container .md-placeholder {
padding-right: 3px; }
[dir=rtl] md-input-container label:not(.md-no-float):not(.md-container-ignore), [dir=rtl]
md-input-container .md-placeholder {
-webkit-transform-origin: right top;
transform-origin: right top; }
md-input-container .md-placeholder {
position: absolute;
top: 0;
opacity: 0;
-webkit-transition-property: opacity, -webkit-transform;
transition-property: opacity, -webkit-transform;
transition-property: opacity, transform;
transition-property: opacity, transform, -webkit-transform;
-webkit-transform: translate3d(0, 30px, 0);
transform: translate3d(0, 30px, 0); }
md-input-container.md-input-focused .md-placeholder {
opacity: 1;
-webkit-transform: translate3d(0, 24px, 0);
transform: translate3d(0, 24px, 0); }
md-input-container.md-input-has-value .md-placeholder {
-webkit-transition: none;
transition: none;
opacity: 0; }
md-input-container:not(.md-input-has-value) input:not(:focus),
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-ampm-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-day-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-hour-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-millisecond-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-minute-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-month-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-second-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-week-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-year-field,
md-input-container:not(.md-input-has-value) input:not(:focus)::-webkit-datetime-edit-text {
color: transparent; }
md-input-container .md-input {
-webkit-box-ordinal-group: 3;
-webkit-order: 2;
order: 2;
display: block;
margin-top: 0;
background: none;
padding-top: 2px;
padding-bottom: 1px;
padding-left: 2px;
padding-right: 2px;
border-width: 0 0 1px 0;
line-height: 26px;
height: 30px;
-ms-flex-preferred-size: 26px;
border-radius: 0;
border-style: solid;
width: 100%;
box-sizing: border-box;
float: left; }
[dir=rtl] md-input-container .md-input {
float: right; }
md-input-container .md-input:focus {
outline: none; }
md-input-container .md-input:invalid {
outline: none;
box-shadow: none; }
md-input-container .md-input.md-no-flex {
-webkit-box-flex: 0 !important;
-webkit-flex: none !important;
flex: none !important; }
md-input-container .md-char-counter {
text-align: right;
padding-right: 2px;
padding-left: 0; }
[dir=rtl] md-input-container .md-char-counter {
text-align: left; }
[dir=rtl] md-input-container .md-char-counter {
padding-right: 0; }
[dir=rtl] md-input-container .md-char-counter {
padding-left: 2px; }
md-input-container .md-input-messages-animation {
position: relative;
-webkit-box-ordinal-group: 5;
-webkit-order: 4;
order: 4;
overflow: hidden;
clear: left; }
[dir=rtl] md-input-container .md-input-messages-animation {
clear: right; }
md-input-container .md-input-messages-animation.ng-enter .md-input-message-animation {
opacity: 0;
margin-top: -100px; }
md-input-container .md-input-message-animation, md-input-container .md-char-counter {
font-size: 12px;
line-height: 14px;
overflow: hidden;
-webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
opacity: 1;
margin-top: 0;
padding-top: 5px; }
md-input-container .md-input-message-animation:not(.md-char-counter), md-input-container .md-char-counter:not(.md-char-counter) {
padding-right: 5px;
padding-left: 0; }
[dir=rtl] md-input-container .md-input-message-animation:not(.md-char-counter), [dir=rtl] md-input-container .md-char-counter:not(.md-char-counter) {
padding-right: 0; }
[dir=rtl] md-input-container .md-input-message-animation:not(.md-char-counter), [dir=rtl] md-input-container .md-char-counter:not(.md-char-counter) {
padding-left: 5px; }
md-input-container:not(.md-input-invalid) .md-auto-hide .md-input-message-animation {
opacity: 0;
margin-top: -100px; }
md-input-container .md-input-message-animation:not(.ng-animate) {
opacity: 0;
margin-top: -100px; }
md-input-container .md-input-message-animation.ng-enter {
opacity: 0;
margin-top: -100px; }
md-input-container.md-input-focused label:not(.md-no-float), md-input-container.md-input-has-placeholder label:not(.md-no-float), md-input-container.md-input-has-value label:not(.md-no-float) {
-webkit-transform: translate3d(0, 6px, 0) scale(0.75);
transform: translate3d(0, 6px, 0) scale(0.75);
-webkit-transition: width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
transition: width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
transition: transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, width cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, -webkit-transform cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s; }
md-input-container.md-input-has-value label {
-webkit-transition: none;
transition: none; }
md-input-container.md-input-focused .md-input,
md-input-container .md-input.ng-invalid.ng-dirty,
md-input-container.md-input-resized .md-input {
padding-bottom: 0;
border-width: 0 0 2px 0; }
md-input-container .md-input[disabled],
[disabled] md-input-container .md-input {
background-position: bottom -1px left 0;
background-size: 4px 1px;
background-repeat: repeat-x; }
md-input-container.md-icon-float {
-webkit-transition: margin-top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
transition: margin-top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
md-input-container.md-icon-float > label {
pointer-events: none;
position: absolute; }
md-input-container.md-icon-float > md-icon {
top: 8px;
left: 2px;
right: auto; }
[dir=rtl] md-input-container.md-icon-float > md-icon {
left: auto; }
[dir=rtl] md-input-container.md-icon-float > md-icon {
right: 2px; }
md-input-container.md-icon-left > label:not(.md-no-float):not(.md-container-ignore),
md-input-container.md-icon-left > label .md-placeholder, md-input-container.md-icon-right > label:not(.md-no-float):not(.md-container-ignore),
md-input-container.md-icon-right > label .md-placeholder {
width: calc(100% - 36px - 18px); }
md-input-container.md-icon-left {
padding-left: 36px;
padding-right: 0; }
[dir=rtl] md-input-container.md-icon-left {
padding-left: 0; }
[dir=rtl] md-input-container.md-icon-left {
padding-right: 36px; }
md-input-container.md-icon-left > label {
left: 36px;
right: auto; }
[dir=rtl] md-input-container.md-icon-left > label {
left: auto; }
[dir=rtl] md-input-container.md-icon-left > label {
right: 36px; }
md-input-container.md-icon-right {
padding-left: 0;
padding-right: 36px; }
[dir=rtl] md-input-container.md-icon-right {
padding-left: 36px; }
[dir=rtl] md-input-container.md-icon-right {
padding-right: 0; }
md-input-container.md-icon-right > md-icon:last-of-type {
margin: 0;
right: 2px;
left: auto; }
[dir=rtl] md-input-container.md-icon-right > md-icon:last-of-type {
right: auto; }
[dir=rtl] md-input-container.md-icon-right > md-icon:last-of-type {
left: 2px; }
md-input-container.md-icon-left.md-icon-right {
padding-left: 36px;
padding-right: 36px; }
md-input-container.md-icon-left.md-icon-right > label:not(.md-no-float):not(.md-container-ignore),
md-input-container.md-icon-left.md-icon-right > label .md-placeholder {
width: calc(100% - (36px * 2)); }
.md-resize-wrapper {
position: relative; }
.md-resize-wrapper:after {
content: '';
display: table;
clear: both; }
.md-resize-handle {
position: absolute;
bottom: -5px;
left: 0;
height: 10px;
background: transparent;
width: 100%;
cursor: ns-resize; }
@media screen and (-ms-high-contrast: active) {
md-input-container.md-default-theme > md-icon {
fill: #fff; } }