gh-pages
per module
._badges() {
@badge-background: rebeccapurple;
.badge {
background-color: @badge-background;
}
}
@import (reference) "file-above.less";
.badge-label {
color: @badge-background;
}
.badge-variation {
color: rebeccapurple;
}
@brand: WBC;
._badges( @brand ) {
/*
* SETTINGS
*/
.getBrand() when (@brand = BOM) {
@background: #1f252c;
}
.getBrand() when (@brand = STG) {
@background: #78be20;
}
.getBrand() when (@brand = WBC) {
@background: #621a4b;
}
.getBrand();
.badge {
background-color: @background;
}
}
@brand: WBC;
._badges( @brand ) {
/*
* SETTINGS
*/
.getBrand() when (@brand = BOM) {
@background: #1f252c;
}
.getBrand() when (@brand = STG) {
@background: #78be20;
}
.getBrand() when (@brand = WBC) {
@background: #621a4b;
}
.getBrand();
.badge {
background-color: @background;
}
}
@brand: STG;
$name: "@gov.au/footer";
$version: "0.1.6";
$dependencies: (
("@gov.au/core", "0.1.0"),
("@gov.au/lists", "0.1.1"),
);
@include versioning-add( $name, $version, $dependencies );
/**
* Return a space value based on 4 and the unit em
*
* @param {number} $number - The space as a multiplier of 4
* @return {number} - The space in em's
*/
@function uikit-space( $number ) {
@if type-of( $number ) != 'number' {
@error "Captain I'm giving it all she's got but: the uikit-space mixin only takes a number!";
}
@if type-of( $number ) == 'number' and not unitless( $number ) {
$number: $number / ($number * 0 + 1);
}
$space: $number * 4;
@return #{ $space }em;
}