_toggles.scss 1.87 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Navigation toggle styles
.nav-toggle-area {
    .user-icon {
        &:hover,
        &:focus {
            color: $navbar-toggle-hover-color;
            background-color: $navbar-toggle-hover-bg;
        }
    }
}

.navbar-toggle {
    color: $navbar-toggle-color;
    background-color: $navbar-toggle-bg;
    background-image: none;
    border: 1px solid transparent;

    &:hover,
    &:focus {
        color: $navbar-toggle-hover-color;
        background-color: $navbar-toggle-hover-bg;
    }

    &.collapsed {
        background-color: transparent;
        &:hover,
        &:focus {
            color: $navbar-toggle-hover-color;
            background-color: $navbar-toggle-hover-bg;
        }
    }

    &.search-toggle {
        @include media-breakpoint-up(md) {
            display: none;
        }
        .icon {
            color: $navbar-toggle-color;
            background-color: $navbar-toggle-bg;
        }
    }

    &.user-toggle {
        color: $navbar-toggle-color;
        background-color: $navbar-toggle-bg;
        @include media-breakpoint-up(md) {
            border-left-width: 1px;
        }
        &:hover,
        &:focus {
            color: $navbar-toggle-hover-color;
            background-color: $navbar-toggle-hover-bg;
        }
    }

    &:last-of-type {
        border-left-width: 1px;
    }
}

// navbar menu children toggles
.nav {
    .navbar-showchildren {
        color: $navbar-inverse-toggle-color;
        background: $navbar-inverse-toggle-bg;
        border: 0;

        &:hover,
        &:focus {
            background: $navbar-inverse-toggle-hover-bg;
            .icon {
                color: $navbar-inverse-toggle-hover-color;
            }
        }
        .active & {
            background-color: $navbar-inverse-toggle-active-bg;
            .icon {
                color: $navbar-inverse-toggle-active-color;
            }
        }
    }
}