Ignore:
Timestamp:
09/05/12 16:05:13 (13 years ago)
Author:
tjcschipper
Message:

-Rest of LESS conversion

File:
1 edited

Legend:

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

    r403 r409  
    33                //Index menu
    44                .rftIndexMenuBlock {
    5                         width: @mm_blockwidth;
    6                         height: @mm_blockheight;
     5                        width: @im_blockwidth;
     6                        height: @im_blockheight;
    77                        background: @base1;
    88                        float: left;
    9                         margin: @mm_blockmargin;
     9                        margin: @im_blockmargin;
    1010                        overflow: hidden;
    1111
    1212                        &:hover .rftIndexMenuMask {
    13                                 margin-top: -@mm_blockheight;
     13                                margin-top: -@im_blockheight;
    1414                        }
    1515                }
    1616                .rftIndexMenuMask {
    17                         width: @mm_blockwidth;
    18                         height: @mm_blockheight;
     17                        width: @im_blockwidth;
     18                        height: @im_blockheight;
    1919                        background: @base1;
    2020                        color: @headers;
     
    2323                        .label {
    2424                                color: @headers;
    25                                 font-size: @mm_font_size;
    26                                 height: @mm_font_size;
    27                                 line-height: @mm_font_size;
    28                                 margin-top: (@mm_blockheight - @mm_font_size) / 2;
     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;
    2929                                float: left;
    3030                        }
     
    3333                                .setIcon(32px);
    3434                                float: left;
    35                                 margin: ((@mm_blockheight - @mm_font_size)/2) 8px 0 8px;
     35                                margin: ((@im_blockheight - @im_font_size)/2) 8px 0 8px;
    3636                        }
     37                }
     38                .rftIndexMenuButton {
     39                        .flatShading;
     40                        .noOffset;
     41                        .transition (0.3s);
     42                        line-height: @button_indexmenu_height;
     43                        border: none;
     44
     45                        .dijitButtonNode {
     46                                border: none;
     47                                color: @headers;
     48                                font-size: @h2Size;
     49
     50                                .dijitButtonContents {
     51                                        vertical-align: top;
     52
     53                                        .dijitButtonText {
     54                                                padding-bottom: 10px;
     55                                                line-height: 20px;
     56                                        }
     57
     58                                        .rftIcon {
     59                                                .setIcon (32px);
     60                                                margin: 0 @std_offset_big;
     61                                        }
     62                                }
     63
     64                               
     65                        }
     66
     67                        .indexMenuMixin (@number) when (@number > 0){
     68                                @height: @im_blockheight / @number;
     69                                height: @height;
     70                               
     71                                .dijitButtonNode {
     72                                        margin: ((@height - @button_indexmenu_content_size)/2) 0 0 0;
     73                                }
     74                        }
     75
     76                        &.oneHeight {
     77                                .indexMenuMixin (4);
     78                        }
     79                        &.twoHeight {
     80                                .indexMenuMixin (2);
     81                        }
     82                        &.fourHeight {
     83                                .indexMenuMixin (1);
     84                        }
     85
     86                        &.rftIndexMenuButtonHover {
     87                                color: @text;
     88                                .transition(0.1s);
     89                                .dijitButtonText {
     90                                        color: @text;
     91                                        .transition(0.1s);
     92                                }
     93
     94                                &.blue {
     95                                        background-color: @blue;
     96                                }
     97                                &.red {
     98                                        background-color: @red;
     99                                }
     100                                &.green {
     101                                        background-color: @green;
     102                                }
     103                                &.orange {
     104                                        background-color: @orange;
     105                                }
     106                                &.purple {
     107                                        background-color: @purple;
     108                                }
     109                        }
     110
     111                        &.rftIndexMenuButtonActive {
     112                                .setIcon (32px, black);
     113                                .transition(0.3s);
     114                                color: @darkest;
     115                                background: @text;
     116
     117                        }
     118
    37119                }
    38120
Note: See TracChangeset for help on using the changeset viewer.