1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
//*
//* _base.less
//*
//*
//* backgrounds */
@dk_bg_colour: #1d1f1d;
@bg_colour: #2e2f2e;
@bg_alt_colour: #2e302e;
@med_bg_colour: #4e4f4f;
@menu_bg_colour: #555753;
//* font colour, aka color: */
@lt_main_colour: #ffff99;
@main_colour: #eeeecc;
@main_alt_colour: #eeeeee;
@disabled_colour: #ddddbb;
@shiny_colour: #2e3436;
@lt_main_colour: lighten(@bg_colour, 10%);
@dk_main_colour: darken(@bg_colour, 10%);
//* links */
@link_colour: #88a9d2;
@dk_link_colour: darken(@link_colour, 10%);
@lt_link_colour: lighten(@link_colour, 10%);
//@hover_colour: #729fcf;
@hover_colour: darken(@link_colour, 10%);
//* box shadows */
@menu_shadow: 5px 0 10px 0 #111;
@main_shadow: 3px 3px 3px 10px 0 #111;
// default here is @main_shadow
.box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: #111) {
-moz-box-shadow: @h @v @blur @spread @colour;
-o-box-shadow: @h @v @blur @spread @colour;
-webkit-box-shadow: @h @v @blur @spread @colour;
-ms-box-shadow: @h @v @blur @spread @colour;
box-shadow: @h @v @blur @spread @colour;
}
//* text-shadow */
.text_shadow (@h: 1px, @v: 1px, @c: #111) {
-moz-text-shadow: @h @v @c;
-o-text-shadow: @h @v @c;
-webkit-text-shadow: @h @v @c;
-ms-text-shadow: @h @v @c;
text-shadow: @h @v @c;
}
//* transitions */
.transition (@type: all, @dur: 0.5s, @effect: ease-in-out) {
-webkit-transition: @arguments;
-moz-transition: @arguments;
-o-transition: @arguments;
-ms-transition: @arguments;
transition: @arguments;
}
//* borders */
.borders (@size: 1px, @style: solid, @colour: @main_colour) {
border: @size @style @colour;
}
//* rounded box corners */
.rounded_corners (@r: 5px) {
-o-border-radius: @r;
-webkit-border-radius: @r;
-moz-border-radius: @r;
-ms-border-radius: @r;
border-radius: @r;
}
//* pre wrap */
.wrap () {
white-space: pre-wrap;
white-space: pre;
word-wrap: break-word;
}
//* font size sizing */
.default_font_size () {
font-size: 16px;
line-height: 1.1em;
font-family: sans-serif;
}
//* reset ul, ol */
.list_reset () {
margin: 0px;
padding: 0px;
list-style: none;
list-style-position: inside;
}
//* box size: width, height */
.box (@w: 20px, @h: 20px) {
width: @w;
height: @h;
}
|