Skip to content

Commit

Permalink
Added bower.json and more CSS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert DeLuca committed Jan 12, 2014
1 parent b824583 commit 14e46d6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
9 changes: 9 additions & 0 deletions bower.json
@@ -0,0 +1,9 @@
{
"name": "Robdel12/DropKick",
"version": "1.4.0",
"main": "jquery.dropkick-min.js",
"description": "A jQuery plugin for creating beautiful, graceful, and painless custom dropdowns.",
"dependencies": {
"<jQuery>": "<1.10.2>",
},
}
7 changes: 4 additions & 3 deletions dropkick.css
Expand Up @@ -35,7 +35,7 @@
-o-transition: border-color .5s;
transition: border-color .5s;
position: relative; }
.dk_toggle:hover {
.dk_toggle:hover, .dk_toggle:focus {
border-color: #8c8c8c; }
.dk_toggle:after {
position: absolute;
Expand Down Expand Up @@ -88,7 +88,7 @@
border-bottom: 1px solid #999;
font-weight: bold;
padding: 8px 10px; }
.dk_options a:hover,
.dk_options a:hover, .dk_options:focus,
.dk_options .dk_option_current a {
background-color: #0084c7;
border-bottom-color: #004c72;
Expand All @@ -101,7 +101,8 @@
cursor: default; }
.dk_options .disabled a {
color: #aaa; }
.dk_options .disabled:hover, .dk_options .disabled:hover a {
.dk_options .disabled:hover, .dk_options .disabled:hover a
.dk_options .disabled:focus, .dk_options .disabled:focus a {
cursor: default;
background-color: #fff;
border-bottom-color: #999;
Expand Down
7 changes: 4 additions & 3 deletions dropkick.scss
Expand Up @@ -43,7 +43,7 @@
-o-transition: border-color .5s;
transition: border-color .5s;
position: relative;
&:hover {
&:hover, &:focus {
border-color: #8c8c8c;
}
&:after{
Expand Down Expand Up @@ -114,7 +114,7 @@
font-weight: bold;
padding: 8px 10px;
}
a:hover,
a:hover, &:focus,
.dk_option_current a {
background-color: #0084c7;
border-bottom-color: #004c72;
Expand All @@ -130,7 +130,8 @@
a {
color: #aaa;
}
&:hover, &:hover a {
&:hover, &:hover a
&:focus, &:focus a {
cursor: default;
background-color: #fff;
border-bottom-color: #999;
Expand Down
2 changes: 1 addition & 1 deletion jquery.dropkick-min.js

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

10 changes: 4 additions & 6 deletions jquery.dropkick.js
Expand Up @@ -39,19 +39,17 @@

// HTML template for the dropdowns
dropdownTemplate = [
'<div class="dk_container" id="dk_container_{{ id }}" tabindex="{{ tabindex }}">',
'<a class="dk_toggle">',
'<span class="dk_label">{{ label }}</span>',
'</a>',
'<div class="dk_container" id="dk_container_{{ id }}" tabindex="{{ tabindex }}" aria-hidden="true">',
'<a class="dk_toggle dk_label">{{ label }}</a>',
'<div class="dk_options">',
'<ul class="dk_options_inner">',
'<ul class="dk_options_inner" role="main" aria-hidden="true">',
'</ul>',
'</div>',
'</div>'
].join(''),

// HTML template for dropdown options
optionTemplate = '<li class="{{ current }} {{ disabled }}"><a data-dk-dropdown-value="{{ value }}">{{ text }}</a></li>',
optionTemplate = '<li><a data-dk-dropdown-value="{{ value }}">{{ text }}</a></li>',

// Some nice default values
defaults = {
Expand Down

0 comments on commit 14e46d6

Please sign in to comment.