Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:3708590
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
/*This is a clean gradient menu purely based on CSS3 */
$lightgrey: #A8ACAD; //assigning colors to variables
$darkgrey:#736F6E;
 
div#header
{
background:-webkit-gradient(linear, left top, left bottom, from($lightgrey), to($darkgrey)); //gradient for the navigation menu
background: -moz-linear-gradient(top, $lightgrey, $darkgrey);
border:
{ //nesting properties of a specific namespace
radius: 10px;
left: 1px solid rgba(0, 0, 0, 0.1);
right: 1px solid rgba(255, 255, 255, 0.1);
}
box:
{
shadow: 5px 5px 20px #a5a5a5;
}
width: 95%;
height: 50px;
margin:
{
left: 10px;
right: 20px;
}
ul
{
padding: 0;
margin: 0;
float: left;
}
li
{
float: left;
list-style: none;
a
{
&:link // reference operator in action
{
display: block;
text:
{
decoration: none;
align: center;
shadow: 0px 0px 10px #000;
}
height: 35px;
width: 95px;
padding:
{
top: 15px;
left: 10px;
right: 10px;
}
color: #ffffff;
font:
{
weight: bold;
}
border:
{
left: 1px solid rgba(255, 255, 255, 0.1);
right: 1px solid rgba(0, 0, 0, 0.1);
}
}
&:visited
{
color: #ffffff;
font:
{
weight: bold;
}
border:
{
left: 1px solid rgba(255, 255, 255, 0.1);
right: 1px solid rgba(0, 0, 0, 0.1);
}
text:
{
shadow: 0px 0px 10px #000;
}
}
&:hover
{
color: orange;
text:
{
shadow: 0px 0px 10px #000;
}
}
}
}
}//Sass is simply good, right?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.