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
116 lines (107 loc) • 2.89 kB
CSS
.rt-checkbox-field {
position: relative;
display: block;
height: 1.8rem;
margin-bottom: 1.5rem;
white-space: nowrap;
vertical-align: middle; }
.rt-checkbox-text {
display: inline-block;
padding-left: 1rem;
font-size: 1.4rem;
line-height: 1.8rem;
color: black;
white-space: nowrap;
vertical-align: top; }
.rt-checkbox-input {
width: 0;
height: 0;
overflow: hidden;
opacity: 0; }
.rt-checkbox-input:focus ~ .rt-checkbox-check:before {
position: absolute;
top: 50%;
left: 50%;
width: 4.14rem;
height: 4.14rem;
margin-top: -2.07rem;
margin-left: -2.07rem;
pointer-events: none;
content: "";
background-color: rgba(0, 0, 0, 0.1);
border-radius: 50%; }
.rt-checkbox-input:focus ~ .rt-checkbox-check.rt-checkbox-checked:before {
background-color: rgba(63, 81, 181, 0.26); }
.rt-checkbox-check {
position: relative;
display: inline-block;
width: 1.8rem;
height: 1.8rem;
vertical-align: top;
cursor: pointer;
border-color: black;
border-style: solid;
border-width: 2px;
border-radius: 2px;
-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;
-webkit-transition-property: background-color;
transition-property: background-color; }
.rt-checkbox-check.rt-checkbox-checked {
background-color: #3f51b5;
border-color: #3f51b5; }
.rt-checkbox-check.rt-checkbox-checked:after {
position: absolute;
top: -0.1rem;
left: 0.4rem;
width: 0.7rem;
height: 1.2rem;
content: "";
border-color: white;
border-style: solid;
border-top: 0;
border-right-width: 2px;
border-bottom-width: 2px;
border-left: 0;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-animation: checkmark-expand 140ms ease-out forwards;
animation: checkmark-expand 140ms ease-out forwards; }
.rt-checkbox-ripple {
background-color: #3f51b5;
opacity: .3;
-webkit-transition-duration: 650ms;
transition-duration: 650ms; }
.rt-checkbox-disabled > .rt-checkbox-text {
color: rgba(0, 0, 0, 0.26); }
.rt-checkbox-disabled > .rt-checkbox-check {
cursor: auto;
border-color: rgba(0, 0, 0, 0.26); }
.rt-checkbox-disabled > .rt-checkbox-check.rt-checkbox-checked {
cursor: auto;
background-color: rgba(0, 0, 0, 0.26);
border-color: transparent; }
@-webkit-keyframes checkmark-expand {
0% {
top: 0.9rem;
left: 0.6rem;
width: 0;
height: 0; }
100% {
top: -0.1rem;
left: 0.4rem;
width: 0.7rem;
height: 1.2rem; } }
@keyframes checkmark-expand {
0% {
top: 0.9rem;
left: 0.6rem;
width: 0;
height: 0; }
100% {
top: -0.1rem;
left: 0.4rem;
width: 0.7rem;
height: 1.2rem; } }