_subnav.scss 1.05 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
.bd-subnavbar {
2
3
4
  // The position and z-index are needed for the dropdown to stay on top of the content
  position: relative;
  z-index: $zindex-sticky;
XhmikosR's avatar
XhmikosR committed
5
  background-color: rgba($white, .75);
Mark Otto's avatar
Mark Otto committed
6
7
8
9
  backdrop-filter: blur(1rem);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .15);

  .dropdown-menu {
XhmikosR's avatar
XhmikosR committed
10
    @include font-size(.875rem);
Mark Otto's avatar
Mark Otto committed
11
12
13
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
  }

Martijn Cuppens's avatar
Martijn Cuppens committed
14
  .dropdown-item.current {
XhmikosR's avatar
XhmikosR committed
15
    font-weight: 600;
16
17
18
19
    background-image: escape-svg($dropdown-active-icon);
    background-repeat: no-repeat;
    background-position: .4rem .6rem;
    background-size: .75rem .75rem;
XhmikosR's avatar
XhmikosR committed
20
21
  }

Mark Otto's avatar
Mark Otto committed
22
  @include media-breakpoint-up(md) {
23
24
    position: sticky;
    top: 0;
Mark Otto's avatar
Mark Otto committed
25
26
27
  }
}

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.bd-search {
  position: relative; // To contain the Algolia search

  @include media-breakpoint-down(sm) {
    width: 100%;
  }

  .form-control:focus {
    border-color: $bd-purple-bright;
    box-shadow: 0 0 0 3px rgba($bd-purple-bright, .25);
  }
}

.bd-search-docs-toggle {
  line-height: 1;
  color: $gray-900;
XhmikosR's avatar
XhmikosR committed
44

45
46
47
  &:focus {
    border: 3px solid $purple-100;
  }
48
}