1 | //LAYOUT
|
---|
2 | .newLine () {
|
---|
3 | float: left;
|
---|
4 | clear: left;
|
---|
5 | }
|
---|
6 |
|
---|
7 | .transition (@time: @transition_time) {
|
---|
8 | -webkit-transition: all @time;
|
---|
9 | -moz-transition: all @time;
|
---|
10 | -o-transition: all @time;
|
---|
11 | -ms-transition: all @time;
|
---|
12 | transition: all @time;
|
---|
13 | }
|
---|
14 |
|
---|
15 | .flatShading () {
|
---|
16 | //Disable borders, gradients and other effects. One flat colour shading.
|
---|
17 | border: none;
|
---|
18 | background-image: none;
|
---|
19 | -webkit-box-shadow: none;
|
---|
20 | box-shadow: none;
|
---|
21 | border-radius: 0;
|
---|
22 | }
|
---|
23 |
|
---|
24 | .noOffset () {
|
---|
25 | .noMargin;
|
---|
26 | .noPadding;
|
---|
27 | }
|
---|
28 |
|
---|
29 | .noMargin () {
|
---|
30 | margin: 0 0 0 0;
|
---|
31 | }
|
---|
32 |
|
---|
33 | .noPadding () {
|
---|
34 | padding: 0 0 0 0;
|
---|
35 | }
|
---|
36 | //------------------------------------------
|
---|
37 | //ICONS
|
---|
38 |
|
---|
39 | .setIconSize (@size, @b) when (@size < 24px) {
|
---|
40 | width: @size;
|
---|
41 | height: @size;
|
---|
42 | margin: ((24px - @size) / 2) 0;
|
---|
43 | .noPadding ();
|
---|
44 | background-image: url('images/icons/rftIcons16@{b}.png');
|
---|
45 | }
|
---|
46 |
|
---|
47 | .setIconSize (@size, @b) when (@size >= 24px) and (@size < 32) {
|
---|
48 | width: 24px;
|
---|
49 | height: 24px;
|
---|
50 | .noMargin ();
|
---|
51 | .noPadding ();
|
---|
52 | background-image: url('images/icons/rftIcons24@{b}.png');
|
---|
53 | }
|
---|
54 |
|
---|
55 | .setIconSize (@size, @b) when (@size >= 32px) {
|
---|
56 | width: 32px;
|
---|
57 | height: 32px;
|
---|
58 | margin: 0;
|
---|
59 | .noPadding ();
|
---|
60 | background-image: url('images/icons/rftIcons32@{b}.png');
|
---|
61 | }
|
---|
62 |
|
---|
63 | .setIcon (@size, black) {
|
---|
64 | .setIconSize(@size, "b");
|
---|
65 | }
|
---|
66 | .setIcon (@size, white) {
|
---|
67 | .setIconSize(@size, "");
|
---|
68 | }
|
---|
69 | .setIcon (@size, grey) {
|
---|
70 | .setIconSize(@size, "g");
|
---|
71 | }
|
---|
72 | .setIcon (@size) {
|
---|
73 | .setIconSize(@size, "");
|
---|
74 | }
|
---|
75 | //------------------------------------------
|
---|
76 |
|
---|
77 | //Old colour settings
|
---|
78 | //TODO: I AM NOT SURE IF THIS ACTUALLY WORKS! THOROUGHLY TEST WHEN APPLIED TO PAGES!!!!
|
---|
79 | // Oke, wat. Deze shit is echt niet te snappen. :P Gewoon maar weer de oude meuk erin hangen?
|
---|
80 | .blockButtonColorMixin (@color) {
|
---|
81 | .dijitButtonNode {
|
---|
82 | background-color: @@color;
|
---|
83 | }
|
---|
84 |
|
---|
85 | &.dijitHover {
|
---|
86 | .dijitButtonNode {
|
---|
87 | background-color: @text;
|
---|
88 | color: @darkest;
|
---|
89 | }
|
---|
90 | }
|
---|
91 | &.dijitActive {
|
---|
92 | .dijitButtonNode {
|
---|
93 | @colorName: "@{color}_light";
|
---|
94 | background-color: @@colorName;
|
---|
95 | color: @text;
|
---|
96 | }
|
---|
97 | }
|
---|
98 |
|
---|
99 | } |
---|