Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
36fa63b
Add files to git
behigh Apr 1, 2013
5373545
Remove files
behigh Apr 1, 2013
372990c
.data-label added
behigh Apr 1, 2013
9473d94
Build css/dropdowns.css
behigh Apr 1, 2013
1bb264c
Merge branch 'gh-pages' of github.com:behigh/bootstrap_dropdowns_enha…
behigh Apr 1, 2013
def13cc
Remove unnecessary files
behigh Apr 1, 2013
722ab1e
README added
behigh Apr 1, 2013
e94f7f2
Update links
behigh Apr 1, 2013
7811e47
Fix title
behigh Apr 1, 2013
0e14280
Close menu by default on radio click. Added support for noclose class.
behigh Apr 1, 2013
23c2340
Fix bullet size
behigh Apr 6, 2014
3cc03eb
Fix urls
behigh Apr 6, 2014
76bb27c
Build css
behigh Apr 6, 2014
da8c189
Add node_modules
behigh Apr 6, 2014
bffa3ed
Move v2.3.2 files
behigh Apr 18, 2014
4522ded
Add bootstrap submodule
behigh Apr 18, 2014
9177283
Create dropdowns-enhancement.js v3.1.1 (Beta1)
behigh Apr 21, 2014
f7b375b
Create new dropdowns-enhancement less files
behigh Apr 21, 2014
d594900
Add fonts style to support icon fonts in firefox.
behigh Apr 21, 2014
e105f24
Fix links
behigh Apr 21, 2014
e65e362
Ad bs fonts locally
behigh Apr 21, 2014
7689730
Create docs & example file for v3.1.1
behigh Apr 21, 2014
76bf9a2
Compile css & js
behigh Apr 21, 2014
02ed5a3
Delete v2 src files
behigh Apr 21, 2014
8bbafe4
Add package.json
behigh Apr 21, 2014
f72e3ca
Create Gruntfile.js
behigh Apr 21, 2014
cfcda97
Build dist
behigh Apr 21, 2014
99efd06
Ignore .grunt
behigh Apr 21, 2014
00040fb
Update README
behigh Apr 21, 2014
3acbdb2
Add links to new version
behigh Apr 21, 2014
691bc26
Force use http for bs files from getbootstrap.com
behigh Apr 21, 2014
592d67e
Fix links & use bs css min
behigh Apr 21, 2014
3cedabb
Fix link
behigh Apr 21, 2014
c13f2e6
Add GA
behigh Apr 21, 2014
63054a2
Fix v3 link
behigh Apr 21, 2014
fe8912e
Add button
behigh Apr 21, 2014
1c0f454
Add button
behigh Apr 21, 2014
1dadaac
Fix bs urls
behigh May 11, 2019
6d3e064
Add max items to select
behigh May 11, 2019
6c4d917
Update docs
behigh May 11, 2019
06b32ce
Update modules
behigh May 11, 2019
63456c1
Ignore package-lock.json
behigh May 11, 2019
37c6914
Fix path
behigh May 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.grunt
node_modules
/package-lock.json
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bootstrap"]
path = bootstrap
url = https://github.com/twbs/bootstrap.git
52 changes: 52 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = function (grunt) {
'use strict';

// Force use of Unix newlines
grunt.util.linefeed = '\n';

grunt.initConfig({

'clean': {
'dist': ['dist']
},

'copy': {
'js': {
'src': 'js/*',
'dest': 'dist/'
}
},

'less': {
compileCore: {
options: {
},
files: {
'dist/css/dropdowns-enhancement.css': 'less/dropdowns-enhancement.less'
}
},
minify: {
options: {
cleancss: true
},
files: {
'dist/css/dropdowns-enhancement.min.css': 'dist/css/dropdowns-enhancement.css'
}
}
},

'gh-pages': {
options: {
base: 'docs',
message: 'Auto-generated gh-pages'
},
src: '**/*'
}
});

// These plugins provide necessary tasks.
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});

