Summary Files Commits Branches @commit @diff @stats
path: root / src / dropdowns.less
blob: 413e88b56d08a3051a25575a2872b40069f93709 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Dropdown
.dropdown {
  display: inline-block;
  position: relative;

  .menu {
    animation: slide-down .2s ease-in 1;
    display: none;
    left: 0;
    position: absolute;
    top: 100%;
  }

  &.dropdown-right {
    .menu {
      left: auto;
      right: 0;
    }
  }

  &.active .menu,
  .dropdown-toggle:focus + .menu,
  .menu:hover {
    display: block;
  }
}