Line-graph comparison for Brand vs Retail. Desktop & Mobile (responsive break at 460px in width).
Created
August 1, 2015 04:18
-
-
Save jackiewu/548e6026b577f1c7d81e to your computer and use it in GitHub Desktop.
[JF] JF vs Retail
This file contains hidden or 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
<h3><span class="pink">JustFab</span> vs <span class="grey">Retail</span></h3> | |
<section id="justfab" class="steps-section"> | |
<div class="steps-timeline"> | |
<div class="steps-one"> | |
<div class="circle"></div> | |
<h3 class="steps-name">Design</h3> | |
<p class="steps-description">Products</p> | |
</div> | |
<div class="steps-two"> | |
<div class="circle"></div> | |
<h3 class="steps-name">$20</h3> | |
<p class="steps-description">Production</p> | |
</div> | |
<div class="steps-three"> | |
<div class="circle"></div> | |
<h3 class="steps-name">$39.95<br/>JustFab Price</h3> | |
<p class="steps-description">+Free Shipping</p> | |
</div> | |
</div> | |
</section> | |
<section id="retail" class="steps-section"> | |
<div class="steps-timeline"> | |
<div class="steps-one"> | |
<div class="circle"></div> | |
<h3 class="steps-name">Design</h3> | |
<p class="steps-description">Products</p> | |
</div> | |
<div class="steps-two"> | |
<div class="circle"></div> | |
<h3 class="steps-name">$20</h3> | |
<p class="steps-description">Production</p> | |
</div> | |
<div class="steps-two-one"> | |
<div class="circle"></div> | |
<h3 class="steps-name">Middlemen</h3> | |
</div> | |
<div class="steps-two-two"> | |
<div class="circle"></div> | |
<h3 class="steps-name">Department<br/> Store</h3> | |
</div> | |
<div class="steps-three"> | |
<div class="circle"></div> | |
<h3 class="steps-name">$80 - $100</h3> | |
<p class="steps-description">Retail Price</p> | |
</div> | |
</div> | |
</section> |
This file contains hidden or 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
$outline-width: 0; | |
$break-point: 460px; | |
$brand-primary: #e74682; | |
$text: #333; | |
$grey: #ccc; | |
@import url(http://fonts.googleapis.com/css?family=Lato:400,700); | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
body { | |
font-family: lato; | |
} | |
.pink { | |
color: $brand-primary; | |
} | |
.grey { | |
color: $grey; | |
} | |
h3 { | |
@media screen and (min-width: $break-point) { | |
text-align:center; | |
} | |
@media screen and (max-width: $break-point) { | |
margin:20px 50px; | |
} | |
} | |
.steps-section { | |
@media screen and (min-width: $break-point) { | |
max-width: 700px; | |
margin: 50px auto; | |
padding: 0 20px; | |
} | |
@media screen and (max-width: $break-point) { | |
width:140px; | |
float:left; | |
} | |
} | |
.section-header { | |
color: $text; | |
font-weight: 600; | |
font-size: 14px; | |
} | |
.steps-timeline { | |
@media screen and (max-width: $break-point) { | |
border-left: 4px solid $brand-primary; | |
margin-left: 15px; | |
} | |
@media screen and (min-width: $break-point) { | |
border-top: 4px solid $brand-primary; | |
padding-top: 20px; | |
margin-top: 40px; | |
margin-left: 20px; | |
margin-right: 20px; | |
} | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} | |
#retail .steps-timeline { | |
border-color: $grey; | |
} | |
#justfab .steps-one, | |
#justfab .steps-two, | |
#justfab .steps-three { | |
outline: 1px dashed rgba(green, $outline-width); | |
@media screen and (max-width: $break-point) { | |
margin-left: -25px; | |
} | |
@media screen and (min-width: $break-point) { | |
float: left; | |
width: 33%; | |
margin-top: -50px; | |
} | |
} | |
#retail .steps-one, | |
#retail .steps-two, | |
#retail .steps-two-one, | |
#retail .steps-two-two, | |
#retail .steps-three { | |
outline: 1px dashed rgba(green, $outline-width); | |
@media screen and (max-width: $break-point) { | |
margin-left: -25px; | |
} | |
@media screen and (min-width: $break-point) { | |
float: left; | |
width: 20%; | |
margin-top: -50px; | |
} | |
} | |
#justfab .steps-one { | |
@media screen and (max-width: $break-point) { | |
padding-bottom: 15px; | |
} | |
} | |
#justfab .steps-two { | |
@media screen and (max-width: $break-point) { | |
padding-bottom: 140px; | |
} | |
} | |
#justfab .steps-one { | |
@media screen and (min-width: $break-point) { | |
margin-left: -16.65%; | |
margin-right: 16.65%; | |
} | |
} | |
#justfab .steps-two { | |
@media screen and (min-width: $break-point) { | |
margin-left: -24.45%; | |
margin-right: 24.45%; | |
} | |
} | |
#justfab .steps-three { | |
@media screen and (max-width: $break-point) { | |
margin-bottom: -100%; | |
} | |
@media screen and (min-width: $break-point) { | |
margin-left: 16.65%; | |
margin-right: -16.65%; | |
} | |
} | |
#retail .steps-one, | |
#retail .steps-two, | |
#retail .steps-two-one, | |
#retail .steps-two-two { | |
@media screen and (max-width: $break-point) { | |
padding-bottom: 16.8px; | |
} | |
} | |
#retail .steps-two-two { | |
@media screen and (max-width: $break-point) { | |
padding-top: 16.8px; | |
} | |
} | |
#retail .steps-one { | |
@media screen and (min-width: $break-point) { | |
margin-left:-9.65%; | |
} | |
} | |
#retail .steps-two { | |
@media screen and (min-width: $break-point) { | |
margin-left:4.65%; | |
margin-right:4.65%; | |
} | |
} | |
#retail .steps-two-one { | |
@media screen and (min-width: $break-point) { | |
margin-right:4.65%; | |
} | |
} | |
#retail .steps-two-two { | |
} | |
#retail .steps-three { | |
@media screen and (max-width: $break-point) { | |
margin-bottom: -100%; | |
} | |
@media screen and (min-width: $break-point) { | |
margin-left:4.65%; | |
margin-right:-18.65%; | |
} | |
} | |
.circle { | |
display: block; | |
margin: 15px auto 10px; | |
width: 25px; | |
height: 25px; | |
border: 4px solid $brand-primary; | |
border-radius: 50%; | |
background: #fff; | |
@media screen and (max-width: $break-point) { | |
float: left; | |
margin-right: 10px; | |
margin-left: 10px; | |
} | |
} | |
#retail .circle { | |
border-color: $grey; | |
} | |
.steps-name, | |
.steps-description { | |
margin: 0; | |
} | |
.steps-name { | |
@extend .section-header; | |
@media screen and (max-width: $break-point) { | |
display:inline-block; | |
margin-top:10px; | |
} | |
@media screen and (min-width: $break-point) { | |
text-align: center; | |
} | |
} | |
.steps-description { | |
overflow: hidden; | |
color:#999; | |
font-size:13px; | |
@media screen and (min-width: $break-point) { | |
text-align: center; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment