UNPKG

react-toolbox-build4server

Version:

Builds react-toolbox in such a way that it's components can be required and used in node - most likely for server-side rendered webapps - without having to depend on webpack to build your entire server-side project

129 lines (118 loc) 3.88 kB
.rt-input-root { position: relative; padding: 2rem 0; } .rt-input-root.rt-input-withIcon { margin-left: 4.8rem; } .rt-input-icon { position: absolute; top: 1.6rem; left: -4.8rem; display: block; width: 4.8rem; height: 4.8rem; font-size: 2.4rem !important; line-height: 4.8rem !important; color: rgba(0, 0, 0, 0.26); text-align: center; -webkit-transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1); transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1); } .rt-input-input { display: block; width: 100%; padding: 0.8rem 0; font-size: 1.6rem; color: #212121; background-color: transparent; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); outline: none; } .rt-input-input:focus ~ .rt-input-bar:before, .rt-input-input:focus ~ .rt-input-bar:after { width: 50%; } .rt-input-input:focus ~ .rt-input-label:not(.rt-input-fixed) { color: #3f51b5; } .rt-input-input:focus ~ .rt-input-label > .rt-input-required { color: #de3226; } .rt-input-input:focus ~ .rt-input-hint { opacity: 1; } .rt-input-input:focus ~ .rt-input-icon { color: #3f51b5; } .rt-input-input:focus ~ .rt-input-label:not(.rt-input-fixed), .rt-input-input.rt-input-filled ~ .rt-input-label:not(.rt-input-fixed), .rt-input-input[type="date"] ~ .rt-input-label:not(.rt-input-fixed), .rt-input-input[type="time"] ~ .rt-input-label:not(.rt-input-fixed) { top: 0.6rem; font-size: 1.2rem; } .rt-input-input.rt-input-filled ~ .rt-input-label.rt-input-fixed, .rt-input-input.rt-input-filled ~ .rt-input-hint { display: none; } .rt-input-label { position: absolute; top: 3.2rem; left: 0; font-size: 1.6rem; line-height: 1.6rem; color: rgba(0, 0, 0, 0.26); pointer-events: none; -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -webkit-transition-duration: 0.35s; transition-duration: 0.35s; -webkit-transition-property: top, font-size, color; transition-property: top, font-size, color; } .rt-input-label.rt-input-fixed ~ .rt-input-hint { display: none; } .rt-input-hint { position: absolute; top: 3.2rem; left: 0; font-size: 1.6rem; line-height: 1.6rem; color: rgba(0, 0, 0, 0.26); pointer-events: none; opacity: 0; -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -webkit-transition-duration: 0.35s; transition-duration: 0.35s; -webkit-transition-property: opacity; transition-property: opacity; } .rt-input-bar { position: relative; display: block; width: 100%; } .rt-input-bar:before, .rt-input-bar:after { -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -webkit-transition-duration: 0.2s; transition-duration: 0.2s; position: absolute; bottom: 0; width: 0; height: 2px; content: ""; background-color: #3f51b5; -webkit-transition-property: width, background-color; transition-property: width, background-color; } .rt-input-bar:before { left: 50%; } .rt-input-bar:after { right: 50%; } .rt-input-error, .rt-input-counter { margin-bottom: -2rem; font-size: 1.2rem; line-height: 2rem; color: #de3226; } .rt-input-counter { position: absolute; right: 0; color: rgba(0, 0, 0, 0.26); } .rt-input-disabled > .rt-input-input { color: rgba(0, 0, 0, 0.26); border-bottom-style: dotted; } .rt-input-errored { padding-bottom: 0; } .rt-input-errored > .rt-input-input { margin-top: 1px; border-bottom-color: #de3226; } .rt-input-errored > .rt-input-counter, .rt-input-errored > .rt-input-label { color: #de3226; } .rt-input-errored > .rt-input-label > .rt-input-required { color: #de3226; } .rt-input-hidden { display: none; }