diff options
Diffstat (limited to 'app/dispatch/static/materialize/sass/components/_dropdown.scss')
| -rw-r--r-- | app/dispatch/static/materialize/sass/components/_dropdown.scss | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app/dispatch/static/materialize/sass/components/_dropdown.scss b/app/dispatch/static/materialize/sass/components/_dropdown.scss new file mode 100644 index 0000000..27131b5 --- /dev/null +++ b/app/dispatch/static/materialize/sass/components/_dropdown.scss @@ -0,0 +1,68 @@ +.dropdown-content {
+ @extend .z-depth-1;
+ background-color: $dropdown-bg-color;
+ margin: 0;
+ display: none;
+ min-width: 100px;
+ max-height: 650px;
+ overflow-y: auto;
+ opacity: 0;
+ position: absolute;
+ z-index: 999;
+ will-change: width, height;
+
+ li {
+ clear: both;
+ color: $off-black;
+ cursor: pointer;
+ min-height: $dropdown-item-height;
+ line-height: 1.5rem;
+ width: 100%;
+ text-align: left;
+ text-transform: none;
+
+ &:hover, &.active, &.selected {
+ background-color: $dropdown-hover-bg-color;
+ }
+
+ &.active.selected {
+ background-color: darken($dropdown-hover-bg-color, 5%);
+ }
+
+ &.divider {
+ min-height: 0;
+ height: 1px;
+ }
+
+ & > a, & > span {
+ font-size: 16px;
+ color: $dropdown-color;
+ display: block;
+ line-height: 22px;
+ padding: (($dropdown-item-height - 22) / 2) 16px;
+ }
+
+ & > span > label {
+ top: 1px;
+ left: 0;
+ height: 18px;
+ }
+
+ // Icon alignment override
+ & > a > i {
+ height: inherit;
+ line-height: inherit;
+ float: left;
+ margin: 0 24px 0 0;
+ width: 24px;
+ }
+ }
+}
+
+// Input field specificity bugfix
+.input-field.col .dropdown-content [type="checkbox"] + label {
+ top: 1px;
+ left: 0;
+ height: 18px;
+}
+
|
