Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (31 sloc) 925 Bytes
// Cuba
// http://www.crwflags.com/fotw/flags/cu.html
@mixin flag-cub() {
@include ratio(1 / 2);
$unit: $h30;
$blue: #00205b;
$white: #FFF;
$red: #c8102e;
$stripe-height: percentage(1/5);
$triangle-hypotenuse: 30 * $unit;
$triangle-side: 15 * $unit;
$triangle-width: sqrt($triangle-hypotenuse * $triangle-hypotenuse - $triangle-side * $triangle-side) * 1px;
$star-symbol: $UTF8_BLACK_STAR;
$star-color: $white;
$star-size: 10 * $unit;
$star-left: $triangle-width / 3;
$star-top: $h2;
@include lines(
$blue, $stripe-height,
$white, $stripe-height,
$blue, $stripe-height,
$white, $stripe-height,
$blue, $stripe-height
);
&:before {
@include triangle($red, $triangle-width);
}
&:after {
@include symbol($star-symbol, $star-color, $star-size, $star-left, $star-top);
}
};