Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (27 sloc) 821 Bytes
// Jordan
// http://www.crwflags.com/fotw/flags/jo.html
// http://www.vexilla-mundi.com/jordan_flag.html
// http://www.crwflags.com/fotw/flags/jo'.html
@mixin flag-jor() {
@include ratio(1 / 2);
$unit: $h32;
$black: #000;
$white: #FFF;
$green: #007a33;
$red: #c8102e;
$triangle-width: (sqrt($height * $height + $width * $width) / 2 ) * 1px;
$star-symbol: $UTF8_HEAVY_EIGHT_POINTED_RECTILINEAR_BLACK_STAR;
$star-size: 6 * $unit;
$star-top: $h2;
// Alpha is the red triangle angle, top left corner
$alpha: atan($width / $height) * 1deg;
$beta: $alpha / 2;
$star-left: tan($beta) * $h2;
@include three-lines($black, $white, $green);
&:before {
@include triangle($red, $triangle-width);
}
&:after {
@include symbol($star-symbol, $white, $star-size, $star-left, $star-top);
}
};