Changeset 411 for Dev/branches/rest-dojo-ui/client/rft/css/LESS/mixins.less
- Timestamp:
- 10/10/12 17:45:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/css/LESS/mixins.less
r409 r411 28 28 29 29 .noMargin () { 30 margin: 0 ;30 margin: 0 0 0 0; 31 31 } 32 32 33 33 .noPadding () { 34 padding: 0 ;34 padding: 0 0 0 0; 35 35 } 36 36 //------------------------------------------ 37 37 //ICONS 38 38 39 .setIconSize (@size, @b) when (@size =< 24px) {39 .setIconSize (@size, @b) when (@size < 24px) { 40 40 width: @size; 41 41 height: @size; 42 42 margin: ((24px - @size) / 2) 0; 43 .noPadding (); 43 44 background-image: url('images/icons/rftIcons16@{b}.png'); 44 45 } 45 46 46 .setIconSize (@size, @b) when (@size > 24px) and (@size < 32) { 47 width: @size; 48 height: @size; 49 margin: 0; 47 .setIconSize (@size, @b) when (@size >= 24px) and (@size < 32) { 48 width: 24px; 49 height: 24px; 50 .noMargin (); 51 .noPadding (); 50 52 background-image: url('images/icons/rftIcons24@{b}.png'); 51 53 } 52 54 53 55 .setIconSize (@size, @b) when (@size >= 32px) { 54 width: @size;55 height: @size;56 width: 32px; 57 height: 32px; 56 58 margin: 0; 59 .noPadding (); 57 60 background-image: url('images/icons/rftIcons32@{b}.png'); 58 61 } … … 68 71 } 69 72 //------------------------------------------ 73 74 //Old colour settings 75 //TODO: I AM NOT SURE IF THIS ACTUALLY WORKS! THOROUGHLY TEST WHEN APPLIED TO PAGES!!!! 76 // Oke, wat. Deze shit is echt niet te snappen. :P Gewoon maar weer de oude meuk erin hangen? 77 .blockButtonColorMixin (@color) { 78 .dijitButtonNode { 79 background-color: @@color; 80 } 81 82 &.dijitHover { 83 .dijitButtonNode { 84 background-color: @text; 85 } 86 } 87 &.dijitActive { 88 .dijitButtonNode { 89 @colorName: "@{color}_light"; 90 background-color: @@colorName; 91 } 92 } 93 94 }
Note: See TracChangeset
for help on using the changeset viewer.