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

Last change on this file since 403 was 403, checked in by tjcschipper, 13 years ago
  • Switched to LESS for stylesheets. Most of the conversion is done, it's only (predictably) the color system that is giving trouble. Plan for next week: get rid of the inherit stuff, just use proper color classes.

-> Use only a minimal .*colorName* .bg/.text class combination that doesn't inherit. Do anything more complicated than that in a page-specific stylesheet.

File size: 4.0 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
50                span.blue.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
51                .blue .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
52                        color: #0794d1;
53                }
54                span.orange.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
55                .orange .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
56                        color: #ff9140;
57                }
58                span.green.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
59                .green .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
60                        color: #79ca0a;
61                }
62                span.red.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
63                .red .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
64                        color: #bd0013;
65                }
66                span.purple.rftLargeButton.rftLargeButtonActive .dijitButtonNode,
67                .purple .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
68                        color: #993dec;
69                }
70
71                //BLOCKBUTTON---------------------------------
72                .rftBlockButton {
73                       
74                        .flatShading;
75                        .noMargin;
76                        height: @button_block_height;
77                        line-height: @button_block_height;
78
79                        .dijitButtonNode {
80                                .flatShading;
81                                .transition (0.3s);
82                                height: @button_block_height;
83                                padding: 0 @std_offset;
84                                border: none;
85                                color: @text;
86                                font-size: @button_block_font_size;
87
88                                .rftIcon {
89                                        .setIcon(24px);
90                                }
91                        }
92
93                        &.rftBlockButtonHover,
94                        &.rftBlockButtonActive {
95                                .transition (0.1s);
96                                .rftIcon {
97                                        .setIcon(24px, black);
98                                }
99                        }
100                }
101
102                //Old colour settings
103                //TODO: I AM NOT SURE IF THIS ACTUALLY WORKS! THOROUGHLY TEST WHEN APPLIED TO PAGES!!!!
104                // Oke, wat. Deze shit is echt niet te snappen. :P Gewoon maar weer de oude meuk erin hangen?
105                .buttonColorMixin (@color) {
106                        &.rftBlockButtonHover {
107                                .dijitButtonNode {
108                                        background-color: @@color;
109                                }
110                                &.light {
111                                        .dijitButtonNode {
112                                                @colorName: "@{color}_light";
113                                                background-color: @@colorName;
114                                        }
115                                }
116                        }
117                        .rftBlockButtonHover {
118                                .dijitButtonNode {
119                                        background-color: @@color;
120                                }
121                                &.light {
122                                        .dijitButtonNode {
123                                                @colorName: "@{color}_light";
124                                                background-color: @@colorName;
125                                        }
126                                }
127                        }
128                        &.light {
129                                .rftBlockButtonHover {
130                                        .dijitButtonNode {
131                                                @colorName: "@{color}_light";
132                                                background-color: @@colorName;
133                                        }
134                                }
135                        }
136                }
137
138                .blue {
139                        .buttonColorMixin ("blue");
140                }
141                .green {
142                        .buttonColorMixin ("green");
143                }
144                .orange {
145                        .buttonColorMixin ("orange");
146                }
147                .red {
148                        .buttonColorMixin ("red");
149                }
150                .purple {
151                        .buttonColorMixin ("purple");
152                }
153
154
155                //INLINEBUTTON---------------------------------
156                .rftInlineButton {
157                        float: right;
158                        height: @button_inline_height;
159                        width: @button_inline_height;
160
161                        .dijitButtonNode {
162                                .noOffset;
163                                .flatShading;
164                                width: @button_inline_height;
165                                height: @button_inline_height;
166                                border: none;
167                        }
168
169                        .rftIcon {
170                                .setIcon(16px);
171                        }
172                        &.white .rftIcon {
173                                .setIcon(16px);
174                        }
175                        &.black .rftIcon {
176                                .setIcon(16px, black);
177                        }
178
179                        &.rftInlineButtonHover.white {
180                                .setIcon(16px, black);
181                        }
182                        &.rftInlineButtonHover.black {
183                                .setIcon(16px, black);
184                        }
185                }
186
187                //MAINMENUBUTTON---------------------------------
188
189        }
190}
Note: See TracBrowser for help on using the repository browser.