170 lines
5.6 KiB
CSS
170 lines
5.6 KiB
CSS
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE
|
|
*/
|
|
.mdc-floating-label {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-family: Roboto, sans-serif;
|
|
/* @alternate */
|
|
font-family: var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
font-size: 1rem;
|
|
/* @alternate */
|
|
font-size: var(--mdc-typography-subtitle1-font-size, 1rem);
|
|
font-weight: 400;
|
|
/* @alternate */
|
|
font-weight: var(--mdc-typography-subtitle1-font-weight, 400);
|
|
letter-spacing: 0.009375em;
|
|
/* @alternate */
|
|
letter-spacing: var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);
|
|
text-decoration: inherit;
|
|
/* @alternate */
|
|
-webkit-text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);
|
|
text-decoration: var(--mdc-typography-subtitle1-text-decoration, inherit);
|
|
text-transform: inherit;
|
|
/* @alternate */
|
|
text-transform: var(--mdc-typography-subtitle1-text-transform, inherit);
|
|
position: absolute;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
left: 0;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform-origin: left top;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
transform-origin: left top;
|
|
line-height: 1.15rem;
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: text;
|
|
overflow: hidden;
|
|
/* @alternate */
|
|
will-change: transform;
|
|
transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
[dir=rtl] .mdc-floating-label, .mdc-floating-label[dir=rtl] {
|
|
/*rtl:begin:ignore*/
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
right: 0;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
left: auto;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform-origin: right top;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
transform-origin: right top;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
text-align: right;
|
|
/*rtl:end:ignore*/
|
|
}
|
|
|
|
.mdc-floating-label--float-above {
|
|
cursor: auto;
|
|
}
|
|
|
|
.mdc-floating-label--required::after {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
margin-left: 1px;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
margin-right: 0px;
|
|
content: "*";
|
|
}
|
|
[dir=rtl] .mdc-floating-label--required, .mdc-floating-label--required[dir=rtl] {
|
|
/*rtl:begin:ignore*/
|
|
/*rtl:end:ignore*/
|
|
}
|
|
[dir=rtl] .mdc-floating-label--required::after, .mdc-floating-label--required[dir=rtl]::after {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
margin-left: 0;
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
margin-right: 1px;
|
|
}
|
|
|
|
.mdc-floating-label--float-above {
|
|
-webkit-transform: translateY(-106%) scale(0.75);
|
|
transform: translateY(-106%) scale(0.75);
|
|
}
|
|
|
|
.mdc-floating-label--shake {
|
|
-webkit-animation: mdc-floating-label-shake-float-above-standard 250ms 1;
|
|
animation: mdc-floating-label-shake-float-above-standard 250ms 1;
|
|
}
|
|
|
|
@-webkit-keyframes mdc-floating-label-shake-float-above-standard {
|
|
0% {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
33% {
|
|
-webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
66% {
|
|
-webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
100% {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
}
|
|
|
|
@keyframes mdc-floating-label-shake-float-above-standard {
|
|
0% {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
33% {
|
|
-webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(4% - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
66% {
|
|
-webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
100% {
|
|
/* @noflip */
|
|
/*rtl:ignore*/
|
|
-webkit-transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
transform: translateX(calc(0 - 0%)) translateY(-106%) scale(0.75);
|
|
}
|
|
}
|
|
|
|
/*# sourceMappingURL=mdc.floating-label.css.map*/ |