Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dropdowns.less « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a44122ac570b54e1eca5b28f8bdb9314d3ac0e7 (plain)
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 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;
  }
}