Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions top-nav-drill/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.*.swp
.sass-cache
*.css.map
38 changes: 36 additions & 2 deletions top-nav-drill/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions top-nav-drill/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.container {
margin: 0 auto;
}

/*Put your code here*/
$header_color: #fff;
$header_bg: #000;

$text_width: 50%;
$text_margin: (100% - $text_width)/2;
$separator: solid black 1px;

header {
background-color: $header_bg;
font-family: sans-serif;
padding: 0.5em 0;
a {
color: $header_color;
}
span {
padding: 0.5em 2em;
font: {
size: 180%;
weight: bold;
}
a {
text-decoration: none;
&:visited {
color: $header_color;
}
}
}

nav {
float: right;
font-size: 80%;
ul {
padding-right: 1em;
}
li {
display: inline;
list-style-type: none;
padding-right: 1em;
}
}
}

.container > section {
width: $text_width;
margin-left: $text_margin;
margin-right: $text_margin;

h1 {
border-bottom: $separator;
}
}
footer {
border-top: $separator;
}