Add landing badge mixin

This commit is contained in:
ines 2017-04-08 10:09:33 +02:00
parent 4da11350f6
commit aa680e0312
3 changed files with 14 additions and 1 deletions

View File

@ -55,7 +55,7 @@
}
},
"V_CSS": "1.3",
"V_CSS": "1.4",
"V_JS": "1.2",
"DEFAULT_SYNTAX": "python",
"ANALYTICS": "UA-58931649-1",

View File

@ -134,3 +134,8 @@ mixin landing-header()
.c-landing__wrapper
.c-landing__content
block
mixin landing-badge(url, graphic, alt, size)
+a(url)(aria-label=alt title=alt).c-landing__badge
+svg("graphics", graphic, size || 225)

View File

@ -18,3 +18,11 @@
.c-landing__title
color: $color-back
text-align: center
.c-landing__badge
transform: rotate(7deg)
display: block
text-align: center
@include breakpoint(min, md)
@include position(absolute, top, right, 16rem, 6rem)