Skip to content

Instantly share code, notes, and snippets.

@cattermo
Created April 30, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cattermo/11429068 to your computer and use it in GitHub Desktop.
Save cattermo/11429068 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<ul class="mandate-overview">
<li class="mandate-overview__circle">M</li>
<li class="mandate-overview__circle" >C</li>
<li class="mandate-overview__circle">FP</li>
<li class="mandate-overview__circle">KD</li>
<li class="mandate-overview__circle">S</li>
<li class="mandate-overview__circle">V</li>
<li class="mandate-overview__circle">MP</li>
<li class="mandate-overview__circle">JL</li>
<li class="mandate-overview__circle">SD</li>
<li class="mandate-overview__circle">PP</li>
</ul>
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
.mandate-overview {
list-style: none;
max-width: 200px;
display: table;
}
$max-size: 300px;
$mandate-size: $max-size/20;
@mixin mandate($nr-of-mandate) {
$size_0: $mandate-size*$nr-of-mandate;
width: $size_0;
height: $size_0;
}
.mandate-overview__circle {
border-radius: 100%;
display: table-cell;
vertical-align: middle;
background-color: red;
padding: 5px;
margin: 5px;
float: left;
box-sizing: border-box;
padding: 10%;
&:nth-child(1) {
@include mandate(4);
}
&:nth-child(2) {
@include mandate(1);
}
&:nth-child(3) {
@include mandate(3);
}
&:nth-child(4) {
@include mandate(1);
}
&:nth-child(5) {
@include mandate(5);
}
&:nth-child(6) {
@include mandate(1);
}
&:nth-child(7) {
@include mandate(2);
display: none;
}
&:nth-child(8) {
@include mandate(0);
display: none;
}
&:nth-child(9) {
@include mandate(0);
display: none;
}
&:nth-child(10) {
@include mandate(1);
}
}
.mandate-overview {
list-style: none;
max-width: 200px;
display: table;
}
.mandate-overview__circle {
border-radius: 100%;
display: table-cell;
vertical-align: middle;
background-color: red;
padding: 5px;
margin: 5px;
float: left;
box-sizing: border-box;
}
.mandate-overview__circle:nth-child(1) {
width: 60px;
height: 60px;
}
.mandate-overview__circle:nth-child(2) {
width: 15px;
height: 15px;
}
.mandate-overview__circle:nth-child(3) {
width: 45px;
height: 45px;
}
.mandate-overview__circle:nth-child(4) {
width: 15px;
height: 15px;
}
.mandate-overview__circle:nth-child(5) {
width: 75px;
height: 75px;
}
.mandate-overview__circle:nth-child(6) {
width: 15px;
height: 15px;
}
.mandate-overview__circle:nth-child(7) {
width: 30px;
height: 30px;
display: none;
}
.mandate-overview__circle:nth-child(8) {
width: 0px;
height: 0px;
display: none;
}
.mandate-overview__circle:nth-child(9) {
width: 0px;
height: 0px;
display: none;
}
.mandate-overview__circle:nth-child(10) {
width: 15px;
height: 15px;
}
<ul class="mandate-overview">
<li class="mandate-overview__circle">M</li>
<li class="mandate-overview__circle" >C</li>
<li class="mandate-overview__circle">FP</li>
<li class="mandate-overview__circle">KD</li>
<li class="mandate-overview__circle">S</li>
<li class="mandate-overview__circle">V</li>
<li class="mandate-overview__circle">MP</li>
<li class="mandate-overview__circle">JL</li>
<li class="mandate-overview__circle">SD</li>
<li class="mandate-overview__circle">PP</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment