Skip to content

Instantly share code, notes, and snippets.

@Red4x
Last active August 29, 2015 14:28
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 Red4x/7c959138158d937d3cab to your computer and use it in GitHub Desktop.
Save Red4x/7c959138158d937d3cab to your computer and use it in GitHub Desktop.
Legend Tag html5
<div class='row sl-legend'>
<div class="col-xs-6">
<div class='legend-scale'>
<ul class='legend-labels'>
<li><span style='background:#0d3c55;'></span>HV</li>
<li><span style='background:#117899;'></span>LPP & TPP</li>
<li><span style='background:#1395ba;'></span>QPP</li>
<li><span style='background:#36D7B7;'></span>PPS</li>
<li><span style='background:#03A678;'></span>EG</li>
</ul>
</div>
</div>
<div class="col-xs-6">
<div class='legend-scale'>
<ul class='legend-labels'>
<li><span style='background:#a2b86c;'></span>ES</li>
<li><span style='background:#F4D03F;'></span>Basic</li>
<li><span style='background:#f16c20;'></span>KrisFlyer (EG+ES+Basic)</li>
<li><span style='background:#c02e1d;'></span>SQ Station</li>
</ul>
</div>
</div>
</div>
.sl-legend .legend-scale ul {
margin: 0;
margin-bottom: 5px;
padding: 0;
float: left;
list-style: none;
}
.sl-legend .legend-scale ul li {
font-size: 80%;
list-style: none;
margin-left: 0;
line-height: 15px;
margin-bottom: 2px;
}
.sl-legend ul.legend-labels li span {
display: block;
float: left;
height: 8px;
width: 8px;
margin-right: 5px;
margin-left: 0;
}
.sl-legend .legend-source {
font-size: 70%;
color: #999;
clear: both;
}
.sl-legend a {
color: #777;
}
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment