]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy/dark/_base.less
77472a2f5cf5b0118eaff5f01b3433226b053cae
[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
24 //* font colour, aka color: */
25 @lt_main_colour: #ffff99;
26 @main_colour: #eeeecc;
27 @main_alt_colour: #eeeeee;
28 // darken(@main_alt_colour, 13%) > #cdcdcd
29 // darken(@main_alt_colour, 13.5%) > #cccccc
30 // darken(@main_alt_colour, 33%) > #9a9a9a
31 // darken(@main_alt_colour, 24%) > #b1b1b1
32 // darken(@main_alt_colour, 27%) > #a9a9a9
33 // darken(@main_alt_colour, 33.5%) > #999999
34 // darken(@main_alt_colour, 40%) > #888888
35 // darken(@main_alt_colour, 46.8%) > #777777
36 // darken(@main_alt_colour, 53.5%) > #666666
37 // darken(@main_alt_colour, 60%) > #555555
38 // darken(@main_alt_colour, 66.5%) > #444444
39 // darken(@main_alt_colour, 73.5%) > #333333
40 // darken(@main_alt_colour, 80%) > #222222
41 // darken(@main_alt_colour, 86.5%) > #111111
42 @disabled_colour: #ddddbb;
43 @shiny_colour: #2e3436;
44 @red_orange: #ff2000;
45 @orange: #f8911b;
46 @lt_orange: #fcaf3e;
47 @shadow_colour: darken(@main_alt_colour, 86.5%);
48 @friendica_blue: #3465a4;
49 @border2: #babdb6;
50 @group_show: #9ade00;
51 @group_hide: #ff4141;
52 @notice: #3320bc;
53 @info: #1353b1;
54 @alert: #ff0000;
55
56 @lt_main_colour: lighten(@bg_colour, 10%);
57 @dk_main_colour: darken(@bg_colour, 10%);
58
59 //* links */
60 @link_colour: #88a9d2;
61 @dk_link_colour: darken(@link_colour, 10%);
62 @lt_link_colour: lighten(@link_colour, 10%);
63 //@hover_colour: #729fcf;
64 @hover_colour: @dk_link_colour;
65
66 //* box shadows */
67 @menu_shadow: 5px 0 10px 0 @shadow_colour;
68 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
69
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;
77 }
78 //* http://css-tricks.com/snippets/css/css-box-shadow/
79 //* 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
88 //* it will be.
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).
92 //* 5. Colo[u]r
93 //*/
94
95 //* text-shadow */
96 .text_shadow (@h: 1px, @v: 1px, @c: #111) {
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;
102 }
103 //* transitions */
104 .transition (@type: all, @dur: 0.5s, @effect: ease-in-out) {
105     -webkit-transition: @arguments;
106     -moz-transition: @arguments;
107     -o-transition: @arguments;
108     -ms-transition: @arguments;
109     transition: @arguments;
110 }
111
112 //* borders */
113 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
114         border: @size @style @colour;
115 }
116
117 //* rounded box corners */
118 .rounded_corners (@r: 5px) {
119         -o-border-radius: @r;
120         -webkit-border-radius: @r;
121         -moz-border-radius: @r;
122         -ms-border-radius: @r;
123         border-radius: @r;
124 }
125 .text_overflow (@t: ellipsis) {
126         -moz-text-overflow: @t;
127         -ms-text-verflow: @t;
128         -o-text-overflow: @t;
129         -webkit-text-overflow: @t;
130         text-overflow: @t;
131 }
132
133 //* pre wrap */
134 .wrap () {
135         white-space: pre-wrap;
136         white-space: pre;
137         word-wrap: none;
138 }
139 //* font size sizing */
140 .default_font () {
141         font-size: 16px;
142         line-height: 1.1em;
143         font-family: sans-serif;
144 }
145
146 //* reset ul, ol */
147 .list_reset () {
148         margin: 0px;
149         padding: 0px;
150         list-style: none;
151         list-style-position: inside;
152 }
153
154 //* box size: width, height */
155 .box (@w: 20px, @h: 20px) {
156         width: @w;
157         height: @h;
158 }
159