]> git.mxchange.org Git - friendica.git/blob - view/theme/dispy/light/_base.less
Merge remote branch 'upstream/master'
[friendica.git] / view / theme / dispy / light / _base.less
1 // _base.less
2 //
3 // the base file for dispy's light "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: #2e3436;
21 @bg_colour: #eeeeec;
22 @bg_alt_colour: #2e302e;
23 @med_bg_colour: #4e4f4e;
24 @menu_bg_colour: #555753;
25
26 //* font colour, aka color: */
27 @lt_main_colour: #ffff99;
28 @main_colour: #111;
29 @main_alt_colour: #999999;
30 // darken(@main_alt_colour, 6.5%) > #888888
31 // //#9eabb0
32 // darken(@main_alt_colour, 10%) > #777777
33 // darken(@main_alt_colour, 20%) > #666666
34 // darken(@main_alt_colour, 26.8%) > #555555
35 // darken(@main_alt_colour, 33.5%) > #444444
36 // darken(@main_alt_colour, 40%) > #333333
37 //
38 // lighten(@main_alt_colour, 26.5%) > #dddddd
39 // lighten(@main_alt_colour, 20%) > #cccccc
40 // lighten(@main_alt_colour, 13.5%) > #bbbbbb
41 // lighten(@main_alt_colour, 6.5%) > #aaaaaa
42 // lighten(@main_alt_colour, 30%)
43 @disabled_colour: #dddddd;
44 @shiny_colour: #f2f2c3;
45 @red_orange: #ff2000;
46 @orange: #f8911b;
47 @lt_orange: #fcaf3e;
48 @shadow_colour: @main_colour;
49 @lt_shadow_colour: #888888;
50 @friendica_blue: #3465a4;
51 @border2: #babdb6;
52 @group_show: #9ade00;
53 @group_hide: #ff4141;
54 @notice: #511919;
55 @info: #364e59;
56 @alert: #ff0000;
57
58 @lt_main_colour: lighten(@bg_colour, 10%);
59 @dk_main_colour: darken(@bg_colour, 10%);
60
61 //* links */
62 // yes our link colour is "friendica blue" ;)
63 @link_colour: @friendica_blue;
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 // other colours
70 @med_border_colour: #babdd6;
71
72 //* box shadows */
73 @menu_shadow: 5px 0 10px 0 @shadow_colour;
74 @main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
75
76 // default here was @main_shadow
77 .box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: @shadow_colour) {
78         -moz-box-shadow: @h @v @blur @spread @colour;
79         -o-box-shadow: @h @v @blur @spread @colour;
80         -webkit-box-shadow: @h @v @blur @spread @colour;
81         -ms-box-shadow: @h @v @blur @spread @colour;
82         box-shadow: @h @v @blur @spread @colour;
83 }
84 //* http://css-tricks.com/snippets/css/css-box-shadow/
85 //* box-shadow:
86 //* 1. The horizontal offset of the shadow, positive means
87 //* the shadow will be on the right of the box, a negative
88 //* offset will put the shadow on the left of the box.
89 //* 2. The vertical offset of the shadow, a negative one
90 //* means the box-shadow will be above the box, a
91 //* positive one means the shadow will be below the box.
92 //* 3. The blur radius (optional), if set to 0 the shadow
93 //* will be sharp, the higher the number, the more blurred
94 //* it will be.
95 //* 4. The spread radius (optional), positive values increase
96 //* the size of the shadow, negative values decrease the size.
97 //* Default is 0 (the shadow is same size as blur).
98 //* 5. Colo[u]r
99 //*/
100
101 //* text-shadow */
102 .text_shadow (@h: 1px, @v: 1px, @c: @shadow_colour) {
103         -moz-text-shadow: @h @v @c;
104         -o-text-shadow: @h @v @c;
105         -webkit-text-shadow: @h @v @c;
106         -ms-text-shadow: @h @v @c;
107         text-shadow: @h @v @c;
108 }
109 //* transitions */
110 .transition (@type: all, @dur: 0.75s, @effect: ease-in-out) {
111     -webkit-transition: @arguments;
112     -moz-transition: @arguments;
113     -o-transition: @arguments;
114     -ms-transition: @arguments;
115     transition: @arguments;
116 }
117
118 //* borders */
119 .borders (@size: 1px, @style: solid, @colour: @main_colour) {
120         border: @size @style @colour;
121 }
122 .med_borders (@sz: 2px, @st: solid, @c: @med_border_colour) {
123         border: @sz @st @c;
124 }
125 //* rounded box corners */
126 .rounded_corners (@r: 5px) {
127         -o-border-radius: @r;
128         -webkit-border-radius: @r;
129         -moz-border-radius: @r;
130         -ms-border-radius: @r;
131         border-radius: @r;
132 }
133 .text_overflow (@t: ellipsis) {
134         -moz-text-overflow: @t;
135         -ms-text-verflow: @t;
136         -o-text-overflow: @t;
137         -webkit-text-overflow: @t;
138         text-overflow: @t;
139 }
140
141 //* pre wrap */
142 .wrap () {
143         white-space: pre-wrap;
144         white-space: pre;
145         word-wrap: none;
146 }
147 //* font size sizing */
148 .default_font () {
149         font-size: 14pt;
150         line-height: 1.1em;
151         font-family: sans-serif;
152 }
153 .font_size_adjust () {
154         -webkit-text-size-adjust: 100%;
155         -ms-text-size-adjust: 100%;
156         -o-text-size-adjust: 100%;
157         font-size-adjust: 100%;
158 }
159
160 //* reset ul, ol */
161 .list_reset () {
162         margin: 0px;
163         padding: 0px;
164         list-style: none;
165         list-style-position: inside;
166 }
167
168 //* box size: width, height */
169 .box (@w: 20px, @h: 20px) {
170         width: @w;
171         height: @h;
172 }
173