react-phone-input-pro
Version:
Phone number input component for react to format phone numbers according to selected countries in real time.
209 lines (189 loc) • 4.76 kB
CSS
.react_number_formatter_form{
border: 1px solid rgb(180, 179, 179);
border-radius: 4px;
display: flex;
}
.border_onfocus_react_number_formatter {
border-radius: 4px;
border: 1px solid rgb(0, 145, 255);
box-shadow: 0px 0px 0px 4px rgba(35, 150, 227, 0.3);
transition: ease;
}
.border_red_react_number_formatter {
border: 1px solid rgb(255, 0, 0);
box-shadow: 0px 0px 0px 4px rgba(227, 35, 35, 0.3);
}
.border_green_react_number_formatter {
border: 1px solid rgb(56, 214, 77);
box-shadow: 0px 0px 0px 4px rgba(24, 198, 38, 0.26);
}
.border_onfocus_react_number_formatter input {
border: none;
}
.border_onfocus_react_number_formatter button {
border: none;
}
.react_number_formatter_input {
border: none;
outline: none;
font-size: inherit;
padding: 0 0.4rem;
color: rgb(52, 52, 52);
margin-left: -1px;
background: none;
width: 100%;
}
input::_webkit_input_placeholder {
opacity: 0.8;
}
.react_number_formatter_dropbtn {
border: none;
outline: none;
margin-right: 0px;
font-weight: 700;
color: #5a5959;
background: none;
font-size: inherit;
padding: 0.375rem 0.3rem 0.375rem 0.5rem;
cursor:pointer;
}
.react_number_formatter_dropbtn:hover{
background: none;
border: none;
color: rgb(0, 145, 255);
}
.zoom {
transition: transform .2s;
}
.react_number_formatter_dropbtn:hover img{
transform: scale(.95);
}
.react_number_formatter_dropbtn:focus{
color: rgb(0, 145, 255);
}
.react_number_formatter_dropbtn:active{
color: rgb(0, 145, 255);
}
.onfocus_react_number_formatter_dropbtn{
color: rgb(0, 145, 255);
}
.react_number_formatter_dropbtn_false {
border: none;
outline: none;
margin-right: 0px;
font-weight: 700;
color: #5a5959;
background: none;
font-size: inherit;
padding: 0.375rem 0.3rem 0.375rem 0.5rem;
cursor:pointer;
pointer-events: none;
}
.react_number_formatter_dropbtn_false:hover {
color: #5a5959;
}
.react_number_formatter_dropbtn_false:focus{
color: #5a5959;
}
.react_number_formatter_dropbtn_text {
display: flex;
pointer-events: none;
flex-direction: row;
align-items: center;
}
.react-number-formatter-dropbtn-text span {
line-height: 20px;
}
.react_number_formatter_flag {
width: 20px;
height: auto;
margin: 0px 3px 0px 0px;
box-shadow: 0px 0px 2px 0px rgb(86, 85, 85);
}
.react_number_formatter_selected_flag {
min-width: 20px;
height: 15px;
border-radius: 1px;
margin: 0.275rem 0rem;
box-shadow: 0px 0px 2px 0px rgb(86, 85, 85);
}
.react_number_formatter_arrow_parent {
display: inline-flex;
margin-left: 5px;
}
.react_number_formatter_dropdown_parent {
position: relative;
display: inline-block;
}
.react_number_formatter_dropdown_content {
display: none;
position: absolute;
background-color: #eeeeee;
border: 2px solid rgb(227, 225, 225);
min-width: 275px;
z-index: 20;
height:auto;
max-height:300px;
overflow: hidden;
margin: 10px 0px 0px 0px;
border-radius: 0 0 12px 12px;
}
.react_number_formatter_dropdown_content_child {
overflow: scroll;
max-height: 250px;
min-width: inherit;
z-index: 20;
overflow-x: hidden;
border-radius: inherit;
}
.react_number_formatter_dropdown_content_top {
height: inherit;
border-radius: 10px 10px 0px 0px;
height: 300px;
bottom: 42px
}
.react_number_formatter_dropdown_content .react_number_formatter_option {
color: black ;
padding: 10px 16px ;
text-decoration: none;
display: block;
width: 100%;
font-size: inherit;
border-radius: 0% ;
background: none;
border: none;
outline: none;
text-align: left;
}
.react_number_formatter_no_option {
height: 22px;
margin: 5px 0;
text-align: center;
font-size: small;
opacity: 0.8;
}
.react_number_formatter_dropdown_content .react_number_formatter_dropdown_input_parent {
text-align: center;
border-bottom: 2px solid rgb(159, 159, 159);
position: sticky;
top: 0;
min-width: 275px;
max-width: inherit;
overflow: hidden;
}
.react_number_formatter_dropdown_input{
padding: 11px 16px;
font-size: inherit;
width: 100%;
border: none;
margin: 0px;
border-radius: 0;
-webkit-appearance: none;
background-color: #d7d9db;
color: rgb(78, 77, 77);
}
.react_number_formatter_dropdown_input:focus{
outline: none;
}
.react_number_formatter_dropdown_content .react_number_formatter_option:hover {background-color: rgb(233, 232, 232)}
.show {display:block;}