Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.69 KB | None | 0 0
  1. .shop-search-color-select {
  2.     position: relative;
  3.     height: 50px;
  4.     overflow: hidden;
  5.     transition: $transition;
  6.     box-shadow: inset 0 0 0 1px rgba($m3, 0.15);
  7.     @media all and (max-width: 639px) {
  8.         height: 46px;
  9.     }
  10.     &:hover {
  11.         box-shadow: inset 0 0 0 2px $m1;
  12.     }
  13.     &:before {
  14.         position: absolute;
  15.         content: '';
  16.         top: 0;
  17.         left: 0;
  18.         right: 0;
  19.         bottom: 0;
  20.         z-index: 3;
  21.         pointer-events: none;
  22.         box-shadow: inset 0 0 0 1px rgba($lightColor, .1);
  23.     }
  24.     &.active {
  25.         z-index: 2;
  26.         overflow: visible;
  27.         box-shadow: none !important;
  28.         &:before {
  29.             display: none;
  30.         }
  31.         .shop-search-colors {
  32.             max-height: 240px;
  33.             overflow-y: auto;
  34.             box-shadow: inset 0 0 0 2px $m1;
  35.             background: url(data-image-svg(8px, 6px, '<path d="M1.00158 -0.000503846L6.99745 -0.000503584C7.85371 -0.000503546 8.31403 1.10269 7.75431 1.81334L4.75637 5.61965C4.35746 6.12611 3.64156 6.12611 3.24265 5.61965L0.244716 1.81334C-0.315011 1.10269 0.145317 -0.000503883 1.00158 -0.000503846Z" fill="#{$m3}"/>')) right 16px top 23px no-repeat $lightColor;
  36.         }
  37.         &:hover {
  38.             .shop-search-colors {
  39.                 background: url(data-image-svg(8px, 6px, '<path d="M1.00158 -0.000503846L6.99745 -0.000503584C7.85371 -0.000503546 8.31403 1.10269 7.75431 1.81334L4.75637 5.61965C4.35746 6.12611 3.64156 6.12611 3.24265 5.61965L0.244716 1.81334C-0.315011 1.10269 0.145317 -0.000503883 1.00158 -0.000503846Z" fill="#{$m3}"/>')) right 16px top 23px no-repeat $lightColor;
  40.             }
  41.         }
  42.     }
  43.     .shop-search-colors {
  44.         position: absolute;
  45.         top: 0;
  46.         left: 0;
  47.         right: 0;
  48.         padding: 0 7px;
  49.         transition: box-shadow 0.3s;
  50.         @include flexbox;
  51.         @include flex-direction(column);
  52.         background: url(data-image-svg(8px, 6px, '<path opacity="0.2" d="M1.00158 -0.000503846L6.99745 -0.000503584C7.85371 -0.000503546 8.31403 1.10269 7.75431 1.81334L4.75637 5.61965C4.35746 6.12611 3.64156 6.12611 3.24265 5.61965L0.244716 1.81334C-0.315011 1.10269 0.145317 -0.000503883 1.00158 -0.000503846Z" fill="#{$m3}"/>')) right 16px top 23px no-repeat;
  53.        
  54.         &:hover {
  55.             background: url(data-image-svg(8px, 6px, '<path d="M1.00158 -0.000503846L6.99745 -0.000503584C7.85371 -0.000503546 8.31403 1.10269 7.75431 1.81334L4.75637 5.61965C4.35746 6.12611 3.64156 6.12611 3.24265 5.61965L0.244716 1.81334C-0.315011 1.10269 0.145317 -0.000503883 1.00158 -0.000503846Z" fill="#{$m3}"/>')) right 16px top 23px no-repeat;
  56.         }
  57.        
  58.         li {
  59.             cursor: pointer;
  60.             padding: 11px 40px 11px 16px;
  61.             @include flexbox;
  62.             @media all and (max-width: 639px) {
  63.                 padding-top: 9px;
  64.                 padding-bottom: 9px;
  65.             }
  66.             &:hover {
  67.                 background: rgba(0, 0, 0, 0.03);
  68.                 .shop-search-color-title {
  69.                     color: $m3;
  70.                 }
  71.             }
  72.             &.shop2-color-ext-selected {
  73.                 @include order(-1);
  74.                 padding-left: 9px;
  75.                 &:hover {
  76.                     background: none;
  77.                 }
  78.             }
  79.             .shop-search-color-icon {
  80.                 position: relative;
  81.                 width: 28px;
  82.                 height: 28px;
  83.                 flex-shrink: 0;
  84.                 border-radius: 50%;
  85.                 margin: 0 10px 0 0;
  86.                 background-size: cover;
  87.                 background-position: 50%;
  88.                 background-repeat: no-repeat;
  89.                 &:before {
  90.                     position: absolute;
  91.                     content: '';
  92.                     top: 0;
  93.                     left: 0;
  94.                     right: 0;
  95.                     bottom: 0;
  96.                     z-index: 1;
  97.                     border-radius: 50%;
  98.                     pointer-events: none;
  99.                     box-shadow: inset 0 0 0 1px rgba(#000, .1);
  100.                 }
  101.             }
  102.             .shop-search-color-title {
  103.                 color: rgba($m3, 0.6);
  104.                 font: normal 16px/ normal $Montserrat;
  105.                 width: calc(100% - 10px - 8px);
  106.                 min-height: 28px;
  107.                 overflow: hidden;
  108.                 white-space: nowrap;
  109.                 transition: $transition;
  110.                 @include inline-flex;
  111.                 @include align-items(center);
  112.                
  113.                 @media all and (max-width: 639px) {
  114.                     font-size: 15px;
  115.                     min-height: 26px;
  116.                 }
  117.             }
  118.         }
  119.     }
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement