3 // the base file for dispy's dark "sub-theme".
6 // this is used to define mixins (think of them as functions)
7 // and variables. the mixins are the ".foo () {}" things, vars are
10 // (BTW, this will make it a LOT easier to maintain.)
12 // Dev. Note: the // style comments don't show up at all when
13 // you "compile" the css (with `lessc`), but css (/**/) comments
14 // do. i use them to our advantage :).
17 @dk_bg_colour: #1d1f1d;
19 @bg_alt_colour: #2e302e;
20 @med_bg_colour: #4e4f4e;
21 @menu_bg_colour: #555753;
23 //* font colour, aka color: */
24 @lt_main_colour: #ffff99;
25 @main_colour: #eeeecc;
26 @main_alt_colour: #eeeeee;
27 // darken(@main_alt_colour, 13%) > #cdcdcd
28 // darken(@main_alt_colour, 60%) > #555555
29 @disabled_colour: #ddddbb;
30 @shiny_colour: #2e3436;
34 @shadow_colour: #111111;
35 @friendica_blue: #3465a4;
40 @lt_main_colour: lighten(@bg_colour, 10%);
41 @dk_main_colour: darken(@bg_colour, 10%);
44 @link_colour: #88a9d2;
45 @dk_link_colour: darken(@link_colour, 10%);
46 @lt_link_colour: lighten(@link_colour, 10%);
47 //@hover_colour: #729fcf;
48 @hover_colour: @dk_link_colour;
51 @menu_shadow: 5px 0 10px 0 @shadow_colour;
52 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
54 // default here was @main_shadow
55 .box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: @shadow_colour) {
56 -moz-box-shadow: @h @v @blur @spread @colour;
57 -o-box-shadow: @h @v @blur @spread @colour;
58 -webkit-box-shadow: @h @v @blur @spread @colour;
59 -ms-box-shadow: @h @v @blur @spread @colour;
60 box-shadow: @h @v @blur @spread @colour;
62 //* http://css-tricks.com/snippets/css/css-box-shadow/
64 //* 1. The horizontal offset of the shadow, positive means
65 //* the shadow will be on the right of the box, a negative
66 //* offset will put the shadow on the left of the box.
67 //* 2. The vertical offset of the shadow, a negative one
68 //* means the box-shadow will be above the box, a
69 //* positive one means the shadow will be below the box.
70 //* 3. The blur radius (optional), if set to 0 the shadow
71 //* will be sharp, the higher the number, the more blurred
73 //* 4. The spread radius (optional), positive values increase
74 //* the size of the shadow, negative values decrease the size.
75 //* Default is 0 (the shadow is same size as blur).
80 .text_shadow (@h: 1px, @v: 1px, @c: #111) {
81 -moz-text-shadow: @h @v @c;
82 -o-text-shadow: @h @v @c;
83 -webkit-text-shadow: @h @v @c;
84 -ms-text-shadow: @h @v @c;
85 text-shadow: @h @v @c;
88 .transition (@type: all, @dur: 0.5s, @effect: ease-in-out) {
89 -webkit-transition: @arguments;
90 -moz-transition: @arguments;
91 -o-transition: @arguments;
92 -ms-transition: @arguments;
93 transition: @arguments;
97 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
98 border: @size @style @colour;
101 //* rounded box corners */
102 .rounded_corners (@r: 5px) {
103 -o-border-radius: @r;
104 -webkit-border-radius: @r;
105 -moz-border-radius: @r;
106 -ms-border-radius: @r;
112 white-space: pre-wrap;
116 //* font size sizing */
120 font-family: sans-serif;
128 list-style-position: inside;
131 //* box size: width, height */
132 .box (@w: 20px, @h: 20px) {