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
Binary file not shown.
43 changes: 43 additions & 0 deletions top-nav-drill/index.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
!!! 5

%html{:lang => "en"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget that you can use Ruby 1.9 style symbol keys in Haml like this: %html{lang: "en"}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump 👍

%head
%meta{:charset => "UTF-8"}
%title The Awesome Company
%link{:rel => "stylesheet", :href => "bower_components/normalize-css/normalize.css"}
%link{:rel => "stylesheet", :href => "main.css"}
%body
.container
%header
%span
%a{:href => "#"} Awesome Company
%nav
%ul
%li
%a{:href => "#"} Home
%ul
%li
%a{:href => "#"} Test
%li
%a{:href => "#"} What a joke
%li
%a{:href => "#"} About
%li
%a{:href => "#"} Services
%li
%a{:href => "#"} Contact
%section
%h1 A Page Title
%section
%h2 A Paragraph
%p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum blandit, tellus ornare mollis rhoncus, risus dui tincidunt nisl, nec vulputate sapien neque at tellus. Aenean in ornare nisl, sed porta dui.
%p Nunc sit amet arcu id ligula commodo consequat vel a lorem. Proin auctor, purus in dictum efficitur, mauris purus dictum augue, vitae laoreet ante nunc in sapien. Maecenas yconsectetur egestas euismod.
%section
%h2 A Paragraph
%p Donec faucibus sodales lectus, quis dictum ligula aliquet sit amet. Nam sodales nibh quis quam dictum sollicitudin. Nullam ut est euismod, hendrerit tellus et, euismod turpis.
%p Nunc sit amet arcu id ligula commodo consequat vel a lorem. Proin auctor, purus in dictum efficitur, mauris purus dictum augue, vitae laoreet ante nunc in sapien. Maecenas consectetur egestas euismod.
%section
%h2 A Paragraph
%p Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas non mauris ac erat consequat rhoncus. Mauris nec sapien luctus, rutrum leo sit amet, pretium elit.
%footer
%p Copyright © 2013 Awesome Company LLC.
7 changes: 6 additions & 1 deletion top-nav-drill/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@

<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Home</a>
<ul>
<li><a href='#'>Test</a></li>
<li><a href='#'>What a johe</a></li>
</ul>
</li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
Expand Down
65 changes: 63 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.

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

header{
background-color: black;
display: block;
color: #FFFFFF;
padding: 4px;
a{
@extend header;
}
span a{
text-decoration: none;
font-size: 34px;
font-style: bold;
padding-left: 25px;
padding-right: 25px;
font-weight: 500;
}
}

nav{
position: fixed;
right: 0px;
top: 0px;
padding: 0px 25px;
a{
font-size: 20px;
font-weight: 100;
}
ul{
list-style-type:none;
li{
float:left;
padding: 0px 1px;
margin: 0px 2px;
:hover > ul{
display: block;
position: absolute;
}
}
ul{
display:none;

background: #FFFFFF;
border-radius: 0px;
padding: 0;
position: absolute;
top: 100%;
li{
float: none;
border-top: 1px solid #6b727c;
border-bottom: 1px solid #575f6a;
position: relative;
a{
padding: 0px 10px;
color: #fff;
:hover{
background: #4b545f;
}
}
}
}
}
}
section{
margin: 0 auto;
width: 50%;
section{
width: auto;
}
}
footer{
border-top: solid darkgray;
border-width: 3px;
}
h1{
border-bottom: solid lightgray;
border-width: 2px;
}