grunt.registerTask('dist', ['clean', 'copy', 'less']);
grunt.registerTask('pages', 'gh-pages');
};
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bootstrap Dropdown Menus Enhancement v3.1.1
===============================

Enhancing functionality of dropdown menus.
Added the following improvements:

* Sub-Menus
* Support for radio and checkboxes
* Positioning of menus
* Bullet for menus

For demo and docs visit [http://behigh.github.io/bootstrap_dropdowns_enhancement/](http://behigh.github.io/bootstrap_dropdowns_enhancement/)
1 change: 1 addition & 0 deletions bootstrap
Submodule bootstrap added at 573ad1
294 changes: 294 additions & 0 deletions dist/css/dropdowns-enhancement.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
.dropdown-menu > li > label {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333333;
white-space: nowrap;
}
.dropdown-menu > li > label:hover,
.dropdown-menu > li > label:focus {
text-decoration: none;
color: #262626;
background-color: #f5f5f5;
}
.dropdown-menu > li > input:checked ~ label,
.dropdown-menu > li > input:checked ~ label:hover,
.dropdown-menu > li > input:checked ~ label:focus,
.dropdown-menu > .active > label,
.dropdown-menu > .active > label:hover,
.dropdown-menu > .active > label:focus {
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #428bca;
}
.dropdown-menu > li > input[disabled] ~ label,
.dropdown-menu > li > input[disabled] ~ label:hover,
.dropdown-menu > li > input[disabled] ~ label:focus,
.dropdown-menu > .disabled > label,
.dropdown-menu > .disabled > label:hover,
.dropdown-menu > .disabled > label:focus {
color: #999999;
}
.dropdown-menu > li > input[disabled] ~ label:hover,
.dropdown-menu > li > input[disabled] ~ label:focus,
.dropdown-menu > .disabled > label:hover,
.dropdown-menu > .disabled > label:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
cursor: not-allowed;
}
.dropdown-menu > li > label {
margin-bottom: 0;
cursor: pointer;
}
.dropdown-menu > li > input[type="radio"],
.dropdown-menu > li > input[type="checkbox"] {
display: none;
position: absolute;
top: -9999em;
left: -9999em;
}
.dropdown-menu > li > label:focus,
.dropdown-menu > li > input:focus ~ label {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu.pull-top {
bottom: 100%;
top: auto;
margin: 0 0 2px;
-webkit-box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.175);
}
.dropdown-menu.pull-center {
right: 50%;
left: auto;
}
.dropdown-menu.pull-middle {
right: 100%;
margin: 0 2px 0 0;
box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
left: auto;
}
.dropdown-menu.pull-middle.pull-right {
right: auto;
left: 100%;
margin: 0 0 0 2px;
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
}
.dropdown-menu.pull-middle.pull-center {
right: 50%;
margin: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.dropdown-menu.bullet {
margin-top: 8px;
}
.dropdown-menu.bullet:before {
width: 0;
height: 0;
content: '';
display: inline-block;
position: absolute;
border-color: transparent;
border-style: solid;
-webkit-transform: rotate(360deg);
border-width: 0 7px 7px;
border-bottom-color: #cccccc;
border-bottom-color: rgba(0, 0, 0, 0.15);
top: -7px;
left: 9px;
}
.dropdown-menu.bullet:after {
width: 0;
height: 0;
content: '';
display: inline-block;
position: absolute;
border-color: transparent;
border-style: solid;
-webkit-transform: rotate(360deg);
border-width: 0 6px 6px;
border-bottom-color: #ffffff;
top: -6px;
left: 10px;
}
.dropdown-menu.bullet.pull-right:before {
left: auto;
right: 9px;
}
.dropdown-menu.bullet.pull-right:after {
left: auto;
right: 10px;
}
.dropdown-menu.bullet.pull-top {
margin-top: 0;
margin-bottom: 8px;
}
.dropdown-menu.bullet.pull-top:before {
top: auto;
bottom: -7px;
border-bottom-width: 0;
border-top-width: 7px;
border-top-color: #cccccc;
border-top-color: rgba(0, 0, 0, 0.15);
}
.dropdown-menu.bullet.pull-top:after {
top: auto;
bottom: -6px;
border-bottom: none;
border-top-width: 6px;
border-top-color: #ffffff;
}
.dropdown-menu.bullet.pull-center:before {
left: auto;
right: 50%;
margin-right: -7px;
}
.dropdown-menu.bullet.pull-center:after {
left: auto;
right: 50%;
margin-right: -6px;
}
.dropdown-menu.bullet.pull-middle {
margin-right: 8px;
}
.dropdown-menu.bullet.pull-middle:before {
top: 50%;
left: 100%;
right: auto;
margin-top: -7px;
border-right-width: 0;
border-bottom-color: transparent;
border-top-width: 7px;
border-left-color: #cccccc;
border-left-color: rgba(0, 0, 0, 0.15);
}
.dropdown-menu.bullet.pull-middle:after {
top: 50%;
left: 100%;
right: auto;
margin-top: -6px;
border-right-width: 0;
border-bottom-color: transparent;
border-top-width: 6px;
border-left-color: #ffffff;
}
.dropdown-menu.bullet.pull-middle.pull-right {
margin-right: 0;
margin-left: 8px;
}
.dropdown-menu.bullet.pull-middle.pull-right:before {
left: -7px;
border-left-width: 0;
border-right-width: 7px;
border-right-color: #cccccc;
border-right-color: rgba(0, 0, 0, 0.15);
}
.dropdown-menu.bullet.pull-middle.pull-right:after {
left: -6px;
border-left-width: 0;
border-right-width: 6px;
border-right-color: #ffffff;
}
.dropdown-menu.bullet.pull-middle.pull-center {
margin-left: 0;
margin-right: 0;
}
.dropdown-menu.bullet.pull-middle.pull-center:before {
border: none;
display: none;
}
.dropdown-menu.bullet.pull-middle.pull-center:after {
border: none;
display: none;
}
.dropdown-submenu {
position: relative;
}
.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
border-top-left-radius: 0;
}
.dropdown-submenu > a:before {
display: block;
float: right;
width: 0;
height: 0;
content: "";
margin-top: 6px;
margin-right: -8px;
border-width: 4px 0 4px 4px;
border-style: solid;
border-left-style: dashed;
border-top-color: transparent;
border-bottom-color: transparent;
}
@media (max-width: 767px) {
.navbar-nav .dropdown-submenu > a:before {
margin-top: 8px;
border-color: inherit;
border-style: solid;
border-width: 4px 4px 0;
border-left-color: transparent;
border-right-color: transparent;
}
.navbar-nav .dropdown-submenu > a {
padding-left: 40px;
}
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > a,
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > label {
padding-left: 35px;
}
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > a,
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > label {
padding-left: 45px;
}
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > a,
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > label {
padding-left: 55px;
}
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > a,
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > label {
padding-left: 65px;
}
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > a,
.navbar-nav > .open > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > .dropdown-menu > li > label {
padding-left: 75px;
}
}
.navbar-default .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a,
.navbar-default .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:hover,
.navbar-default .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:focus {
background-color: #e7e7e7;
color: #555555;
}
@media (max-width: 767px) {
.navbar-default .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:before {
border-top-color: #555555;
}
}
.navbar-inverse .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a,
.navbar-inverse .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:hover,
.navbar-inverse .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:focus {
background-color: #080808;
color: #ffffff;
}
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open > .dropdown-menu > .dropdown-submenu.open > a:before {
border-top-color: #ffffff;
}
}
1 change: 1 addition & 0 deletions dist/css/dropdowns-enhancement.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading