<div>
par drapeau.width: 100px;
background: white;
border-left: 100px solid blue;
border-right: 100px solid red;
background-image:
linear-gradient(90deg, blue, purple);
)
background-image:
linear-gradient(90deg,
blue 0%, purple 50%,
orange 50%, yellow 100%);
)
background-image:
linear-gradient(90deg,
blue 0%, blue 50%,
orange 50%, orange 100%);
)
background-image:
linear-gradient(180deg,
red 0%, red 25%,
blue 25%, blue 50%,
yellow 50%, yellow 75%,
green 75%, green 100%
)
// Bénin
background-image:
linear-gradient(90deg, green 0px, green 88px, transparent 88px),
linear-gradient(180deg, yellow 0px, yellow 50%, red 50%, red 100%);
background-color: white;
background-image:
radial-gradient(
circle at 110px 74px,
red 44px,
transparent 44px
)
&:before {
// BLACK STAR (U+2605)
content: "★";
color: yellow;
position: absolute;
top: 30px;
left: 66px;
font-size: 88px;
line-height: 88px;
}
@font-face {
font-family: "Symbols";
src: url("../fonts/Symbols.woff");
[...]
}
U+E000 – U+F8FF
text-shadow: 0.1rem 0.1rem 0.5rem black;
text-shadow:
5rem -3rem 0.2rem red,
-8rem -2rem 0.8rem white,
9rem 2rem 0.8rem yellow
text-shadow:
5rem -3rem 0px white,
-8rem -2rem 0px white,
9rem 2rem 0px white
&:before {
content: "★";
color: blue;
top: 48px;
left: 103px;
text-shadow:
36px 9px 0px blue,
36px -9px 0px blue,
-36px 9px 0px blue,
-36px -9px 0px blue;
}
background-image:
radial-gradient(circle at 60% 50%,
blue 2rem, transparent 2rem),
radial-gradient(circle at 40% 50%,
red 2rem, transparent 2rem);
background-color: green;
background-image:
radial-gradient(
circle at 110px 41px,
green 45px,
transparent 45x
),
radial-gradient(
circle at 110px 55px,
yellow 47px,
transparent 47px
);
clip-path: polygon(
50% 0%,
100% 38%,
82% 100%,
18% 100%,
0% 38%
);
&:before {
display: block;
width: 110px;
height: 147px;
background-color: blue;
clip-path: polygon(0 0,
100% 50%,
0 100%
);
}
# Shell
scss -r ./geometry_helper.rb input.scss
# Ruby
module GeometryHelper
def cos(number)
Sass::Script::Number.new(Math.cos(
number.value * Math::PI / 180
))
end
end
// SCSS
$red-stripe-size: cos($alpha) * $height;
box-shadow:
-10rem 1rem 0px white,
11rem 2rem 0px purple,
6rem -1rem 0px yellow;
box-shadow:
8rem 4rem 0px white,
11rem 4rem 0px purple,
11rem 1rem 0px yellow;
display: block;
width: 1px;
height: 1px;
box-shadow: 106px 2px 0px #864320,
107px 2px 0px #8F4620,
108px 2px 0px #8F4620,
109px 2px 0px #8F4620,
110px 2px 0px #8F4620,
111px 2px 0px #8F4620,
112px 2px 0px #8F4620,
104px 3px 0px #8D4520,
105px 3px 0px #8F4620,
[...] x 20k