Ignore:
Timestamp:
10/10/12 17:45:49 (13 years ago)
Author:
tjcschipper
Message:
  • LESS is finally ready for use. Some small visual bugs remain.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/css/LESS/mixins.less

    r409 r411  
    2828
    2929.noMargin () {
    30         margin: 0;
     30        margin: 0 0 0 0;
    3131}
    3232
    3333.noPadding () {
    34         padding: 0;
     34        padding: 0 0 0 0;
    3535}
    3636//------------------------------------------
    3737//ICONS
    3838
    39 .setIconSize (@size, @b) when (@size =< 24px) {
     39.setIconSize (@size, @b) when (@size < 24px) {
    4040        width: @size;
    4141        height: @size;
    4242        margin: ((24px - @size) / 2) 0;
     43        .noPadding ();
    4344        background-image: url('images/icons/rftIcons16@{b}.png');
    4445}
    4546
    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 ();
    5052        background-image: url('images/icons/rftIcons24@{b}.png');
    5153}
    5254
    5355.setIconSize (@size, @b) when (@size >= 32px) {
    54         width: @size;
    55         height: @size;
     56        width: 32px;
     57        height: 32px;
    5658        margin: 0;
     59        .noPadding ();
    5760        background-image: url('images/icons/rftIcons32@{b}.png');
    5861}
     
    6871}
    6972//------------------------------------------
     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.