@shakthillc/components
Version:
React generic components for shakthi products
135 lines (131 loc) • 2.65 kB
CSS
@import url("https://rsms.me/inter/inter.css");
*,
::after,
::before {
outline: none;
box-sizing: border-box;
margin: 0px;
}
p{
margin-bottom: 0px;
}
.font-inter {
font-family: Inter;
font-size: 14px;
font-weight: normal;
font-style: normal;
font-stretch: normal;
line-height: 1.43;
letter-spacing: normal;
}
.timepicker {
display: inline-block;
width: 100px;
position: relative;
}
.timepicker__sub {
display: flex;
align-items: center;
height: 32px;
border-radius: 4px;
border: solid 1px #e4e4e4;
background-color: #ffffff;
cursor: pointer;
user-select: none;
}
.timepicker__sub--open {
display: flex;
align-items: center;
height: 32px;
border-radius: 4px;
border: 1px solid #005397;
background-color: #ffffff;
cursor: pointer;
user-select: none;
}
.timepicker__textcontainer{
width: 87%;
}
.textcontainer__arrow {
float: right;
margin-top: 3px;
margin-right: 4px;
}
.textcontainer__arrow img{
width: 12px;
height: 12px;
}
.textcontainer__selected-text {
composes: font-inter;
color: #333333;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
width: calc(100%);
display:inline-block;
padding-left:4px;
vertical-align: middle;
padding-bottom: 2px;
padding-left: 10px;
}
.timepicker__timepicker-list {
user-select: none;
margin-top: 4px;
overflow-y: auto;
height: auto;
max-height: 185px;
border-radius: 4px;
background: #ffffff;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
z-index: 2;
width: 100px;
padding:5px 0px;
position: absolute;
z-index: 2;
display: flex;
}
.timepicker-list__item {
composes: font-inter;
height: 28px;
display: block;
padding: 5px 8px 5px 8px;
width: 50px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.timepicker-list__item_group{
display: inline-block;
overflow-y: scroll;
overflow-x: hidden;
}
.timepicker-list__item_group::-webkit-scrollbar {
width: 5px;
}
.timepicker-list__item_group::-webkit-scrollbar-thumb {
background: #888;
}
.timepicker-list__item_group::-webkit-scrollbar-track {
background: #f1f1f1;
}
.timepicker-list__item:hover {
display: block;
background-color: #f0f0f0;
cursor: pointer;
}
.input-enableborder{
border: solid 2px #FA383E;
border-radius: 4px;
}
.input-holder__helper {
composes: font-inter;
font-size: 12px;
margin-top: 2px;
color: #333333;
}
.input-holder__helper--red {
composes: font-inter;
font-size: 12px;
margin-top: 2px;
color: #db7064;
}