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

Last change on this file since 335 was 335, checked in by tjcschipper, 13 years ago
  • Removed rft/ui/*Button classes, since they are not actually needed. All buttons use standard dijit.form.Button again.

(baseClass: 'rft*Button', color: 'lowercase *, iconClass: 'rftIcon rftIcon*')

  • Changed CSS color classes to be shorter and more organized. No more highlightRed, now just red.
  • Moved extra .css files from client/dojotoolkit/dijit/themes/gamelab folder to client/rft/css folder, so they are actually included. Same for icons. Gamelab theme now contains only original Claro theme with renamed base class. Part of an effort to make the gamelab style work with standard inclusions of Dojo toolkit. (Override instead of change!)
  • Changed rft/ui/LineWithActionsWidgetThijs.js to use the new Button format.
  • Changed rft/ui/LineWithActionsWidgetThijs.js and rft/ui/SelectorThijs.js to use a new way to add Actions to the LineWithActions?. Instead of {"action": function(){}}, you now pass {"action": {callback: function(){}, properties: {props}}}.

The properties object is used as a mixin during creation of the Buttons, so you can directly set properties on the resulting buttons here. Most important one: action.properties.blockButton (boolean), that determines whether the Button should be a blockButton or inlineButton.

File size: 4.8 KB
Line 
1/* And now for the RFT specific stuff! */
2/*LargeButton*/
3.gamelab .rftLargeButton {
4    margin-right: 16px;
5}
6.gamelab .rftLargeButton .dijitButtonNode {
7    border: none;
8    height: 24px;
9    background-image: none;
10    background: transparent;
11    color: #999999;
12    font-size: 20px;
13    box-shadow: none;
14    transition: color 0.3s;
15    -moz-transition: color 0.3s;
16    -webkit-transition: color 0.3s;
17    -o-transition: color 0.3s;
18}
19.gamelab .rftLargeButton .rftIcon {
20    width: 24px;
21    height: 24px;
22    background-image: url('images/icons/rftIcons24.png');
23}
24.gamelab .rftLargeButton .dijitButtonText {
25    line-height: 24px;
26    margin-left: 6px;
27    padding: 0;
28}
29.gamelab .rftLargeButton.rftLargeButtonHover .dijitButtonNode {
30    transition: color 0.1s;
31    -moz-transition: color 0.1s;
32    -webkit-transition: color 0.1s;
33    -o-transition: color 0.1s;
34    color: #ffffff;
35}
36.gamelab .rftLargeButton.rftLargeButtonActive .dijitButtonNode {
37    color: #0794d1;
38    transition: color 0.1s;
39    -moz-transition: color 0.1s;
40    -webkit-transition: color 0.1s;
41    -o-transition: color 0.1s;
42}
43
44/*BlockButton*/
45.gamelab .rftBlockButton {
46    height: 24px;
47    margin: 0;
48    line-height: 20px;
49}
50.gamelab .rftBlockButton .dijitButtonNode {
51    height: 24px;
52    padding: 0 4px;
53    border: none;
54    background-image: none;
55    color: #ffffff;
56    font-size: 13px;
57    border-radius: 0;
58    -moz-border-radius: 0;
59    transition: background-color 0.3s;
60    -moz-transition: background-color 0.3s;
61    -webkit-transition: background-color 0.3s;
62    -o-transition: background-color 0.3s;
63}
64.gamelab .rftBlockButton .rftIcon {
65    height: 16px;
66    width: 16px;
67    background-image: url('images/icons/rftIcons16.png');
68}
69.gamelab .rftBlockButton.rftBlockButtonHover .rftIcon {
70    background-image: url('images/icons/rftIcons16black.png');
71}
72.gamelab .rftBlockButton.rftBlockButtonHover .dijitButtonNode {
73    /*background: #999999 !important;*/
74    /* Currently not used, only applicable when all the different colours of BlockButton need the same background colour on hover */
75    transition: background-color 0.1s;
76    -moz-transition: background-color 0.1s;
77    -webkit-transition: background-color 0.1s;
78    -o-transition: background-color 0.1s;
79}
80.gamelab .rftBlockButton.blue .dijitButtonNode {
81    background: #0794d1;
82}
83.gamelab .rftBlockButton.blue.rftBlockButtonHover .dijitButtonNode {
84    background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */
85    color: #0794d1;
86}
87.gamelab .rftBlockButton.red .dijitButtonNode {
88    background: #bd0013;
89}
90.gamelab .rftBlockButton.red.rftBlockButtonHover .dijitButtonNode {
91    background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */
92    color: #bd0013;
93}
94.gamelab .rftBlockButton.green .dijitButtonNode {
95    background: #79ca0a;
96}
97.gamelab .rftBlockButton.green.rftBlockButtonHover .dijitButtonNode {
98    background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */
99    color: #79ca0a;
100}
101.gamelab .rftBlockButton.orange .dijitButtonNode {
102    background: #ff9140;
103}
104.gamelab .rftBlockButton.orange.rftBlockButtonHover .dijitButtonNode {
105    background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */
106    color: #ff9140;
107}
108.gamelab .rftBlockButton.purple .dijitButtonNode {
109    background: #993dec;
110}
111.gamelab .rftBlockButton.purple.rftBlockButtonHover .dijitButtonNode {
112    background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */
113    color: #993dec;
114}
115
116
117/* InlineButton */
118.gamelab .rftInlineButton {
119    height: 24px;
120    margin: 0 -6px 0 -2px;
121}
122.gamelab .rftInlineButton .dijitButtonNode {
123    width: 24px;
124    height: 24px;
125    margin: 0;
126    padding: 0;
127    background: transparent;
128    border: none;
129}
130.gamelab .rftInlineButton .rftIcon {
131    width: 16px;
132    height: 16px;
133    margin: 0 4px 0 4px;
134    background-image: url('images/icons/rftIcons16.png');
135}
136.gamelab .rftInlineButton.white .rftIcon {
137    background-image: url('images/icons/rftIcons16.png');
138}
139.gamelab .rftInlineButton.black .rftIcon {
140    background-image: url('images/icons/rftIcons16black.png');
141}
142.gamelab .rftInlineButton.rftInlineButtonHover .dijitButtonNode {
143    /* No changes so far */
144    /*background-color: #ff00ff;*/
145}
146.gamelab .rftInlineButton.rftInlineButtonHover .rftIcon {
147    /* We should use either the displacement or the background image change, not both! */
148    /*background-image: url('../../icons/images/rftIcons16c.png');*/
149    margin: 1px 4px -1px 4px;
150}
151.gamelab .rftInlineButton.rftInlineButtonActive .rftIcon {
152    /* This "afterclick" is optional. Check to see if people like it or not! */
153    margin: 2px 4px -2px 4px;
154}
Note: See TracBrowser for help on using the repository browser.