]> 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 // import our reset styles first
17 @import "../css/reset";
18
19 //* backgrounds */
20 @dk_bg_colour: #1d1f1d;
21 @bg_colour: #2e2f2e;
22 @bg_alt_colour: #2e302e;
23 @med_bg_colour: #4e4f4e;
24 @menu_bg_colour: #555753;
25
26
27 //* font colour, aka color: */
28 @lt_main_colour: #ffff99;
29 @main_colour: #eeeecc;
30 @main_alt_colour: #eeeeee;
31 // darken(@main_alt_colour, 13%) > #cdcdcd
32 // darken(@main_alt_colour, 13.5%) > #cccccc
33 // darken(@main_alt_colour, 33%) > #9a9a9a
34 // darken(@main_alt_colour, 24%) > #b1b1b1
35 // darken(@main_alt_colour, 27%) > #a9a9a9
36 // darken(@main_alt_colour, 33.5%) > #999999
37 // darken(@main_alt_colour, 40%) > #888888
38 // darken(@main_alt_colour, 46.8%) > #777777
39 // darken(@main_alt_colour, 53.5%) > #666666
40 // darken(@main_alt_colour, 60%) > #555555
41 // darken(@main_alt_colour, 66.5%) > #444444
42 // darken(@main_alt_colour, 73.5%) > #333333
43 // darken(@main_alt_colour, 80%) > #222222
44 // darken(@main_alt_colour, 86.5%) > #111111
45 @disabled_colour: #ddddbb;
46 @shiny_colour: #2e3436;
47 @red_orange: #ff2000;
48 @orange: #f8911b;
49 @lt_orange: #fcaf3e;
50 @shadow_colour: darken(@main_alt_colour, 86.5%);
51 @friendica_blue: #3465a4;
52 @border2: #babdb6;
53 @group_show: #9ade00;
54 @group_hide: #ff4141;
55 @notice: #3320bc;
56 @info: #1353b1;
57 @alert: #ff0000;
58
59 @lt_main_colour: lighten(@bg_colour, 10%);
60 @dk_main_colour: darken(@bg_colour, 10%);
61
62 //* links */
63 @link_colour: #88a9d2;
64 @dk_link_colour: darken(@link_colour, 10%);
65 @lt_link_colour: lighten(@link_colour, 10%);
66 //@hover_colour: #729fcf;
67 @hover_colour: @dk_link_colour;
68
69 //* box shadows */
70 @menu_shadow: 5px 0 10px 0 @shadow_colour;
71 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
72
73 // default here was @main_shadow
74 .box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: @shadow_colour) {
75         -moz-box-shadow: @h @v @blur @spread @colour;
76         -o-box-shadow: @h @v @blur @spread @colour;
77         -webkit-box-shadow: @h @v @blur @spread @colour;
78         -ms-box-shadow: @h @v @blur @spread @colour;
79         box-shadow: @h @v @blur @spread @colour;
80 }
81 //* http://css-tricks.com/snippets/css/css-box-shadow/
82 //* box-shadow:
83 //* 1. The horizontal offset of the shadow, positive means
84 //* the shadow will be on the right of the box, a negative
85 //* offset will put the shadow on the left of the box.
86 //* 2. The vertical offset of the shadow, a negative one
87 //* means the box-shadow will be above the box, a
88 //* positive one means the shadow will be below the box.
89 //* 3. The blur radius (optional), if set to 0 the shadow
90 //* will be sharp, the higher the number, the more blurred
91 //* it will be.
92 //* 4. The spread radius (optional), positive values increase
93 //* the size of the shadow, negative values decrease the size.
94 //* Default is 0 (the shadow is same size as blur).
95 //* 5. Colo[u]r
96 //*/
97
98 //* text-shadow */
99 .text_shadow (@h: 1px, @v: 1px, @c: #111) {
100         -moz-text-shadow: @h @v @c;
101         -o-text-shadow: @h @v @c;
102         -webkit-text-shadow: @h @v @c;
103         -ms-text-shadow: @h @v @c;
104         text-shadow: @h @v @c;
105 }
106 //* transitions */
107 .transition (@type: all, @dur: 0.5s, @effect: ease-in-out) {
108     -webkit-transition: @arguments;
109     -moz-transition: @arguments;
110     -o-transition: @arguments;
111     -ms-transition: @arguments;
112     transition: @arguments;
113 }
114
115 //* borders */
116 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
117         border: @size @style @colour;
118 }
119
120 //* rounded box corners */
121 .rounded_corners (@r: 5px) {
122         -o-border-radius: @r;
123         -webkit-border-radius: @r;
124         -moz-border-radius: @r;
125         -ms-border-radius: @r;
126         border-radius: @r;
127 }
128 .text_overflow (@t: ellipsis) {
129         -moz-text-overflow: @t;
130         -ms-text-verflow: @t;
131         -o-text-overflow: @t;
132         -webkit-text-overflow: @t;
133         text-overflow: @t;
134 }
135
136 //* pre wrap */
137 .wrap () {
138         white-space: pre-wrap;
139         white-space: pre;
140         word-wrap: none;
141 }
142 //* font size sizing */
143 .default_font () {
144         font-size: 14pt;
145         line-height: 1.1em;
146         font-family: sans-serif;
147 }
148
149 //* reset ul, ol */
150 .list_reset () {
151         margin: 0px;
152         padding: 0px;
153         list-style: none;
154         list-style-position: inside;
155 }
156
157 //* box size: width, height */
158 .box (@w: 20px, @h: 20px) {
159         width: @w;
160         height: @h;
161 }
162