source: Dev/branches/rest-dojo-ui/client/rft/css/LESS/rftButtons.less @ 411

Last change on this file since 411 was 411, checked in by tjcschipper, 13 years ago
  • LESS is finally ready for use. Some small visual bugs remain.
File size: 3.4 KB
Line 
1#rft {
2        &.claro {
3               
4                //LARGEBUTTON---------------------------------
5                .rftLargeButton {
6
7                        .flatShading;
8                        margin-right: @button_large_spacing;
9                        height: @button_large_height;
10
11                        &*, * {
12                                -webkit-user-select: none;
13                                -moz-user-select: none;
14                                -ms-user-select: none;
15                                user-select: none;
16                        }
17
18                        .dijitButtonNode {
19
20                                .flatShading;
21                                border: none;
22                                height: @button_large_height;
23                                background: transparent;
24                                color: @headers;
25                                font-size: @button_large_font_size;
26                                .transition(0.3s);
27
28                                .rftIcon {
29                                        .setIcon(24px);
30                                }
31
32                                .dijitButtonText {
33                                        line-height: @button_large_height;
34                                        .noMargin;
35                                        padding-left: @std_offset_big;
36                                }
37                        }
38                       
39                        &.black .dijitButtonNode .rftIcon {
40                                .setIcon(24px, black);
41                        }
42
43                        &.rftLargeButtonHover .dijitButtonNode,
44                        &.rftLargeButtonActive .dijitButtonNode {
45                                .transition (0.1s);
46                        }
47                }
48
49                //colors on hover
50                span.blue.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
51                .blue .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
52                        color: @blue_light;
53                }
54                span.orange.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
55                .orange .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
56                        color: @orange_light;
57                }
58                span.green.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
59                .green .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
60                        color: @green_light;
61                }
62                span.red.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
63                .red .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
64                        color: @red_light;
65                }
66                span.purple.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
67                .purple .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
68                        color: @purple_light;
69                }
70
71                //BLOCKBUTTON---------------------------------
72                .rftBlockButton {
73                       
74                        .flatShading;
75                        .noMargin;
76                        height: @button_block_height;
77                        line-height: @button_block_height;
78                        vertical-align: top;
79
80                        .dijitButtonNode {
81                                .flatShading;
82                                .transition (0.3s);
83                                line-height: @button_block_height;
84                                vertical-align: top;
85                                height: @button_block_height;
86                                padding: 0 @std_offset;
87                                border: none;
88                                color: @text;
89                                font-size: @button_block_font_size;
90
91                                .rftIcon {
92                                        .setIcon(16px);
93                                }
94                        }
95
96                        &.rftBlockButtonHover,
97                        &.rftBlockButtonActive {
98                                .transition (0.1s);
99                                .rftIcon {
100                                        vertical-align: top;
101                                        .setIcon(16px, black);
102                                }
103                        }
104
105                        //Disabled because this is presumably useless
106                        // &.blue {
107                        //      .blockButtonColorMixin ("blue");
108                        // }
109                        // &.green {
110                        //      .blockButtonColorMixin ("green");
111                        // }
112                        // &.orange {
113                        //      .blockButtonColorMixin ("orange");
114                        // }
115                        // &.red {
116                        //      .blockButtonColorMixin ("red");
117                        // }
118                        // &.purple {
119                        //      .blockButtonColorMixin ("purple");
120                        // }
121                }
122
123               
124
125               
126
127
128                //INLINEBUTTON---------------------------------
129                .rftInlineButton {
130                        float: right;
131                        height: @button_inline_height;
132                        width: @button_inline_height;
133
134                        .dijitButtonNode {
135                                .noOffset;
136                                .flatShading;
137                                width: @button_inline_height;
138                                height: @button_inline_height;
139                                border: none;
140                        }
141
142                        .rftIcon {
143                                .setIcon(16px);
144                        }
145                        &.white .rftIcon {
146                                .setIcon(16px);
147                        }
148                        &.black .rftIcon {
149                                .setIcon(16px, black);
150                        }
151
152                        &.rftInlineButtonHover.white {
153                                .setIcon(16px, black);
154                        }
155                        &.rftInlineButtonHover.black {
156                                .setIcon(16px, black);
157                        }
158                }
159        }
160}
Note: See TracBrowser for help on using the repository browser.