]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy/dark/_base.less
Merge remote branch 'upstream/master'
[friendica.git] / view / theme / dispy / dark / _base.less
1 // _base.less
2 //
3 // the base file for dispy's dark "sub-theme".
4 //
5 // Notes:
6 // this is used to define mixins (think of them as functions)
7 // and variables. the mixins are the ".foo () {}" things, vars are
8 // like "@bar".
9 //
10 // (BTW, this will make it a LOT easier to maintain.)
11 // 
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 :).
15
16 //* backgrounds */
17 @dk_bg_colour: #1d1f1d;
18 @bg_colour: #2e2f2e;
19 @bg_alt_colour: #2e302e;
20 @med_bg_colour: #4e4f4e;
21 @menu_bg_colour: #555753;
22
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;
31 @red_orange: #ff2000;
32 @orange: #f8911b;
33 @lt_orange: #fcaf3e;
34 @shadow_colour: #111111;
35 @friendica_blue: #3465a4;
36 @notice: #3320bc;
37 @info: #1353b1;
38 @alert: #ff0000;
39
40 @lt_main_colour: lighten(@bg_colour, 10%);
41 @dk_main_colour: darken(@bg_colour, 10%);
42
43 //* links */
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;
49
50 //* box shadows */
51 @menu_shadow: 5px 0 10px 0 @shadow_colour;
52 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
53
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;
61 }
62 //* http://css-tricks.com/snippets/css/css-box-shadow/
63 //* 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
72 //* it will be.
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).
76 //* 5. Colo[u]r
77 //*/
78
79 //* text-shadow */
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;
86 }
87 //* transitions */
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;
94 }
95
96 //* borders */
97 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
98         border: @size @style @colour;
99 }
100
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;
107         border-radius: @r;
108 }
109
110 //* pre wrap */
111 .wrap () {
112         white-space: pre-wrap;
113         white-space: pre;
114         word-wrap: none;
115 }
116 //* font size sizing */
117 .default_font () {
118         font-size: 16px;
119         line-height: 1.1em;
120         font-family: sans-serif;
121 }
122
123 //* reset ul, ol */
124 .list_reset () {
125         margin: 0px;
126         padding: 0px;
127         list-style: none;
128         list-style-position: inside;
129 }
130
131 //* box size: width, height */
132 .box (@w: 20px, @h: 20px) {
133         width: @w;
134         height: @h;
135 }
136