Skip to content

Commit 77a5d2f

Browse files
committed
- added themes bs3, bs4 and bs5 - '''$.navbarDropdown({theme: 'bs5'})''' #21 - supports bootstrap 5 #6 - trigger options: click, mouseover - '''$.navbarDropdown({trigger: 'click'})'''
1 parent 32576c8 commit 77a5d2f

23 files changed

+394
-141
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nv-dropdown-bs3 .dropdown-toggle {
2+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.nv-dropdown-bs4 .dropdown-toggle, .nv-dropdown-bs4 .dropdown-menu a {
2+
cursor: pointer;
3+
}
4+
5+
.nv-dropdown-bs4 .dropdown-item.active, .nv-dropdown-bs4 .dropdown-item:active {
6+
color: inherit;
7+
text-decoration: none;
8+
background-color: inherit;
9+
}
10+
11+
.nv-dropdown-bs4 .dropdown-item:focus, .nv-dropdown-bs4 .dropdown-item:hover {
12+
color: #16181b;
13+
text-decoration: none;
14+
background-color: #f8f9fa;
15+
}
16+
17+
@media (min-width: 767px) {
18+
.nv-dropdown-bs4 .dropdown-toggle:not(.nav-link)::after {
19+
display: inline-block;
20+
width: 0;
21+
height: 0;
22+
margin-left: .5em;
23+
vertical-align: 0;
24+
border-bottom: .3em solid transparent;
25+
border-top: .3em solid transparent;
26+
border-left: .3em solid;
27+
}
28+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nv-dropdown-bs5 .dropdown-toggle {
2+
}

css/bootstrap-navbar-dropdowns.css

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
.navbar .dropdown-toggle, .navbar .dropdown-menu a {
2-
cursor: pointer;
3-
}
4-
5-
.navbar .dropdown-item.active, .navbar .dropdown-item:active {
6-
color: inherit;
7-
text-decoration: none;
8-
background-color: inherit;
9-
}
10-
11-
.navbar .dropdown-item:focus, .navbar .dropdown-item:hover {
12-
color: #16181b;
13-
text-decoration: none;
14-
background-color: #f8f9fa;
15-
}
16-
17-
@media (min-width: 767px) {
18-
.navbar .dropdown-toggle:not(.nav-link)::after {
19-
display: inline-block;
20-
width: 0;
21-
height: 0;
22-
margin-left: .5em;
23-
vertical-align: 0;
24-
border-bottom: .3em solid transparent;
25-
border-top: .3em solid transparent;
26-
border-left: .3em solid;
27-
}
28-
}
1+
@import "bootstrap-navbar-dropdowns-bs3.css";
2+
@import "bootstrap-navbar-dropdowns-bs4.css";
3+
@import "bootstrap-navbar-dropdowns-bs5.css";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nv-dropdown-bs3 .dropdown-toggle {
2+
}

dist/css/bootstrap-navbar-dropdowns-bs3.min.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-navbar-dropdowns-bs3.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.nv-dropdown-bs4 .dropdown-toggle, .nv-dropdown-bs4 .dropdown-menu a {
2+
cursor: pointer;
3+
}
4+
5+
.nv-dropdown-bs4 .dropdown-item.active, .nv-dropdown-bs4 .dropdown-item:active {
6+
color: inherit;
7+
text-decoration: none;
8+
background-color: inherit;
9+
}
10+
11+
.nv-dropdown-bs4 .dropdown-item:focus, .nv-dropdown-bs4 .dropdown-item:hover {
12+
color: #16181b;
13+
text-decoration: none;
14+
background-color: #f8f9fa;
15+
}
16+
17+
@media (min-width: 767px) {
18+
.nv-dropdown-bs4 .dropdown-toggle:not(.nav-link)::after {
19+
display: inline-block;
20+
width: 0;
21+
height: 0;
22+
margin-left: .5em;
23+
vertical-align: 0;
24+
border-bottom: .3em solid transparent;
25+
border-top: .3em solid transparent;
26+
border-left: .3em solid;
27+
}
28+
}

dist/css/bootstrap-navbar-dropdowns-bs4.min.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-navbar-dropdowns-bs4.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)