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/menus.less

    r409 r411  
    33                //Index menu
    44                .rftIndexMenuBlock {
    5                         width: @im_blockwidth;
    6                         height: @im_blockheight;
     5                        width: @indexmenu_blockwidth;
     6                        height: @indexmenu_blockheight;
    77                        background: @base1;
    88                        float: left;
    9                         margin: @im_blockmargin;
     9                        margin: @indexmenu_blockmargin;
    1010                        overflow: hidden;
    1111
    1212                        &:hover .rftIndexMenuMask {
    13                                 margin-top: -@im_blockheight;
     13                                margin-top: -@indexmenu_blockheight;
    1414                        }
    1515                }
    1616                .rftIndexMenuMask {
    17                         width: @im_blockwidth;
    18                         height: @im_blockheight;
     17                        width: @indexmenu_blockwidth;
     18                        height: @indexmenu_blockheight;
    1919                        background: @base1;
    2020                        color: @headers;
     
    2323                        .label {
    2424                                color: @headers;
    25                                 font-size: @im_font_size;
    26                                 height: @im_font_size;
    27                                 line-height: @im_font_size;
    28                                 margin-top: (@im_blockheight - @im_font_size) / 2;
     25                                font-size: @indexmenu_font_size;
     26                                height: @indexmenu_font_size;
     27                                line-height: @indexmenu_font_size;
     28                                margin-top: (@indexmenu_blockheight - @indexmenu_font_size) / 2;
    2929                                float: left;
    3030                        }
     
    3333                                .setIcon(32px);
    3434                                float: left;
    35                                 margin: ((@im_blockheight - @im_font_size)/2) 8px 0 8px;
     35                                margin: ((@indexmenu_blockheight - @indexmenu_font_size)/2) 8px 0 8px;
    3636                        }
    3737                }
     
    6666
    6767                        .indexMenuMixin (@number) when (@number > 0){
    68                                 @height: @im_blockheight / @number;
     68                                @height: @indexmenu_blockheight / @number;
    6969                                height: @height;
     70                                width: @indexmenu_blockwidth;
    7071                               
    7172                                .dijitButtonNode {
     
    8687                        &.rftIndexMenuButtonHover {
    8788                                color: @text;
    88                                 .transition(0.1s);
     89                                .transition (0.1s);
    8990                                .dijitButtonText {
    9091                                        color: @text;
     
    110111
    111112                        &.rftIndexMenuButtonActive {
    112                                 .setIcon (32px, black);
     113                                .rftIcon {
     114                                        .setIcon (32px, black);
     115                                }
    113116                                .transition(0.3s);
    114117                                color: @darkest;
     
    125128                                .flatShading;
    126129                                color: @headers;
     130                                background-color: @base;
    127131                                border: none;
    128132
     
    130134                                        color: @headers;
    131135                                        .flatShading;
    132                                         background-color: transparent;
     136                                        background-color: @base;
    133137
    134138                                        &.dijitMenuItemHover,
     
    138142                                                        color: @text;
    139143                                                }
     144
     145                                                &.red {
     146                                                        background-color: @red;
     147                                                }
     148                                                &.blue {
     149                                                        background-color: @blue;
     150                                                }
     151                                                &.green {
     152                                                        background-color: @green;
     153                                                }
     154                                                &.orange {
     155                                                        background-color: @orange;
     156                                                }
     157                                                &.purple {
     158                                                        background-color: @purple;
     159                                                }
     160
    140161                                        }
    141162
Note: See TracChangeset for help on using the changeset viewer.