UNPKG

@shakthillc/components

Version:

React generic components for shakthi products

194 lines (183 loc) 3.77 kB
@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; } .input-enableborder { border: solid 1px #fa383e !important; } .dropdown { display: inline-block; width: 100%; min-width: 155px; position: relative; } .dropdown__sub { display: flex; align-items: center; height: 32px; border-radius: 4px; border: solid 1px #e4e4e4; background-color: #ffffff; cursor: pointer; user-select: none; position: relative; max-width: 300px; } .dropdown__sub--disabled { display: flex; align-items: center; height: 32px; border-radius: 4px; background-color: #ededed; border: solid 1px #e4e4e4; cursor: no-drop; user-select: none; position: relative; max-width: 300px; } .dropdown__sub--open { display: flex; align-items: center; height: 32px; border-radius: 4px; border: 1px solid #005397; background-color: #ffffff; cursor: pointer; user-select: none; position: relative; max-width: 300px; } .dropdown__textcontainer { width: 87%; } .textcontainer__arrow { position: absolute; top: 0px; bottom: 0px; margin: auto; width: 18px; height: 18px; right: 8px; } .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; } .show--hide { display: none; } .dropdown__dropdown-list { user-select: none; margin-top: 4px; overflow-y: auto; height: auto!important; max-height: 185px; border-radius: 4px; background: #ffffff; box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15); z-index: 2; min-width: 155px; max-width: 300px; width: 100%; padding: 5px 0px; padding-top: 0px; position: absolute; z-index: 2; } .dropdown__dropdown-list::-webkit-scrollbar { width: 5px; } .dropdown__dropdown-list::-webkit-scrollbar-thumb { background: #888; } .dropdown__dropdown-list::-webkit-scrollbar-track { background: #f1f1f1; } .dropdown-list__item { composes: font-inter; height: 28px; display: block; padding: 5px 8px 5px 8px; width: auto; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .dropdownList__noitems { composes: font-inter; height: min-content; display: block; padding: 5px 0 5px 8px; text-align: center; opacity: 0.5; } .dropdown-list__loading { composes: font-inter; height: 28px; display: block; padding: 5px 8px 5px 8px; width: auto; text-align: center; } .dropdown-list__loading:after { content: " ."; animation: dots 1s steps(5, end) infinite; } .input-holder__helper { composes: font-inter; font-size: 12px; color: #666666; } .input-holder__helper--red { composes: font-inter; font-size: 12px; color: #db7064; } @keyframes dots { 0%, 20% { color: rgba(0, 0, 0, 0); text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0); } 40% { color: black; text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0); } 60% { text-shadow: 0.25em 0 0 black, 0.5em 0 0 rgba(0, 0, 0, 0); } 80%, 100% { text-shadow: 0.25em 0 0 black, 0.5em 0 0 black; } } .dropdown-list__item:hover { display: block; background-color: #f0f0f0; cursor: pointer; }