]> git.immae.eu Git - github/fretlink/time-picker.git/blobdiff - assets/index/Select.less
Merge pull request #50 from sunlee-newyork/master
[github/fretlink/time-picker.git] / assets / index / Select.less
index bca25f99083f40e3e94883f3aca15bed396086f7..ecef8a85fd8e2538a4cde820141775a08276e3d4 100644 (file)
@@ -6,9 +6,11 @@
   margin-left: -1px;
   box-sizing: border-box;
   width: 56px;
-  overflow: hidden;
+  max-height: 144px;
+  overflow-y: auto;
+  position: relative; // Fix chrome weird render bug
 
-  &:hover {
+  &-active {
     overflow-y: auto;
   }
 
     margin: 0;
     padding: 0;
     width: 100%;
-    max-height: 144px;
   }
 
   li {
     list-style: none;
-    box-sizing: border-box;
+    box-sizing: content-box;
     margin: 0;
     padding: 0 0 0 16px;
     width: 100%;
     }
   }
 
-  &-option-selected {
+  li&-option-selected {
     background: #edfaff;
     color: #2db7f5;
   }
+
+  li&-option-disabled {
+    color: #bfbfbf;
+    &:hover {
+      background: transparent;
+      cursor: not-allowed;
+    }
+  }
 }