Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (24 sloc) 733 Bytes
// China
// http://www.crwflags.com/fotw/flags/cn.html
@mixin flag-chn() {
@include ratio(2 / 3);
$unit: $h20;
$red: #de2910;
$yellow: #FDDA24;
$star-size: 6 * $unit;
$star-offset-top: 5 * $unit;
$star-offset-left: 5 * $unit;
$star-size-small: 2 * $unit;
$star-offset-top-small: 2 * $unit;
$star-offset-left-small: 10 * $unit;
background-color: $red;
&:before {
@include star($yellow, $star-size, $star-offset-left, $star-offset-top);
}
&:after {
@include star($yellow, $star-size-small, $star-offset-left-small, $star-offset-top-small);
text-shadow:(2 * $unit) (2 * $unit) 0px $yellow,
(2 * $unit) (5 * $unit) 0px $yellow,
(0) (7 * $unit) 0px $yellow;
}
};