Created
December 15, 2015 12:06
-
-
Save anthonydillon/7e4f0f88d0971f9aaf75 to your computer and use it in GitHub Desktop.
indiatimes scss
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
body { | |
background-color: #57B136; | |
font-family: Arial; | |
} | |
.container { | |
width: 600px; | |
box-shadow: 0 0 20px 10px rgba(0, 0, 0, .1); | |
margin: 40px; | |
background-color: white; | |
} | |
.header { | |
height: 60px; | |
background-color: rgba(255, 255, 255, .4); | |
&__menu { | |
float: left; | |
width: 40px; | |
height: 40px; | |
background-image: url(http://dbideal.com/wp-content/uploads/2015/11/burger.gif); | |
background-repeat: no-repeat; | |
background-size: 40px; | |
background-position: center; | |
} | |
&__menu-item { | |
display: none; | |
} | |
&__title { | |
float: left; | |
color: #FD0841; | |
font-size: 1em; | |
letter-spacing: -1px; | |
line-height: 50px; | |
} | |
&__user { | |
float: right; | |
} | |
&__user-name { | |
margin-top: 25px; | |
float: right; | |
} | |
&__user-image { | |
position: relative; | |
right: 20px; | |
top: 20px; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
float: right; | |
margin-left: 30px; | |
} | |
} | |
%recipe__menu { | |
position: relative; | |
top: -30px; | |
float: left; | |
width: 60px; | |
height: 60px; | |
border-radius: 50%; | |
border: 1px solid #888; | |
background-repeat: no-repeat; | |
background-position: center; | |
padding: 0; | |
margin: 0 20px; | |
} | |
.recipe { | |
padding: 20px; | |
&__body { | |
line-height: 2; | |
letter-spacing: 1px; | |
text-align: center; | |
padding: 0 40px; | |
} | |
&__title { | |
font-weight: 700; | |
color: #404040; | |
text-align: center; | |
padding: 0 100px; | |
line-height: 1.5; | |
&:after { | |
content: ''; | |
display: block; | |
width: 150px; | |
height: 3px; | |
background-color: #FD164B; | |
margin: 40px auto; | |
} | |
} | |
&__hero { | |
text-align: center; | |
margin-bottom: 40px; | |
} | |
&__nav { | |
border-bottom: 1px solid #ddd; | |
margin-bottom: 80px; | |
} | |
&__menu--options { | |
@extend %recipe__menu; | |
background-color: #fff; | |
background-image: url(https://yconic.com/templates/core/resources/icons/Dots_Menu_hover.png); | |
.recipe__menu-item { | |
display: none; | |
} | |
} | |
&__menu--forward { | |
@extend %recipe__menu; | |
float: right; | |
background-color: #FD164B; | |
background-image: url(https://cdn3.iconfinder.com/data/icons/faticons/32/arrow-right-01-128.png); | |
background-size: 40px; | |
border-color: #FD164B; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment