Skip to content

Instantly share code, notes, and snippets.

@mittnavnermike
Created January 14, 2015 13:32
Show Gist options
  • Save mittnavnermike/fbe2ad4eea5938e80092 to your computer and use it in GitHub Desktop.
Save mittnavnermike/fbe2ad4eea5938e80092 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<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>
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$basel: 24;
$baseline: 24px;
$logo-color: MidnightBlue;
$logo-color-animation: color-top 12s 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;
margin: 0 auto;
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: black;
font-weight: bold;
&:before {
display: inline-block;
content: " ";
/*height: $baseline/4;*/
width: 53px;
background-color: $logo-color;
margin-right: 5px;
}
}
.dot {
position: absolute;
height: $baseline/1.5;
width: $baseline/1.5;
border-radius: $baseline/2;
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: $baseline/2;
-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: yellow;
}
66% {
background-color: green;
}
100% {
background-color: red;
}
}
/*.box {
foo: $baseline*base(3);
height: $baseline*base(3);
width: 100px;
background-color: green;
padding-left: $baseline;
}*/
#logo {
width: 250px;
position: relative;
margin: 0 auto;
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: black;
font-weight: bold;
}
#logo .text:before {
display: inline-block;
content: " ";
/*height: $baseline/4;*/
width: 53px;
background-color: MidnightBlue;
margin-right: 5px;
}
#logo .dot {
position: absolute;
height: 16px;
width: 16px;
border-radius: 12px;
background-color: MidnightBlue;
}
#logo .dot.top {
top: 0;
left: 60%;
-webkit-animation: color-top 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
-webkit-animation-delay: -1;
}
#logo .dot.middle {
top: 50%;
margin-top: -6px;
right: 12px;
-webkit-animation: color-top 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
-webkit-animation-delay: -2;
}
#logo .dot.bottom {
bottom: 0;
left: 60%;
-webkit-animation: color-top 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
-webkit-animation-delay: -3;
}
@-webkit-keyframes color-top {
0% {
background-color: red;
}
33% {
background-color: yellow;
}
66% {
background-color: green;
}
100% {
background-color: red;
}
}
<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