Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .wrapper {
- height: 56px;
- margin-bottom: 8px;
- position: relative;
- .input-wrapper {
- position: relative;
- height: inherit;
- input {
- height: inherit;
- width: 100%;
- padding: 0 10px;
- background-color: #f2f4f5;
- border: 1px solid #ccc;
- border-bottom: 2px solid #939899;
- border-radius: 0;
- display: inline-block;
- cursor: pointer;
- text-overflow: ellipsis;
- padding-right: 50px;
- &.opened {
- border-bottom: 2px solid #00b8f0;
- }
- }
- .label {
- position: absolute;
- top: 12px;
- left: 11px;
- right: 18px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- color: #aaa;
- cursor: pointer;
- user-select: none;
- line-height: 32px;
- }
- }
- .arrow-wrapper {
- position: absolute;
- right: 0;
- top: 0;
- height: 100%;
- display: inline-flex;
- align-items: center;
- margin-right: 10px;
- cursor: pointer;
- .arrow {
- border-color: #999 transparent transparent;
- border-style: solid;
- border-width: 5px 5px 2.5px;
- &.expanded {
- transform: rotate(180deg);
- border-color: #ccc transparent transparent;
- }
- }
- }
- .clear-wrapper {
- position: absolute;
- right: 24px;
- top: 0;
- height: 100%;
- display: inline-flex;
- align-items: center;
- margin-right: 10px;
- color: #c3c3c3;
- cursor: pointer;
- .material-icons {
- font-size: 14px;
- }
- }
- .dropdown-content {
- display: none;
- position: absolute;
- left: 0;
- right: 0;
- margin-bottom: 14px;
- max-height: 150px;
- overflow-y: auto;
- overflow-x: hidden;
- z-index: 1;
- background: white;
- border-bottom: 1px solid #cccccc;
- border-left: 1px solid #cccccc;
- border-right: 1px solid #cccccc;
- p {
- margin: 0;
- padding: 4px 10px;
- cursor: pointer;
- line-height: 28px;
- .highlighted {
- font-weight: bold;
- text-decoration: underline;
- }
- &.selected {
- font-weight: bold;
- background-color: #e2f1ff;
- }
- &:hover {
- background-color: #ebf5ff;
- }
- }
- &.opened {
- display: block;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement