Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 2.30 KB | None | 0 0
  1. .wrapper {
  2.   height: 56px;
  3.   margin-bottom: 8px;
  4.   position: relative;
  5.  
  6.   .input-wrapper {
  7.     position: relative;
  8.     height: inherit;
  9.  
  10.     input {
  11.       height: inherit;
  12.       width: 100%;
  13.       padding: 0 10px;
  14.       background-color: #f2f4f5;
  15.       border: 1px solid #ccc;
  16.       border-bottom: 2px solid #939899;
  17.       border-radius: 0;
  18.       display: inline-block;
  19.       cursor: pointer;
  20.       text-overflow: ellipsis;
  21.       padding-right: 50px;
  22.  
  23.       &.opened {
  24.         border-bottom: 2px solid #00b8f0;
  25.       }
  26.     }
  27.  
  28.     .label {
  29.       position: absolute;
  30.       top: 12px;
  31.       left: 11px;
  32.       right: 18px;
  33.       white-space: nowrap;
  34.       overflow: hidden;
  35.       text-overflow: ellipsis;
  36.       color: #aaa;
  37.       cursor: pointer;
  38.       user-select: none;
  39.       line-height: 32px;
  40.     }
  41.   }
  42.  
  43.   .arrow-wrapper {
  44.     position: absolute;
  45.     right: 0;
  46.     top: 0;
  47.     height: 100%;
  48.     display: inline-flex;
  49.     align-items: center;
  50.     margin-right: 10px;
  51.     cursor: pointer;
  52.  
  53.     .arrow {
  54.       border-color: #999 transparent transparent;
  55.       border-style: solid;
  56.       border-width: 5px 5px 2.5px;
  57.  
  58.       &.expanded {
  59.         transform: rotate(180deg);
  60.         border-color: #ccc transparent transparent;
  61.       }
  62.     }
  63.   }
  64.  
  65.   .clear-wrapper {
  66.     position: absolute;
  67.     right: 24px;
  68.     top: 0;
  69.     height: 100%;
  70.     display: inline-flex;
  71.     align-items: center;
  72.     margin-right: 10px;
  73.     color: #c3c3c3;
  74.     cursor: pointer;
  75.  
  76.     .material-icons {
  77.       font-size: 14px;
  78.     }
  79.   }
  80.  
  81.   .dropdown-content {
  82.     display: none;
  83.     position: absolute;
  84.     left: 0;
  85.     right: 0;
  86.     margin-bottom: 14px;
  87.     max-height: 150px;
  88.     overflow-y: auto;
  89.     overflow-x: hidden;
  90.     z-index: 1;
  91.     background: white;
  92.     border-bottom: 1px solid #cccccc;
  93.     border-left: 1px solid #cccccc;
  94.     border-right: 1px solid #cccccc;
  95.  
  96.     p {
  97.       margin: 0;
  98.       padding: 4px 10px;
  99.       cursor: pointer;
  100.       line-height: 28px;
  101.  
  102.       .highlighted {
  103.         font-weight: bold;
  104.         text-decoration: underline;
  105.       }
  106.  
  107.       &.selected {
  108.         font-weight: bold;
  109.         background-color: #e2f1ff;
  110.       }
  111.  
  112.       &:hover {
  113.         background-color: #ebf5ff;
  114.       }
  115.     }
  116.  
  117.     &.opened {
  118.       display: block;
  119.     }
  120.   }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement