Created
September 21, 2014 16:55
-
-
Save amirnaeem/04acfc04d399567e313c to your computer and use it in GitHub Desktop.
A Pen by Cameron.
This file contains 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
%section | |
%ul | |
%li | |
-5.times do | |
.signal | |
%li | |
AT&T | |
%li | |
<i class="fa fa-wifi"></i> | |
%li | |
.bar | |
%li | |
<i class="fa fa-location-arrow"></i> | |
%li | |
48% | |
%li | |
.battery | |
.charge |
This file contains 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
$primary: #f15623; | |
$accent: lighten($primary, 15%); | |
@mixin bars { | |
float: left; | |
width: 10px; | |
height: 10px; | |
margin: 2px 0; | |
border-radius: 100%; | |
@for $i from 1 through 3 { | |
&:nth-child(#{$i}) { | |
background: $accent; | |
} | |
} | |
@for $i from 4 through 5 { | |
&:nth-child(#{$i}) { | |
border: 2px solid $accent; | |
} | |
} | |
} | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
background: $primary; | |
} | |
section { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
ul { | |
display: flex; | |
padding: 4px; | |
li { | |
font-family: sans-serif; | |
color: $accent; | |
} | |
} | |
} | |
.signal { | |
@include bars; | |
} | |
.bar { | |
width: 35px; | |
height: 5px; | |
margin: 5px 80px; | |
background: $accent; | |
border-radius: 8px; | |
} | |
.battery { | |
width: 30px; | |
height: 14px; | |
margin: 1px 3px; | |
border: 1px solid $accent; | |
&:after { | |
content: ''; | |
position: absolute; | |
width: 4px; | |
height: 7px; | |
top: 8px; | |
right: 4px; | |
background: $accent; | |
} | |
.charge { | |
width: 48%; | |
height: 10px; | |
margin: 1px; | |
background: $accent; | |
} | |
} | |
.fa { | |
margin: 0 4px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment