diff options
Diffstat (limited to 'assets/sass/_dropdown.sass')
-rw-r--r-- | assets/sass/_dropdown.sass | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/assets/sass/_dropdown.sass b/assets/sass/_dropdown.sass new file mode 100644 index 00000000..8e7eb24b --- /dev/null +++ b/assets/sass/_dropdown.sass @@ -0,0 +1,53 @@ +@import variables + +.dropdown + display: inline + position: relative + ul + display: none + +ul.dropdown-submenu-open + display: block + position: absolute + z-index: 1000 + min-width: 285px + list-style: none + margin: 3px 0 0 1px + padding: 6px 0 + background-color: #fff + border: 1px solid #b2b2b2 + border-radius: 3px + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) + +.dropdown-submenu-open li + display: block + margin: 0 + padding: 8px 10px + font-size: size('compact') + border-bottom: 1px solid #f8f8f8 + cursor: pointer + &.no-hover + cursor: default + +.dropdown-submenu-open li:last-child + border: none + +.dropdown-submenu-open li:not(.no-hover):hover + background: #4078C0 + color: #fff + +.dropdown-submenu-open li:hover a + color: #fff + +.dropdown-submenu-open a + text-decoration: none + color: color('primary') + &:focus + text-decoration: underline + +.dropdown-menu-link-text, .dropdown-menu-link-icon + color: color('primary') + text-decoration: none + +.dropdown-menu-link-text:hover + text-decoration: underline |