Created
July 5, 2020 00:01
-
-
Save crcn/81b11fcbc62872263d7de46455e573aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<import src="../atoms/colors.pc"> | |
<import as="typography" src="../atoms/typography.pc"> | |
<import src="../atoms/spacing.pc"> | |
<style> | |
.background-2 { | |
background-color: var(--barney); | |
&.absolute { | |
position: absolute; | |
left: 0px; | |
top: 0px; | |
width: 149px; | |
height: 175px; | |
} | |
} | |
.text { | |
color: var(--ghost); | |
&.absolute { | |
position: absolute; | |
left: 57px; | |
top: 74px; | |
width: 21px; | |
height: 14px; | |
} | |
} | |
.background { | |
background-color: var(--ninja-turtles); | |
&.absolute { | |
position: absolute; | |
left: 28px; | |
top: 25px; | |
width: 78px; | |
height: 37px; | |
} | |
} | |
</style> | |
<!-- Components --> | |
<div export component as="Background2" className="background-2 {className?}" className:absolute> | |
{children} | |
</div> | |
<span export component as="Text" className="text >>>typography.default-text {className?}" className:absolute> | |
{children} | |
</span> | |
<div export component as="Background" className="background {className?}" className:absolute> | |
{children} | |
</div> | |
<!-- Preview --> | |
<div className="preview"> | |
<Background2 absolute> | |
</Background2> | |
<Text absolute> | |
text | |
</Text> | |
<Background absolute> | |
</Background> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment