react-font-style
Version:
React font style editor
140 lines (126 loc) • 2.63 kB
CSS
.wrapper {
position: relative;
display: inline-block;
width: 200px;
height: 30px;
border: 1px solid #999;
}
.wrapper:hover {
cursor: pointer;
}
.label {
position: absolute;
bottom: 8px;
font-size: 15px;
color: #a0a0a0;
}
.labelFloat {
position: absolute;
font-size: 11px;
bottom: 27px;
color: #888;
-webkit-transition: .2s all ease-in-out;
-moz-transition: .2s all ease-in-out;
-ms-transition: .2s all ease-in-out;
-o-transition: .2s all ease-in-out;
transition: .2s all ease-in-out;
}
.selectedOption {
position: absolute;
height: 30px;
font-size: 15px;
justify-content: center;
align-items: center;
display: flex;
padding-left: 10px;
}
.button {
position: absolute;
right: 5px;
top: 12px;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 6px 0 6px;
border-color: black transparent transparent transparent;
}
.button:hover {
cursor: pointer;
}
.options {
position: absolute;
top: 30px;
width: 100%;
height: auto;
max-height: 200px;
overflow-y: scroll;
padding-bottom: 15px;
padding-top: 15px;
float: left;
background-color: #fff;
box-shadow: 0px 0px 6px #ddd;
z-index: 999;
-webkit-transition: .15s all ease-in-out;
-moz-transition: .15s all ease-in-out;
-ms-transition: .15s all ease-in-out;
-o-transition: .15s all ease-in-out;
transition: .15s all ease-in-out;
}
.optionsHidden {
position: absolute;
top: -7.5px;
width: 100%;
height: 0px;
padding-bottom: 0;
padding-top: 0;
background-color: #fff;
overflow: hidden;
box-shadow: 0px 0px 6px #ddd;
-webkit-transition: .15s all ease-in-out;
-moz-transition: .15s all ease-in-out;
-ms-transition: .15s all ease-in-out;
-o-transition: .15s all ease-in-out;
transition: .15s all ease-in-out;
}
.option {
display: block;
width: calc(100% - 20px);
padding-left: 10px;
padding-right: 10px;
height: 30px;
line-height: 30px;
float: left;
-webkit-transition: .1s all ease-in-out;
-moz-transition: .1s all ease-in-out;
-ms-transition: .1s all ease-in-out;
-o-transition: .1s all ease-in-out;
transition: .1s all ease-in-out;
}
.option:hover {
background-color: #eee;
}
div.ReactFontPicker_Wrapper .ripple {
position: relative;
overflow: hidden;
}
div.ReactFontPicker_Wrapper .ripple-effect {
position: absolute;
border-radius: 50%;
width: 50px;
height: 50px;
background: white;
animation: ripple-animation 1.8s;
}
@keyframes ripple-animation {
from {
transform: scale(1);
opacity: 0.4;
}
to {
transform: scale(100);
opacity: 0;
}
}
.ReactFontPicker {
display: block;
}