UNPKG

@shakthillc/components

Version:

React generic components for shakthi products

159 lines (150 loc) 3.04 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; } .dropdown { display: inline-block; width: 100%; min-width: 155px; position: relative; } .dropdown__sub { display: flex; max-width: 300px; align-items: center; height: 32px; border-radius: 4px; border: solid 1px #e4e4e4; background-color: #ffffff; cursor: pointer; user-select: none; position: relative; } .dropdown__sub--open { display: flex; max-width: 300px; align-items: center; height: 32px; border-radius: 4px; border: 1px solid #005397; background-color: #ffffff; cursor: pointer; user-select: none; position: relative; } .dropdown__sub--disabled { display: flex; align-items: center; max-width: 300px; height: 32px; border-radius: 4px; background-color: #ededed; border: solid 1px #e4e4e4; cursor: no-drop; user-select: none; position: relative; } .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; } .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; 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; } .dropdown-list__item:hover { display: block; background-color: #f0f0f0; cursor: pointer; } .input-holder__helper { composes: font-inter; font-size: 12px; color: #666666; } .input-holder__helper--red { composes: font-inter; font-size: 12px; color: #db7064; } .input-enableborder { border: solid 1px #fa383e; } .emptystate { composes: font-inter; color: #666666; height: 30px; display: flex; justify-content: center; align-items: center; cursor: pointer; }