2012-05-12 07:29:36 -04:00
|
|
|
// _base.less
|
|
|
|
//
|
|
|
|
// the base file for dispy's light "sub-theme".
|
|
|
|
//
|
|
|
|
// Notes:
|
|
|
|
// this is used to define mixins (think of them as functions)
|
|
|
|
// and variables. the mixins are the ".foo () {}" things, vars are
|
|
|
|
// like "@bar".
|
|
|
|
//
|
|
|
|
// (BTW, this will make it a LOT easier to maintain.)
|
|
|
|
//
|
|
|
|
// Dev. Note: the // style comments don't show up at all when
|
|
|
|
// you "compile" the css (with `lessc`), but css (/**/) comments
|
|
|
|
// do. i use them to our advantage :).
|
|
|
|
|
|
|
|
// import our reset styles first
|
|
|
|
@import "../css/reset";
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
//* backgrounds */
|
2012-05-12 07:29:36 -04:00
|
|
|
@dk_bg_colour: #2e3436;
|
|
|
|
@bg_colour: #eeeeec;
|
2012-05-03 14:25:18 -04:00
|
|
|
@bg_alt_colour: #2e302e;
|
2012-05-12 07:29:36 -04:00
|
|
|
@med_bg_colour: #4e4f4e;
|
2012-05-03 14:25:18 -04:00
|
|
|
@menu_bg_colour: #555753;
|
|
|
|
|
|
|
|
//* font colour, aka color: */
|
|
|
|
@lt_main_colour: #ffff99;
|
2012-05-12 07:29:36 -04:00
|
|
|
@main_colour: #111;
|
|
|
|
@main_alt_colour: #999999;
|
2012-05-14 00:30:25 -04:00
|
|
|
// darken(@main_alt_colour, 6.5%) > #888888
|
|
|
|
// //#9eabb0
|
2012-05-12 07:29:36 -04:00
|
|
|
// darken(@main_alt_colour, 10%) > #777777
|
|
|
|
// darken(@main_alt_colour, 20%) > #666666
|
|
|
|
// darken(@main_alt_colour, 26.8%) > #555555
|
|
|
|
// darken(@main_alt_colour, 33.5%) > #444444
|
|
|
|
// darken(@main_alt_colour, 40%) > #333333
|
|
|
|
//
|
2012-05-14 00:30:25 -04:00
|
|
|
// lighten(@main_alt_colour, 26.5%) > #dddddd
|
2012-05-12 07:29:36 -04:00
|
|
|
// lighten(@main_alt_colour, 20%) > #cccccc
|
2012-05-14 00:30:25 -04:00
|
|
|
// lighten(@main_alt_colour, 13.5%) > #bbbbbb
|
|
|
|
// lighten(@main_alt_colour, 6.5%) > #aaaaaa
|
2012-05-12 18:53:01 -04:00
|
|
|
// lighten(@main_alt_colour, 30%)
|
2012-05-12 07:29:36 -04:00
|
|
|
@disabled_colour: #dddddd;
|
|
|
|
@shiny_colour: #f2f2c3;
|
|
|
|
@red_orange: #ff2000;
|
|
|
|
@orange: #f8911b;
|
|
|
|
@lt_orange: #fcaf3e;
|
|
|
|
@shadow_colour: @main_colour;
|
|
|
|
@lt_shadow_colour: #888888;
|
|
|
|
@friendica_blue: #3465a4;
|
|
|
|
@border2: #babdb6;
|
|
|
|
@group_show: #9ade00;
|
|
|
|
@group_hide: #ff4141;
|
|
|
|
@notice: #511919;
|
|
|
|
@info: #364e59;
|
|
|
|
@alert: #ff0000;
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
@lt_main_colour: lighten(@bg_colour, 10%);
|
|
|
|
@dk_main_colour: darken(@bg_colour, 10%);
|
|
|
|
|
|
|
|
//* links */
|
2012-05-21 21:29:18 -04:00
|
|
|
// yes our link colour is "friendica blue" ;)
|
|
|
|
@link_colour: @friendica_blue;
|
2012-05-03 14:25:18 -04:00
|
|
|
@dk_link_colour: darken(@link_colour, 10%);
|
|
|
|
@lt_link_colour: lighten(@link_colour, 10%);
|
|
|
|
//@hover_colour: #729fcf;
|
2012-05-12 07:29:36 -04:00
|
|
|
@hover_colour: @dk_link_colour;
|
|
|
|
|
|
|
|
// other colours
|
|
|
|
@med_border_colour: #babdd6;
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
//* box shadows */
|
2012-05-12 07:29:36 -04:00
|
|
|
@menu_shadow: 5px 0 10px 0 @shadow_colour;
|
|
|
|
@main_shadow: 3px 3px 3px 10px 0 @shadow_colour;
|
2012-05-03 14:25:18 -04:00
|
|
|
|
2012-05-12 07:29:36 -04:00
|
|
|
// default here was @main_shadow
|
|
|
|
.box_shadow(@h: 5px, @v: 5px, @blur: 5px, @spread: 0px, @colour: @shadow_colour) {
|
2012-05-03 14:25:18 -04:00
|
|
|
-moz-box-shadow: @h @v @blur @spread @colour;
|
|
|
|
-o-box-shadow: @h @v @blur @spread @colour;
|
|
|
|
-webkit-box-shadow: @h @v @blur @spread @colour;
|
|
|
|
-ms-box-shadow: @h @v @blur @spread @colour;
|
|
|
|
box-shadow: @h @v @blur @spread @colour;
|
|
|
|
}
|
2012-05-12 07:29:36 -04:00
|
|
|
//* http://css-tricks.com/snippets/css/css-box-shadow/
|
|
|
|
//* box-shadow:
|
|
|
|
//* 1. The horizontal offset of the shadow, positive means
|
|
|
|
//* the shadow will be on the right of the box, a negative
|
|
|
|
//* offset will put the shadow on the left of the box.
|
|
|
|
//* 2. The vertical offset of the shadow, a negative one
|
|
|
|
//* means the box-shadow will be above the box, a
|
|
|
|
//* positive one means the shadow will be below the box.
|
|
|
|
//* 3. The blur radius (optional), if set to 0 the shadow
|
|
|
|
//* will be sharp, the higher the number, the more blurred
|
|
|
|
//* it will be.
|
|
|
|
//* 4. The spread radius (optional), positive values increase
|
|
|
|
//* the size of the shadow, negative values decrease the size.
|
|
|
|
//* Default is 0 (the shadow is same size as blur).
|
|
|
|
//* 5. Colo[u]r
|
|
|
|
//*/
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
//* text-shadow */
|
2012-05-12 07:29:36 -04:00
|
|
|
.text_shadow (@h: 1px, @v: 1px, @c: @shadow_colour) {
|
2012-05-03 14:25:18 -04:00
|
|
|
-moz-text-shadow: @h @v @c;
|
|
|
|
-o-text-shadow: @h @v @c;
|
|
|
|
-webkit-text-shadow: @h @v @c;
|
|
|
|
-ms-text-shadow: @h @v @c;
|
|
|
|
text-shadow: @h @v @c;
|
|
|
|
}
|
|
|
|
//* transitions */
|
2012-05-12 07:29:36 -04:00
|
|
|
.transition (@type: all, @dur: 0.75s, @effect: ease-in-out) {
|
2012-05-03 14:25:18 -04:00
|
|
|
-webkit-transition: @arguments;
|
|
|
|
-moz-transition: @arguments;
|
|
|
|
-o-transition: @arguments;
|
|
|
|
-ms-transition: @arguments;
|
|
|
|
transition: @arguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
//* borders */
|
|
|
|
.borders (@size: 1px, @style: solid, @colour: @main_colour) {
|
|
|
|
border: @size @style @colour;
|
|
|
|
}
|
2012-05-12 07:29:36 -04:00
|
|
|
.med_borders (@sz: 2px, @st: solid, @c: @med_border_colour) {
|
|
|
|
border: @sz @st @c;
|
|
|
|
}
|
2012-05-03 14:25:18 -04:00
|
|
|
//* rounded box corners */
|
|
|
|
.rounded_corners (@r: 5px) {
|
|
|
|
-o-border-radius: @r;
|
|
|
|
-webkit-border-radius: @r;
|
|
|
|
-moz-border-radius: @r;
|
|
|
|
-ms-border-radius: @r;
|
|
|
|
border-radius: @r;
|
|
|
|
}
|
2012-05-12 07:29:36 -04:00
|
|
|
.text_overflow (@t: ellipsis) {
|
|
|
|
-moz-text-overflow: @t;
|
|
|
|
-ms-text-verflow: @t;
|
|
|
|
-o-text-overflow: @t;
|
|
|
|
-webkit-text-overflow: @t;
|
|
|
|
text-overflow: @t;
|
|
|
|
}
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
//* pre wrap */
|
|
|
|
.wrap () {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
white-space: pre;
|
2012-05-12 07:29:36 -04:00
|
|
|
word-wrap: none;
|
2012-05-03 14:25:18 -04:00
|
|
|
}
|
|
|
|
//* font size sizing */
|
2012-05-12 07:29:36 -04:00
|
|
|
.default_font () {
|
|
|
|
font-size: 14pt;
|
2012-05-03 14:25:18 -04:00
|
|
|
line-height: 1.1em;
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
2012-05-12 07:29:36 -04:00
|
|
|
.font_size_adjust () {
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
|
-o-text-size-adjust: 100%;
|
|
|
|
font-size-adjust: 100%;
|
|
|
|
}
|
2012-05-03 14:25:18 -04:00
|
|
|
|
|
|
|
//* reset ul, ol */
|
|
|
|
.list_reset () {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
list-style: none;
|
|
|
|
list-style-position: inside;
|
|
|
|
}
|
|
|
|
|
|
|
|
//* box size: width, height */
|
|
|
|
.box (@w: 20px, @h: 20px) {
|
|
|
|
width: @w;
|
|
|
|
height: @h;
|
|
|
|
}
|
|
|
|
|