Created
December 13, 2014 16:39
-
-
Save mittnavnermike/b52b0154bad9aecf779c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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 class="box"></div> | |
<div class="box"></div> | |
<section id="logo"> | |
<div class="dot top"></div> | |
<div class="text">Eastern<br>Europe Group</div> | |
<div class="dot middle"></div> | |
<div class="dot bottom"></div> | |
</section> |
This file contains hidden or 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.7) | |
// Compass (v1.0.1) | |
// ---- | |
$basel: 24; | |
$baseline: 24px; | |
$logo-color: MidnightBlue; | |
$logo-color-animation: color-top 4s cubic-bezier(0.77,0,.175,1) infinite; | |
@function base($px) { | |
$base: $px/$basel; | |
@return $base; | |
} | |
/*.box { | |
foo: $baseline*base(3); | |
height: $baseline*base(3); | |
width: 100px; | |
background-color: green; | |
padding-left: $baseline; | |
}*/ | |
#logo { | |
width: 250px; | |
position: relative; | |
height: $baseline*5; | |
-webkit-font-smoothing: antialiased; | |
.text { | |
font-family: helvetica; | |
font-size: 20px; | |
font-weight: bold; | |
text-align: right; | |
padding-top: $baseline*1.5; | |
padding-right: $baseline*3.5; | |
color: blue; | |
font-weight: 600; | |
&:before { | |
/*display: inline-block;*/ | |
content: " "; | |
height: $baseline/4; | |
width: 53px; | |
background-color: $logo-color; | |
margin-right: 5px; | |
} | |
} | |
.dot { | |
position: absolute; | |
height: $baseline/2; | |
width: $baseline/2; | |
border-radius: $baseline/4; | |
background-color: $logo-color; | |
&.top { | |
top: 0; | |
left: 60%; | |
-webkit-animation: $logo-color-animation; | |
-webkit-animation-delay: -1; | |
} | |
&.middle { | |
top: 50%; | |
margin-top: -$baseline/4; | |
right: 0; | |
-webkit-animation: $logo-color-animation; | |
-webkit-animation-delay: -2; | |
} | |
&.bottom { | |
bottom: 0; | |
left: 60%; | |
-webkit-animation: $logo-color-animation; | |
-webkit-animation-delay: -3; | |
} | |
} | |
} | |
@-webkit-keyframes color-top { | |
0% { | |
background-color: red; | |
} | |
33% { | |
background-color: blue; | |
} | |
66% { | |
background-color: green; | |
} | |
100% { | |
background-color: red; | |
} | |
} | |
This file contains hidden or 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
/*.box { | |
foo: $baseline*base(3); | |
height: $baseline*base(3); | |
width: 100px; | |
background-color: green; | |
padding-left: $baseline; | |
}*/ | |
#logo { | |
width: 250px; | |
position: relative; | |
height: 120px; | |
-webkit-font-smoothing: antialiased; | |
} | |
#logo .text { | |
font-family: helvetica; | |
font-size: 20px; | |
font-weight: bold; | |
text-align: right; | |
padding-top: 36px; | |
padding-right: 84px; | |
color: blue; | |
font-weight: 600; | |
} | |
#logo .text:before { | |
/*display: inline-block;*/ | |
content: " "; | |
height: 6px; | |
width: 53px; | |
background-color: MidnightBlue; | |
margin-right: 5px; | |
} | |
#logo .dot { | |
position: absolute; | |
height: 12px; | |
width: 12px; | |
border-radius: 6px; | |
background-color: MidnightBlue; | |
} | |
#logo .dot.top { | |
top: 0; | |
left: 60%; | |
-webkit-animation: color-top 4s cubic-bezier(0.77, 0, 0.175, 1) infinite; | |
-webkit-animation-delay: -1; | |
} | |
#logo .dot.middle { | |
top: 50%; | |
margin-top: -6px; | |
right: 0; | |
-webkit-animation: color-top 4s cubic-bezier(0.77, 0, 0.175, 1) infinite; | |
-webkit-animation-delay: -2; | |
} | |
#logo .dot.bottom { | |
bottom: 0; | |
left: 60%; | |
-webkit-animation: color-top 4s cubic-bezier(0.77, 0, 0.175, 1) infinite; | |
-webkit-animation-delay: -3; | |
} | |
@-webkit-keyframes color-top { | |
0% { | |
background-color: red; | |
} | |
33% { | |
background-color: blue; | |
} | |
66% { | |
background-color: green; | |
} | |
100% { | |
background-color: red; | |
} | |
} |
This file contains hidden or 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 class="box"></div> | |
<div class="box"></div> | |
<section id="logo"> | |
<div class="dot top"></div> | |
<div class="text">Eastern<br>Europe Group</div> | |
<div class="dot middle"></div> | |
<div class="dot bottom"></div> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment