Browse Source

Increase contrast on rating icons, hitbox on heart, remove console log

pull/1129/head
jlukic 10 years ago
parent
commit
f6009776ed
3 changed files with 9 additions and 12 deletions
  1. 3
      src/definitions/modules/rating.js
  2. 6
      src/themes/packages/default/collections/grid.variables
  3. 12
      src/themes/packages/default/modules/rating.variables

3
src/definitions/modules/rating.js

@ -56,7 +56,6 @@ $.fn.rating = function(parameters) {
initialize: function() { initialize: function() {
module.verbose('Initializing rating module', settings); module.verbose('Initializing rating module', settings);
console.log($module);
if($icon.size() === 0) { if($icon.size() === 0) {
module.setup.layout(); module.setup.layout();
} }
@ -196,7 +195,6 @@ $.fn.rating = function(parameters) {
: 0, : 0,
$activeIcon = $icon.eq(ratingIndex) $activeIcon = $icon.eq(ratingIndex)
; ;
console.log(rating, ratingIndex, $icon);
$module $module
.removeClass(className.selected) .removeClass(className.selected)
; ;
@ -206,7 +204,6 @@ $.fn.rating = function(parameters) {
; ;
if(rating > 0) { if(rating > 0) {
module.verbose('Setting current rating to', rating); module.verbose('Setting current rating to', rating);
console.log($activeIcon.prevAll().andSelf());
$activeIcon $activeIcon
.prevAll() .prevAll()
.andSelf() .andSelf()

6
src/themes/packages/default/collections/grid.variables

@ -15,7 +15,7 @@
*******************************/ *******************************/
@minWidth: 320px; @minWidth: 320px;
@gutterWidth: 1.5%;
@gutterWidth: 0.75rem;
@rowSpacing: 1.5rem; @rowSpacing: 1.5rem;
@firstRowSpacing: 0rem; @firstRowSpacing: 0rem;
@ -51,8 +51,8 @@
Relaxed Relaxed
---------------*/ ---------------*/
@relaxedGutterWidth: 2.5%;
@veryRelaxedGutterWidth: 4%;
@relaxedGutterWidth: 1rem;
@veryRelaxedGutterWidth: 2rem;
/*-------------- /*--------------
Divided Divided

12
src/themes/packages/default/modules/rating.variables

@ -28,15 +28,15 @@
; ;
/* Heart */ /* Heart */
@heartIconHitbox: 1.2em;
@heartIconHitbox: 1.25em;
@heartInactiveColor: @inactiveColor; @heartInactiveColor: @inactiveColor;
@heartSelectedColor: #FF2733; @heartSelectedColor: #FF2733;
@heartActiveColor: #EF404A;
@heartActiveColor: #FF2733;
@heartActiveShadow: @heartActiveShadow:
0px -1px 0px #EF404A,
-1px 0px 0px #EF404A,
0px 1px 0px #EF404A,
1px 0px 0px #EF404A
0px -1px 0px #9E0000,
-1px 0px 0px #9E0000,
0px 1px 0px #9E0000,
1px 0px 0px #9E0000
; ;

Loading…
Cancel
Save