Created
May 27, 2015 03:31
-
-
Save aristretto/1dead1c6d307da99235b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div id="logo"></div> |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
@import "compass"; | |
$brand-color: hsl(176.5,60.7%,43.9%); | |
$brand-color-2: hsl(192.5,48.2%,56.9%); | |
$logo-stroke-width: 3rem; | |
html { | |
font-size: 62.5%; | |
} | |
#logo { | |
z-index: 1; | |
top: $logo-stroke-width * 2; | |
left: $logo-stroke-width * 2; | |
-webkit-animation: hue 10s infinite linear; | |
@include box-shadow(0 0 0 $logo-stroke-width $brand-color); | |
@include border-top-right-radius($logo-stroke-width); | |
@include border-bottom-left-radius($logo-stroke-width); | |
&, | |
&:before, | |
&:after { | |
position: absolute; | |
content: ""; | |
display: block; | |
} | |
&, | |
&:after { | |
height: 14rem; | |
width: 14rem; | |
} | |
&:after { | |
z-index: 0; | |
bottom: -9rem; | |
right: -9rem; | |
@include border-top-right-radius($logo-stroke-width); | |
@include border-bottom-left-radius($logo-stroke-width); | |
@include box-shadow( | |
0 0 0 $logo-stroke-width $brand-color, | |
-$logo-stroke-width 0 0 $logo-stroke-width white | |
); | |
} | |
&:before { | |
top: 6rem; | |
left: 17rem; | |
height: $logo-stroke-width; | |
width: $logo-stroke-width; | |
background-color: white; | |
z-index: 1; | |
} | |
} | |
@-webkit-keyframes hue { | |
from { -webkit-filter: hue-rotate(0deg); } | |
to { -webkit-filter: hue-rotate(-360deg); } | |
} | |
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
html { | |
font-size: 62.5%; | |
} | |
#logo { | |
z-index: 1; | |
top: 6rem; | |
left: 6rem; | |
-webkit-animation: hue 10s infinite linear; | |
-moz-box-shadow: 0 0 0 3rem #2cb4ac; | |
-webkit-box-shadow: 0 0 0 3rem #2cb4ac; | |
box-shadow: 0 0 0 3rem #2cb4ac; | |
-moz-border-radius-topright: 3rem; | |
-webkit-border-top-right-radius: 3rem; | |
border-top-right-radius: 3rem; | |
-moz-border-radius-bottomleft: 3rem; | |
-webkit-border-bottom-left-radius: 3rem; | |
border-bottom-left-radius: 3rem; | |
} | |
#logo, #logo:before, #logo:after { | |
position: absolute; | |
content: ""; | |
display: block; | |
} | |
#logo, #logo:after { | |
height: 14rem; | |
width: 14rem; | |
} | |
#logo:after { | |
z-index: 0; | |
bottom: -9rem; | |
right: -9rem; | |
-moz-border-radius-topright: 3rem; | |
-webkit-border-top-right-radius: 3rem; | |
border-top-right-radius: 3rem; | |
-moz-border-radius-bottomleft: 3rem; | |
-webkit-border-bottom-left-radius: 3rem; | |
border-bottom-left-radius: 3rem; | |
-moz-box-shadow: 0 0 0 3rem #2cb4ac, -3rem 0 0 3rem white; | |
-webkit-box-shadow: 0 0 0 3rem #2cb4ac, -3rem 0 0 3rem white; | |
box-shadow: 0 0 0 3rem #2cb4ac, -3rem 0 0 3rem white; | |
} | |
#logo:before { | |
top: 6rem; | |
left: 17rem; | |
height: 3rem; | |
width: 3rem; | |
background-color: white; | |
z-index: 1; | |
} | |
@-webkit-keyframes hue { | |
from { | |
-webkit-filter: hue-rotate(0deg); | |
} | |
to { | |
-webkit-filter: hue-rotate(-360deg); | |
} | |
} |
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
<div id="logo"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment