From 228e505029c4e85298a0b17c5ab5f08dc502b64a Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Sat, 5 Apr 2014 16:20:03 +0530 Subject: [PATCH] Reformatted as per coding standards --- bower.json | 60 ++--- composer.json | 34 +-- css/star-rating.css | 120 ++++----- examples/index.html | 28 +-- js/star-rating.js | 586 ++++++++++++++++++++++---------------------- 5 files changed, 414 insertions(+), 414 deletions(-) diff --git a/bower.json b/bower.json index 7d00ab3..109945b 100644 --- a/bower.json +++ b/bower.json @@ -1,32 +1,32 @@ { - "name": "bootstrap-star-rating", - "version": "1.0.0", - "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.min.css", - "./js/star-rating.min.js" - ], - "keywords": [ - "bootstrap", - "star", - "rating" - ], - "dependencies": { - "jquery": ">= 1.9.0", - "bootstrap": ">= 3.0.0" - }, - "license": "BSD-3", - "ignore": [ - "**/.*", - "node_modules", - "composer.json", - "examples", - "bower_components", - "test", - "tests" - ] + "name": "bootstrap-star-rating", + "version": "1.0.0", + "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.min.css", + "./js/star-rating.min.js" + ], + "keywords": [ + "bootstrap", + "star", + "rating" + ], + "dependencies": { + "jquery": ">= 1.9.0", + "bootstrap": ">= 3.0.0" + }, + "license": "BSD-3", + "ignore": [ + "**/.*", + "node_modules", + "composer.json", + "examples", + "bower_components", + "test", + "tests" + ] } diff --git a/composer.json b/composer.json index b8dc64f..045d449 100644 --- a/composer.json +++ b/composer.json @@ -1,19 +1,19 @@ { - "name": "kartik-v/bootstrap-star-rating", - "description": "A simple yet powerful JQuery star rating plugin for Bootstrap.", - "keywords": ["bootstrap", "jquery", "star", "rating"], - "homepage": "https://github.com/kartik-v/bootstrap-star-rating", - "license": "BSD 3-Clause", - "authors": [ - { - "name": "Kartik Visweswaran", - "email": "kartikv2@gmail.com", - "homepage": "http://www.krajee.com/" - } - ], - "autoload": { - "psr-4": { - "kartik\\": "" - } - } + "name": "kartik-v/bootstrap-star-rating", + "description": "A simple yet powerful JQuery star rating plugin for Bootstrap.", + "keywords": ["bootstrap", "jquery", "star", "rating"], + "homepage": "https://github.com/kartik-v/bootstrap-star-rating", + "license": "BSD 3-Clause", + "authors": [ + { + "name": "Kartik Visweswaran", + "email": "kartikv2@gmail.com", + "homepage": "http://www.krajee.com/" + } + ], + "autoload": { + "psr-4": { + "kartik\\": "" + } + } } diff --git a/css/star-rating.css b/css/star-rating.css index fefc06f..f49fbc0 100644 --- a/css/star-rating.css +++ b/css/star-rating.css @@ -13,161 +13,161 @@ * Stars */ .star-rating s, .star-rating-rtl s { - padding: 2px; + padding: 2px; } .star-rating s, .star-rating-rtl s { - color: #ccc; - text-decoration: none; - cursor: not-allowed; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + color: #ccc; + text-decoration: none; + cursor: not-allowed; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } .star-rating-disabled { - opacity: 0.65; + opacity: 0.65; } .star-rating-active s, .star-rating-rtl-active s { - cursor: default; + cursor: default; } .star-rating-active s:hover:before, .star-rating s.rated:before { - text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); - content: "\e006"; - color: #fde16d; + text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); + content: "\e006"; + color: #fde16d; } .star-rating s:before { - text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); - content: "\e007"; + text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); + content: "\e007"; } .star-rating-rtl-active s:hover:after, .star-rating-rtl s.rated:after { - text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); - content: "\e006"; - color: #fde16d; + text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); + content: "\e006"; + color: #fde16d; } .star-rating-rtl s:after { - text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); - content: "\e007"; + text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); + content: "\e007"; } .star-rating-active s:hover:before, .star-rating-rtl-active s:hover:after { - text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); - color: #8a6d3b; + text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); + color: #8a6d3b; } /** * Rating sizes */ .rating-xl { - font-size: 50px; - line-height: 32px; + font-size: 50px; + line-height: 32px; } .rating-lg { - font-size: 40px; - line-height: 26px; + font-size: 40px; + line-height: 26px; } .rating-md { - font-size: 32px; - line-height: 21px; + font-size: 32px; + line-height: 21px; } .rating-sm { - font-size: 26px; - line-height: 17px; + font-size: 26px; + line-height: 17px; } .rating-xs { - font-size: 21px; - line-height: 14px; + font-size: 21px; + line-height: 14px; } /** * Clear rating button */ .star-rating .clear-rating, .star-rating-rtl .clear-rating { - color: #aaa; - cursor: not-allowed; - display: inline-block; - vertical-align: middle; - font-size: 70%; + color: #aaa; + cursor: not-allowed; + display: inline-block; + vertical-align: middle; + font-size: 70%; } .clear-rating-active { - cursor: pointer !important; + cursor: pointer !important; } .clear-rating-active:hover { - color: #843534; + color: #843534; } .star-rating .clear-rating { - padding-right: 5px; + padding-right: 5px; } .star-rating-rtl .clear-rating { - padding-left: 5px; + padding-left: 5px; } .rating-xl .clear-rating { - padding-bottom: 20px; + padding-bottom: 20px; } .rating-lg .clear-rating { - padding-bottom: 17px; + padding-bottom: 17px; } .rating-md .clear-rating { - padding-bottom: 15px; + padding-bottom: 15px; } .rating-sm .clear-rating { - padding-bottom: 12px; + padding-bottom: 12px; } .rating-xs .clear-rating { - padding-bottom: 10px; + padding-bottom: 10px; } /** * Caption */ .star-rating .caption, .star-rating-rtl .caption { - color: #999; - display: inline-block; - vertical-align: middle; + color: #999; + display: inline-block; + vertical-align: middle; } .rating-xl .caption { - font-size: 24px; - padding-bottom: 25px; + font-size: 24px; + padding-bottom: 25px; } .rating-lg .caption { - font-size: 20px; - padding-bottom: 22px; + font-size: 20px; + padding-bottom: 22px; } .rating-md .caption { - font-size: 18px; - padding-bottom: 20px; + font-size: 18px; + padding-bottom: 20px; } .rating-sm .caption { - font-size: 16px; - padding-bottom: 17px; + font-size: 16px; + padding-bottom: 17px; } .rating-xs .caption { - font-size: 14px; - padding-bottom: 12px; + font-size: 14px; + padding-bottom: 12px; } \ No newline at end of file diff --git a/examples/index.html b/examples/index.html index b8e0333..17e3ebc 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1,12 +1,12 @@ - - Krajee JQuery Plugins - © Kartik - - - - + + Krajee JQuery Plugins - © Kartik + + + +

Bootstrap Star Rating Example

- - - - - + + + + +