2014-02-01 16:49:36 +01:00
|
|
|
// Misc: mixins
|
|
|
|
//==============
|
2013-12-25 04:09:19 +01:00
|
|
|
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//Changes the color and the hovering properties of the navbar
|
|
|
|
.navbar-variant(@color) {
|
|
|
|
background-color: @color;
|
|
|
|
//Navbar links
|
|
|
|
.nav a {
|
|
|
|
color: #acd0e5;
|
|
|
|
}
|
2013-12-25 04:09:19 +01:00
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
.nav > li > a:hover,
|
|
|
|
.nav > li > a:active,
|
|
|
|
.nav > li > a:focus,
|
|
|
|
.nav .open > a,
|
|
|
|
.nav .open > a:hover,
|
|
|
|
.nav .open > a:focus {
|
|
|
|
background: darken(@color, 10%);
|
|
|
|
color: #f6f6f6;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
|
|
|
|
.navbar-right > .nav {
|
|
|
|
margin-right: 10px;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
//Add color to the sidebar toggle button
|
|
|
|
.sidebar-toggle .icon-bar {
|
|
|
|
background: #acd0e5;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//Logo color variation
|
|
|
|
.logo-variant(@color) {
|
|
|
|
background-color: @color;
|
|
|
|
color: #f9f9f9;
|
|
|
|
> a {
|
|
|
|
color: #f9f9f9;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
&:hover {
|
|
|
|
background: darken(@color, 1%);
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//Box solid color variantion creator
|
|
|
|
.box-solid-variant(@color) {
|
|
|
|
> .box-header {
|
|
|
|
color: #fff;
|
|
|
|
background: @color;
|
|
|
|
background-color: @color;
|
|
|
|
a {
|
|
|
|
color: #444;
|
|
|
|
}
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//Transform function that rotates eements
|
|
|
|
.transform(@degree) {
|
|
|
|
transform:rotate(@degree);
|
|
|
|
-ms-transform:rotate(@degree); /* IE 9 */
|
|
|
|
-webkit-transform:rotate(@degree); /* Safari and Chrome */
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
//For floating elements
|
|
|
|
.clearfix() {
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
display: table;
|
|
|
|
content: " ";
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
&:after {
|
|
|
|
clear: both;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//border radius creator
|
|
|
|
.border-radius(@radius) {
|
|
|
|
-webkit-border-radius: @radius;
|
|
|
|
-moz-border-radius: @radius;
|
|
|
|
border-radius: @radius;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
//Different radius each side
|
|
|
|
.border-radius(@top-left; @top-right, @bottom-left, @bottom-right) {
|
|
|
|
-webkit-border-top-left-radius: @top-left;
|
|
|
|
-webkit-border-top-right-radius: @top-right;
|
|
|
|
-webkit-border-bottom-right-radius: @bottom-right;
|
|
|
|
-webkit-border-bottom-left-radius: @bottom-left;
|
2013-12-25 04:09:19 +01:00
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
-moz-border-radius-topleft: @top-left;
|
|
|
|
-moz-border-radius-topright: @top-right;
|
|
|
|
-moz-border-radius-bottomright: @bottom-right;
|
|
|
|
-moz-border-radius-bottomleft: @bottom-left;
|
2013-12-25 04:09:19 +01:00
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
border-top-left-radius: @top-left;
|
|
|
|
border-top-right-radius: @top-right;
|
|
|
|
border-bottom-right-radius: @bottom-right;
|
|
|
|
border-bottom-left-radius: @bottom-left;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
|
2014-02-01 16:49:36 +01:00
|
|
|
//Bootstrap mixins for progress bars. You can find original copies
|
|
|
|
//with the bootstrap assets (www.getbootstrap.com)
|
|
|
|
.progress-bar-variant(@color) {
|
|
|
|
background-color: @color;
|
|
|
|
.progress-striped & {
|
|
|
|
#gradient > .striped();
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
// Animations
|
|
|
|
.animation(@animation) {
|
|
|
|
-webkit-animation: @animation;
|
|
|
|
animation: @animation;
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
#gradient {
|
|
|
|
.striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
|
|
|
|
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, @color), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, @color), color-stop(.75, @color), color-stop(.75, transparent), to(transparent));
|
|
|
|
background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
|
|
|
background-image: -moz-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
|
|
|
background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
2013-12-25 04:09:19 +01:00
|
|
|
}
|
2014-02-01 16:49:36 +01:00
|
|
|
}
|