diff --git a/CHANGE.md b/CHANGE.md index e97f582..ce70831 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,6 +1,12 @@ Change Log: `bootstrap-star-rating` =================================== +## Version 4.1.2 + +**Date:** 20-Sep-2021 + +- Simplify NPM module handling. + ## Version 4.1.1 **Date:** 11-Sep-2021 diff --git a/README.md b/README.md index d213b87..86c8bfc 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ at Krajee JQuery plugins. - **BC Breaking Change**: The `symbol`, `glyphicon`, `ratingClass` properties have been removed. The functionality is replaced with the `theme` property (and can also be complemented or implemented separately using the `containerClass` property). - New property `theme` will assign a CSS class with the `rating-` to the rating container. - Themes included - - `krajee-svg` (for displaying svg icons) - default theme since v4.1.1 + - `krajee-svg` (for displaying svg icons) - default theme since v4.1.2 - `krajee-uni` (for displaying Krajee unicode symbols as stars) - `krajee-fas` (for displaying font awesome 5.x icons) - `krajee-fa` (for displaying font awesome 4.x icons) @@ -120,20 +120,20 @@ Step 1: Load the following assets in your header. ```html - + - - + + - - + + - - + + - + ``` If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `star-rating.min.css` and `star-rating.min.js` for diff --git a/bower.json b/bower.json index ff99808..5b9c358 100644 --- a/bower.json +++ b/bower.json @@ -1,14 +1,14 @@ { "name": "bootstrap-star-rating", - "version": "4.1.1", + "version": "4.1.2", "homepage": "https://github.com/kartik-v/bootstrap-star-rating", "authors": [ "Kartik Visweswaran " ], "description": "A simple yet powerful JQuery star rating plugin for Bootstrap.", "main": [ - "./css/star-rating.css", - "./js/star-rating.js" + "./css/star-rating.min.css", + "./js/star-rating.min.js" ], "keywords": [ "bootstrap", diff --git a/css/star-rating.css b/css/star-rating.css index 024ae07..0c6db4c 100644 --- a/css/star-rating.css +++ b/css/star-rating.css @@ -1,5 +1,5 @@ /*! - * bootstrap-star-rating v4.1.1 + * bootstrap-star-rating v4.1.2 * http://plugins.krajee.com/star-rating * * Author: Kartik Visweswaran diff --git a/css/star-rating.min.css b/css/star-rating.min.css index 09f9b9a..f80439c 100644 --- a/css/star-rating.min.css +++ b/css/star-rating.min.css @@ -1,5 +1,5 @@ /*! - * bootstrap-star-rating v4.1.1 + * bootstrap-star-rating v4.1.2 * http://plugins.krajee.com/star-rating * * Author: Kartik Visweswaran @@ -7,4 +7,5 @@ * * Licensed under the BSD 3-Clause * https://github.com/kartik-v/bootstrap-star-rating/blob/master/LICENSE.md - */.rating-loading{width:25px;height:25px;font-size:0;color:#fff;background:url(../img/loading.gif) top left no-repeat;border:none}.rating-container .rating-stars{position:relative;cursor:pointer;vertical-align:middle;display:inline-block;overflow:hidden;white-space:nowrap}.rating-container .rating-stars:focus{outline:dotted 1px}.rating-input{display:absolute;cursor:pointer;width:100%;height:1px;bottom:0;left:0;font-size:1px;border:none;background:0 0;opacity:0;padding:0;margin:0}.caption-badge,.rating-container .caption .label{line-height:1;text-align:center;border-radius:.25rem}.rating-container.is-display-only .rating-stars{cursor:default}.rating-disabled .rating-stars{cursor:not-allowed}.rating-container .star{display:inline-block;margin:0 2px;text-align:center}.rating-container .empty-stars{color:#aaa}.rating-container .filled-stars{position:absolute;left:0;top:0;margin:auto;color:#fde16d;white-space:nowrap;overflow:hidden;-webkit-text-stroke:1px #777;text-shadow:1px 1px #999}.rating-rtl{float:right}.rating-animate .filled-stars{transition:width .25s ease}.rating-rtl .filled-stars{left:auto;right:0;transition:none;-webkit-transform:matrix(-1,0,0,1,0,0);transform:matrix(-1,0,0,1,0,0)}.rating-rtl.is-star .filled-stars{right:.06em}.rating-rtl.is-heart .empty-stars{margin-right:.07em}.rating-container .clear-rating{color:#aaa;cursor:not-allowed;display:inline-block;vertical-align:middle;font-size:60%;padding-right:5px}.clear-rating-active{cursor:pointer!important}.clear-rating-active:hover{color:#843534}.rating-container .caption .label{display:inline-block;padding:.25em .4em;vertical-align:baseline}.rating-container .caption{color:#999;display:inline-block;vertical-align:middle;line-height:1;margin-left:5px;margin-right:0}.rating-rtl .caption{margin-right:5px;margin-left:0}@media print{.rating-container .clear-rating{display:none}}.rating-xl{font-size:48px}.rating-lg{font-size:40px}.rating-md{font-size:32px}.rating-sm{font-size:24px}.rating-xs{font-size:16px}.rating-xl .caption{font-size:20px}.rating-lg .caption{font-size:18px}.rating-md .caption{font-size:16px}.rating-sm .caption{font-size:14px}.rating-xs .caption{font-size:12px}.caption-badge{font-family:Arial,Helvetica,sans-serif;display:inline-block;padding:.35em .65em;font-size:.75em;font-weight:700;color:#fff;white-space:nowrap;vertical-align:baseline}.caption-secondary{background-color:#6c757d}.caption-danger{background-color:#dc3545}.caption-warning{background-color:#ffc107;color:#212529}.caption-info{background-color:#0dcaf0;color:#212529}.caption-primary{background-color:#0d6efd}.caption-success{background-color:#198754} \ No newline at end of file + */ +.rating-loading{width:25px;height:25px;font-size:0;color:#fff;background:url(../img/loading.gif) top left no-repeat;border:none}.rating-container .rating-stars{position:relative;cursor:pointer;vertical-align:middle;display:inline-block;overflow:hidden;white-space:nowrap}.rating-container .rating-stars:focus{outline:dotted 1px}.rating-input{display:absolute;cursor:pointer;width:100%;height:1px;bottom:0;left:0;font-size:1px;border:none;background:0 0;opacity:0;padding:0;margin:0}.caption-badge,.rating-container .caption .label{line-height:1;text-align:center;border-radius:.25rem}.rating-container.is-display-only .rating-stars{cursor:default}.rating-disabled .rating-stars{cursor:not-allowed}.rating-container .star{display:inline-block;margin:0 2px;text-align:center}.rating-container .empty-stars{color:#aaa}.rating-container .filled-stars{position:absolute;left:0;top:0;margin:auto;color:#fde16d;white-space:nowrap;overflow:hidden;-webkit-text-stroke:1px #777;text-shadow:1px 1px #999}.rating-rtl{float:right}.rating-animate .filled-stars{transition:width .25s ease}.rating-rtl .filled-stars{left:auto;right:0;transition:none;-webkit-transform:matrix(-1,0,0,1,0,0);transform:matrix(-1,0,0,1,0,0)}.rating-rtl.is-star .filled-stars{right:.06em}.rating-rtl.is-heart .empty-stars{margin-right:.07em}.rating-container .clear-rating{color:#aaa;cursor:not-allowed;display:inline-block;vertical-align:middle;font-size:60%;padding-right:5px}.clear-rating-active{cursor:pointer!important}.clear-rating-active:hover{color:#843534}.rating-container .caption .label{display:inline-block;padding:.25em .4em;vertical-align:baseline}.rating-container .caption{color:#999;display:inline-block;vertical-align:middle;line-height:1;margin-left:5px;margin-right:0}.rating-rtl .caption{margin-right:5px;margin-left:0}@media print{.rating-container .clear-rating{display:none}}.rating-xl{font-size:48px}.rating-lg{font-size:40px}.rating-md{font-size:32px}.rating-sm{font-size:24px}.rating-xs{font-size:16px}.rating-xl .caption{font-size:20px}.rating-lg .caption{font-size:18px}.rating-md .caption{font-size:16px}.rating-sm .caption{font-size:14px}.rating-xs .caption{font-size:12px}.caption-badge{font-family:Arial,Helvetica,sans-serif;display:inline-block;padding:.35em .65em;font-size:.75em;font-weight:700;color:#fff;white-space:nowrap;vertical-align:baseline}.caption-secondary{background-color:#6c757d}.caption-danger{background-color:#dc3545}.caption-warning{background-color:#ffc107;color:#212529}.caption-info{background-color:#0dcaf0;color:#212529}.caption-primary{background-color:#0d6efd}.caption-success{background-color:#198754} \ No newline at end of file diff --git a/examples/sample.html b/examples/bs3.html similarity index 87% rename from examples/sample.html rename to examples/bs3.html index 85c89e3..e7c227c 100644 --- a/examples/sample.html +++ b/examples/bs3.html @@ -1,20 +1,31 @@ + Krajee JQuery Plugins - © Kartik - + - - - + + + - - - + + + +