_main-nav.scss 1.85 KB
Newer Older
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.navbar-main {
    .navbar-collapse {
        border: 1px solid transparent;

        @include media-breakpoint-down(sm) {
            border-width: 1px 0 0 0;
        }
        &.navbar-form {
            border: 0;
        }
    }

    // Top level navigation items use colour variables from "navbar-default"
    .navbar-nav {

        > li > a {
            color: $navbar-default-link-color;
            background-color: $navbar-default-link-bg;
            border-top: 1px solid $navbar-default-link-border;
            border-bottom: 1px solid $navbar-default-link-border;
            &:hover,
            &:focus {
                background-color: $navbar-default-link-hover-bg;
                color: $navbar-default-link-hover-color;
            }
            @include media-breakpoint-up(md) {
                border: 1px solid $navbar-default-link-border;
            }
        }

        > .active > a {
            background-color: $navbar-default-active-bg;
            color: $navbar-default-active-color;
            &:hover,
            &:focus {
                background-color: $navbar-default-active-bg;
                color: $navbar-default-active-color;
            }
        }
    }

    // Child navigation items
    .child-nav {

        li > a {
            color: $navbar-inverse-link-color;
            background-color: $navbar-inverse-bg;
            &:hover,
            &:focus {
                background-color: $navbar-inverse-link-hover-bg;
                color: $navbar-inverse-link-hover-color;
            }
        }

        .active > a {
            background-color: $navbar-inverse-link-active-bg;
            color: $navbar-inverse-link-active-color;
            &:hover,
            &:focus {
                background-color: $navbar-inverse-link-hover-bg;
                color: $navbar-inverse-link-hover-color;
            }
        }
    }
}