3 // the base file for dispy's light "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 :).
16 // import our reset styles first
17 @import "../css/reset";
20 @dk_bg_colour: #2e3436;
22 @bg_alt_colour: #2e302e;
23 @med_bg_colour: #4e4f4e;
24 @menu_bg_colour: #555753;
26 //* font colour, aka color: */
27 @lt_main_colour: #ffff99;
29 @main_alt_colour: #999999;
30 // darken(@main_alt_colour, 10%) > #777777
31 // darken(@main_alt_colour, 20%) > #666666
32 // darken(@main_alt_colour, 26.8%) > #555555
33 // darken(@main_alt_colour, 33.5%) > #444444
34 // darken(@main_alt_colour, 40%) > #333333
36 // lighten(@main_alt_colour, 20%) > #cccccc
37 // lighten(@main_alt_colour, 30%)
38 @disabled_colour: #dddddd;
39 @shiny_colour: #f2f2c3;
43 @shadow_colour: @main_colour;
44 @lt_shadow_colour: #888888;
45 @friendica_blue: #3465a4;
53 @lt_main_colour: lighten(@bg_colour, 10%);
54 @dk_main_colour: darken(@bg_colour, 10%);
57 @link_colour: #3465a4;
58 @dk_link_colour: darken(@link_colour, 10%);
59 @lt_link_colour: lighten(@link_colour, 10%);
60 //@hover_colour: #729fcf;
61 @hover_colour: @dk_link_colour;
64 @med_border_colour: #babdd6;
67 @menu_shadow: 5px 0 10px 0 @shadow_colour;
68 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
70 // default here was @main_shadow
71 .box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: @shadow_colour) {
72 -moz-box-shadow: @h @v @blur @spread @colour;
73 -o-box-shadow: @h @v @blur @spread @colour;
74 -webkit-box-shadow: @h @v @blur @spread @colour;
75 -ms-box-shadow: @h @v @blur @spread @colour;
76 box-shadow: @h @v @blur @spread @colour;
78 //* http://css-tricks.com/snippets/css/css-box-shadow/
80 //* 1. The horizontal offset of the shadow, positive means
81 //* the shadow will be on the right of the box, a negative
82 //* offset will put the shadow on the left of the box.
83 //* 2. The vertical offset of the shadow, a negative one
84 //* means the box-shadow will be above the box, a
85 //* positive one means the shadow will be below the box.
86 //* 3. The blur radius (optional), if set to 0 the shadow
87 //* will be sharp, the higher the number, the more blurred
89 //* 4. The spread radius (optional), positive values increase
90 //* the size of the shadow, negative values decrease the size.
91 //* Default is 0 (the shadow is same size as blur).
96 .text_shadow (@h: 1px, @v: 1px, @c: @shadow_colour) {
97 -moz-text-shadow: @h @v @c;
98 -o-text-shadow: @h @v @c;
99 -webkit-text-shadow: @h @v @c;
100 -ms-text-shadow: @h @v @c;
101 text-shadow: @h @v @c;
104 .transition (@type: all, @dur: 0.75s, @effect: ease-in-out) {
105 -webkit-transition: @arguments;
106 -moz-transition: @arguments;
107 -o-transition: @arguments;
108 -ms-transition: @arguments;
109 transition: @arguments;
113 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
114 border: @size @style @colour;
116 .med_borders (@sz: 2px, @st: solid, @c: @med_border_colour) {
119 //* rounded box corners */
120 .rounded_corners (@r: 5px) {
121 -o-border-radius: @r;
122 -webkit-border-radius: @r;
123 -moz-border-radius: @r;
124 -ms-border-radius: @r;
127 .text_overflow (@t: ellipsis) {
128 -moz-text-overflow: @t;
129 -ms-text-verflow: @t;
130 -o-text-overflow: @t;
131 -webkit-text-overflow: @t;
137 white-space: pre-wrap;
141 //* font size sizing */
145 font-family: sans-serif;
147 .font_size_adjust () {
148 -webkit-text-size-adjust: 100%;
149 -ms-text-size-adjust: 100%;
150 -o-text-size-adjust: 100%;
151 font-size-adjust: 100%;
159 list-style-position: inside;
162 //* box size: width, height */
163 .box (@w: 20px, @h: 20px) {