Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Aug 19, 2021
1 parent 6345c3e commit 3f89aac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ For detailed documentation see the [GitHub Page](https://aurovrata.github.io/hyb
## Changelog
### v2.0.2
* fix optionLabel function parsing for group options with 'label' keyword.
* fix styling
### v2.0.1
* make use of `optionLabel` for dataset lists.
* added demo example on how to build image checkbox lists.
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# wget --post-data="input=`cat hybrid-dropdown.js`" --output-document=min/hybrid-dropdown.min.js https://javascript-minifier.com/raw
#css
wget --post-data="input=`cat hybrid-dropdown.css`" --output-document=min/hybrid-dropdown.min.css https://cssminifier.com/raw
wget --post-data="input=`cat hybrid-dropdown.css`" --output-document=min/hybrid-dropdown-test.min.css https://cssminifier.com/raw
2 changes: 0 additions & 2 deletions hybrid-dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,10 @@ ul.hybriddd-options::-webkit-scrollbar-track {
padding: 1px;
}
/* COLOURS */

.hybriddd-option.active > label{
background: #0466ff;
color: #fff;
}

input:checked + .hybridddcb::before{
background: white;
}
Expand Down
5 changes: 3 additions & 2 deletions hybrid-dropdown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Hybrid Dropdown JavaScript plugin insprired from an original idea by Sandrina Pereira (twitter:@a_sandrina_p)
Version: 2.0.1
Version: 2.0.2
Authors: Aurovrata Venet
Twitter: @aurovrata
GitHub: https://github.com/aurovrata/hybrid-html-dropdown
Expand Down Expand Up @@ -323,7 +323,8 @@ class HybridDDError extends Error {
active.setAttribute('id','hybriddd-colours');
active.type = "text/css";
active.innerText = `.hybriddd-option.active > label:hover,.hybriddd-option.hover > label,.hybriddd-option \
> label:hover{color:${bg};background-color:${cl}}:hover > input:checked + .hybridddl > .hybridddcb::before \ {color:${cl}}ul.hybriddd-options::-webkit-scrollbar-track {background:${bg}} \
> label:hover{color:${bg};background-color:${cl}}:hover > input:checked+.hybridddcb::before \
{background-color:${bg}}ul.hybriddd-options::-webkit-scrollbar-track {background:${bg}} \
ul.hybriddd-options::-webkit-scrollbar-thumb, ul.hybriddd-options::-webkit-scrollbar{background:${cl}}`;
document.head.appendChild(active);
}
Expand Down
2 changes: 1 addition & 1 deletion min/hybrid-dropdown.min.css

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

0 comments on commit 3f89aac

Please sign in to comment.