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:
1.3 KB
|
Line | |
---|
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;
|
---|
31 | }
|
---|
32 |
|
---|
33 | .noPadding () {
|
---|
34 | padding: 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 | background-image: url('images/icons/rftIcons16@{b}.png');
|
---|
44 | }
|
---|
45 |
|
---|
46 | .setIconSize (@size, @b) when (@size > 24px) {
|
---|
47 | width: @size;
|
---|
48 | height: @size;
|
---|
49 | margin: 0;
|
---|
50 | background-image: url('images/icons/rftIcons24@{b}.png');
|
---|
51 | }
|
---|
52 |
|
---|
53 | .setIconSize (@size, @b) when (@size >= 32px) {
|
---|
54 | width: @size;
|
---|
55 | height: @size;
|
---|
56 | margin: 0;
|
---|
57 | background-image: url('images/icons/rftIcons32@{b}.png');
|
---|
58 | }
|
---|
59 |
|
---|
60 | .setIcon (@size, black) {
|
---|
61 | .setIconSize(@size, "b");
|
---|
62 | }
|
---|
63 | .setIcon (@size, white) {
|
---|
64 | .setIconSize(@size, "");
|
---|
65 | }
|
---|
66 | .setIcon (@size) {
|
---|
67 | .setIconSize(@size, "");
|
---|
68 | }
|
---|
69 | //------------------------------------------ |
---|
Note: See
TracBrowser
for help on using the repository browser.