source: Dev/branches/rest-dojo-ui/client/rft/css/rftButtons.css @ 395

Last change on this file since 395 was 395, checked in by tjcschipper, 13 years ago
  • Fixed inheritBgColor CSS classes. Now works for buttons as well. LineWithActions? and the classes that use it still need some changes. LWA needs to get rid of colour "modifier" property and always pass "inheritBgColor (light, optionally) to the buttons". Classes that use LWA need to stop passing modifiers to them;)
  • Improved SurveyEditorPreviewItem? design, less of an eyesore, and can now use the correct button colors.
File size: 10.2 KB
Line 
1/*LargeButton*/
2.claro .rftLargeButton,
3.claro .rftLargeButton * {
4    user-select: none;
5    -webkit-user-select: none;
6}
7.claro .rftLargeButton {
8    margin-right: 16px;
9    height: 30px;
10}
11.claro .rftLargeButton .dijitButtonNode {
12    border: none;
13    height: 24px;
14    background-image: none;
15    background: transparent;
16    color: #999999;
17    font-size: 20px;
18    box-shadow: none;
19    transition: color 0.3s;
20    -moz-transition: color 0.3s;
21    -webkit-transition: color 0.3s;
22    -o-transition: color 0.3s;
23}
24.claro .rftLargeButton .rftIcon {
25    width: 24px;
26    height: 24px;
27    background-image: url('images/icons/rftIcons24.png');
28}
29.claro .rftLargeButton.black .rftIcon {
30    background-image: url('images/icons/rftIcons24b.png');
31}
32.claro .rftLargeButton .dijitButtonText {
33    line-height: 24px;
34    margin-left: 6px;
35    padding: 0;
36}
37.claro .rftLargeButton.rftLargeButtonHover .dijitButtonNode {
38    transition: color 0.1s;
39    -moz-transition: color 0.1s;
40    -webkit-transition: color 0.1s;
41    -o-transition: color 0.1s;
42    color: #ffffff;
43}
44.claro .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
45    color: #0794d1;
46    transition: color 0.1s;
47    -moz-transition: color 0.1s;
48    -webkit-transition: color 0.1s;
49    -o-transition: color 0.1s;
50}
51
52/*BlockButton*/
53.claro .rftBlockButton {
54    height: 24px;
55    margin: 0;
56    line-height: 20px;
57}
58.claro .rftBlockButton .dijitButtonNode {
59    height: 24px;
60    padding: 0 4px;
61    border: none;
62    background-image: none;
63    color: #ffffff;
64    font-size: 13px;
65    border-radius: 0;
66    -moz-border-radius: 0;
67    transition: background-color 0.3s;
68    -moz-transition: background-color 0.3s;
69    -webkit-transition: background-color 0.3s;
70    -o-transition: background-color 0.3s;
71}
72.claro .rftBlockButton .rftIcon {
73    height: 16px !important;
74    width: 16px !important;
75    background-image: url('images/icons/rftIcons16.png') !important;
76}
77.claro .rftBlockButton .rftIcon.black {
78    background-image: url('images/icons/rftIcons16b.png') !important;
79}
80.claro .rftBlockButton.rftBlockButtonHover .rftIcon {
81    background-image: url('images/icons/rftIcons16b.png') !important;
82}
83.claro .rftBlockButton.rftBlockButtonActive .rftIcon {
84    background-image: url('images/icons/rftIcons16b.png') !important;
85}
86.claro .rftBlockButton.rftBlockButtonHover .dijitButtonNode {
87    /*background: #999999 !important;*/
88    /* Currently not used, only applicable when all the different colours of BlockButton need the same background colour on hover */
89    transition: background-color 0.1s;
90    -moz-transition: background-color 0.1s;
91    -webkit-transition: background-color 0.1s;
92    -o-transition: background-color 0.1s;
93}
94
95/* Color hovers */
96/* These pertain to the 'normal' blockButtons - those that are placed on an empty background (gray) */
97.claro span.orange.inheritBgColor.rftBlockButtonHover,
98.claro .orange .inheritBgColor.rftBlockButtonHover {
99    background-color: #ff9140 !important;
100}
101.claro span.orange.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
102.claro .orange .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
103    color: #ff5b12;
104}
105.claro span.blue.inheritBgColor.rftBlockButtonHover,
106.claro .blue .inheritBgColor.rftBlockButtonHover {
107    background-color: #0794d1 !important;
108}
109.claro span.blue.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
110.claro .blue .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
111    color: #0072bc;
112}
113.claro span.green.inheritBgColor.rftBlockButtonHover,
114.claro .green .inheritBgColor.rftBlockButtonHover {
115    background-color: #79ca0a !important;
116}
117.claro span.green.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
118.claro .green .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
119    color: #3aa605;
120}
121.claro span.red.inheritBgColor.rftBlockButtonHover,
122.claro .red .inheritBgColor.rftBlockButtonHover {
123    background-color: #bd0013 !important;
124}
125.claro span.red.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
126.claro .red .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
127    color: #8c0310;
128}
129.claro span.purple.inheritBgColor.rftBlockButtonHover,
130.claro .purple .inheritBgColor.rftBlockButtonHover {
131    background-color: #993dec !important;
132}
133.claro span.purple.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
134.claro .purple .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
135    color: #6529b7;
136}
137.claro .inheritBgColor.rftBlockButtonActive {
138    background-color: #ffffff !important;
139}
140
141/* These pertain to 'docked' BlockButtons, those on a coloured background, identified by the class "light" */
142.claro span.light.inheritBgColor.rftBlockButtonHover,
143.claro .light .inheritBgColor.rftBlockButtonHover {
144    background-color: #ffffff !important;
145}
146.claro span.light.inheritBgColor.rftBlockButtonHover .dijitButtonNode,
147.claro .light .inheritBgColor.rftBlockButtonHover .dijitButtonNode {
148    color: #000000;
149}
150.claro span.light.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
151.claro .light .inheritBgColor.rftBlockButtonActive .dijitButtonNode {
152    color: #ffffff;
153}
154/* colour specific ones*/
155.claro span.orange.light.inheritBgColor.rftBlockButtonActive .dijitButtonNode,
156.claro .orange .light.inheritBgColor.rftBlockButtonActive .dijitButtonNode {
157    background-color: #ff5b12 !important;
158}
159.claro span.green.light.inheritBgColor.rftBlockButtonActive,
160.claro .green .light.inheritBgColor.rftBlockButtonActive {
161    background-color: #3aa605 !important;
162}
163.claro span.red.light.inheritBgColor.rftBlockButtonActive,
164.claro .red .light.inheritBgColor.rftBlockButtonActive {
165    background-color: #8c0310 !important;
166}
167.claro span.purple.light.inheritBgColor.rftBlockButtonActive,
168.claro .purple .light.inheritBgColor.rftBlockButtonActive {
169    background-color: #6529b7 !important;
170}
171.claro span.blue.light.inheritBgColor.rftBlockButtonActive,
172.claro .blue .light.inheritBgColor.rftBlockButtonActive {
173    background-color: #0072bc !important;
174}
175
176
177/* InlineButton */
178.claro .rftInlineButton {
179    float: right;
180    height: 24px;
181    width: 24px;
182}
183.claro .rftInlineButton .dijitButtonNode {
184    width: 24px;
185    height: 24px;
186    margin: 0;
187    padding: 0;
188    background: transparent;
189    border: none;
190}
191.claro .rftInlineButton .rftIcon {
192    width: 16px;
193    height: 16px;
194    background-image: url('images/icons/rftIcons16.png');
195}
196.claro .rftInlineButton.white .rftIcon {
197    background-image: url('images/icons/rftIcons16.png');
198}
199.claro .rftInlineButton.black .rftIcon {
200    background-image: url('images/icons/rftIcons16b.png');
201}
202.claro .rftInlineButton .rftIcon.black {
203    background-image: url('images/icons/rftIcons16b.png');
204}
205.claro .rftInlineButton .rftIcon.white {
206    background-image: url('images/icons/rftIcons16.png');
207}
208.claro .rftInlineButton.rftInlineButtonHover .rftIcon {
209    /* We should use either the displacement or the background image change, not both! */
210    /*background-image: url('../../icons/images/rftIcons16c.png');*/
211    margin-top: 1px;
212}
213.claro .rftInlineButton.rftInlineButtonActive .rftIcon {
214    /* This "afterclick" is optional. Check to see if people like it or not! */
215    /* Good, the displacement on click does not come from these settings! */
216}
217
218/* MainMenuButton */
219.claro .dijitMenuBar .rftMainMenuButton {
220    border: none;
221    height: 30px;
222    width: auto;
223    background-image: none;
224    background: transparent;
225    text-align: center;
226    color: #999999;
227    font-size: 24px;
228    line-height: 30px;
229    padding: 0 4px;
230    margin: 0 5px;
231    box-shadow: none;
232    transition: all 0.3s;
233    -moz-transition: all 0.3s;
234    -webkit-transition: all 0.3s;
235    -o-transition: all 0.3s;
236}
237.claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemHover {
238    color: #ffffff;
239    font-size: 26px;
240    transition: all 0.1s;
241    -moz-transition: all 0.1s;
242    -webkit-transition: all 0.1s;
243    -o-transition: all 0.1s;
244}
245.claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemActive {
246    color: #0794d1 !important;
247    font-size: 26px;
248    transition: all 0.1s;
249    -moz-transition: all 0.1s;
250    -webkit-transition: all 0.1s;
251    -o-transition: all 0.1s;
252}
253.claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemSelected {
254    color: #ffffff;
255    font-size: 26px;
256}
257
258/* IndexMenuButton */
259.claro .rftIndexMenuButton {
260    display: block;
261    margin: 0;
262    padding: 0;
263    line-height: 32px;
264    vertical-align: middle;
265    text-align: left;
266    transition: all 0.3s;
267    -moz-transition: all 0.3s;
268    -webkit-transition: all 0.3s;
269    -o-transition: all 0.3s;
270}
271.claro .rftIndexMenuButton .dijitButtonNode {
272    border: none;
273    color: #999999;
274    font-size: 24px;
275    font-weight: normal;
276}
277.claro .rftIndexMenuButton .dijitButtonText {
278    padding-bottom: 10px;
279    line-height: 20px;
280    transition: all 0.3s;
281    -moz-transition: all 0.3s;
282    -webkit-transition: all 0.3s;
283    -o-transition: all 0.3s;
284}
285.claro .rftIndexMenuButton .dijitButtonContents {
286    vertical-align: top;
287}
288.claro .rftIndexMenuButton .rftIcon {
289    height: 32px;
290    width: 32px;
291    margin: 0 8px;
292    padding: 0;
293    background-image: url('images/icons/rftIcons32.png');
294    vertical-align: top;
295}
296.claro .oneHeight {
297    height: 100px;
298}
299.claro .oneHeight .dijitButtonNode {
300    margin: 34px 0 0 0;
301}
302.claro .twoHeight {
303    height: 200px;
304}
305.claro .twoHeight .dijitButtonNode {
306    margin: 82px 0 0 0;
307}
308.claro .fourHeight {
309    height: 400px;
310}
311.claro .fourHeight .dijitButtonNode {
312    margin: 184px 0 0 0;
313}
314.claro .rftIndexMenuButton.rftIndexMenuButtonHover,
315.claro .rftIndexMenuButton.rftIndexMenuButtonHover .dijitButtonText {
316    color: #ffffff;
317    transition: all 0.1s;
318    -moz-transition: all 0.1s;
319    -webkit-transition: all 0.1s;
320    -o-transition: all 0.1s;
321}
322.claro .rftIndexMenuButton.rftIndexMenuButtonHover.blue {
323    background: #0072bc;
324}
325.claro .rftIndexMenuButton.rftIndexMenuButtonHover.green {
326    background: #3aa605;
327}
328.claro .rftIndexMenuButton.rftIndexMenuButtonHover.red {
329    background: #8c0310;
330}
331.claro .rftIndexMenuButton.rftIndexMenuButtonHover.purple {
332    background: #6529b7;
333}
334.claro .rftIndexMenuButton.rftIndexMenuButtonHover.orange {
335    background: #ff5b12;
336}
337.claro .rftIndexMenuButton.rftIndexMenuButtonActive {
338    color: #000000;
339    background: #ffffff;
340    transition: all 0.3s;
341    -moz-transition: all 0.3s;
342    -webkit-transition: all 0.3s;
343    -o-transition: all 0.3s;
344}
345.claro .rftIndexMenuButton.rftIndexMenuButtonActive .rftIcon {
346    background-image: url('images/icons/rftIcons32b.png');
347}
348
Note: See TracBrowser for help on using the repository browser.