Skip to content

Instantly share code, notes, and snippets.

@bubbleheadinc
Created April 6, 2014 12:42
Show Gist options
  • Save bubbleheadinc/10005495 to your computer and use it in GitHub Desktop.
Save bubbleheadinc/10005495 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="circle">
<div class="circle__not-likely">
<div class="circle__sw-likely">
<div class="circle__v-likely">
$
</div>
</div>
</div>
</div>
<div>
other goodies
</div>
// ----
// Sass (v3.2.18)
// Compass (v0.12.4)
// ----
@import "compass";
@import "compass/reset";
$color-1: blue;
$color-2: tint($color-1, 20);
%circle{
@include border-radius(50%);
background: blue;
width: 50px;
height: 50px;
padding: 5%;
}
.circle{
margin: 0 auto;
background: grey;
position: relative;
height: 300px;
width: 100%;
overflow:Hidden;
}
.circle__v-likely{
@extend %circle;
position: absolute;
left: 50%;
bottom: -40%;
color: $color-1;
border: 50px solid lighten($color-2, 30%);
&:before{
content: "";
position: absolute;
height: 50px;
width: 50px;
border: 3px solid black;
@include border-radius(50%);
background: red;
}
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}
html {
line-height: 1;
}
ol, ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
q, blockquote {
quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}
a img {
border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
display: block;
}
.circle__v-likely {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
background: blue;
width: 50px;
height: 50px;
padding: 5%;
}
.circle {
margin: 0 auto;
background: grey;
position: relative;
height: 300px;
width: 100%;
overflow: Hidden;
}
.circle__v-likely {
position: absolute;
left: 50%;
bottom: -40%;
color: blue;
border: 50px solid #ccccff;
}
.circle__v-likely:before {
content: "";
position: absolute;
height: 50px;
width: 50px;
border: 3px solid black;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
background: red;
}
<div class="circle">
<div class="circle__not-likely">
<div class="circle__sw-likely">
<div class="circle__v-likely">
$
</div>
</div>
</div>
</div>
<div>
other goodies
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment