From 0089206a79874895ed5589871265f2a26df12383 Mon Sep 17 00:00:00 2001 From: LoRyder1 Date: Wed, 27 May 2015 14:25:44 -0400 Subject: [PATCH 1/3] finished css --- top-nav-drill/main.css | 45 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/top-nav-drill/main.css b/top-nav-drill/main.css index 9d37c16..4ba3948 100644 --- a/top-nav-drill/main.css +++ b/top-nav-drill/main.css @@ -1,5 +1,48 @@ + .container { margin: 0 auto; } -/*Put your code here*/ +header { + background-color: black; + color: white; + padding: 20px 20px; +} + +header a { + color: white; +} + +header span a { + font-size: 2em; + font-weight: bold; + text-decoration: none; +} + +nav { + float: right; +} + +nav ul { + font-size: 1em; + list-style: none; + padding-left: 0; +} + +nav li { + float: left; + margin: 0 10px; +} + +section { + max-width: 750px; + margin: 0 auto; +} + +h1 { + border-bottom: 1px solid grey; +} + +footer { + border-top: 3px solid grey; +} From f9fb094235d2f5549f129855909ba0c5549f1a4c Mon Sep 17 00:00:00 2001 From: LoRyder1 Date: Wed, 27 May 2015 15:30:21 -0400 Subject: [PATCH 2/3] practiced some hamla and sass --- top-nav-drill/index.html.haml | 46 ++++++++++++++++++++++++++++++++++ top-nav-drill/main.css.sass | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 top-nav-drill/index.html.haml create mode 100644 top-nav-drill/main.css.sass diff --git a/top-nav-drill/index.html.haml b/top-nav-drill/index.html.haml new file mode 100644 index 0000000..7ba04ea --- /dev/null +++ b/top-nav-drill/index.html.haml @@ -0,0 +1,46 @@ +!!! 5 + +%html{"xml:lang" => "en"} + + %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 + %div{:class => "container" } + %header + %span + %a{:href => "#"} Awecome Compnay + + %nav + %ul + %li + %a{:href => "#"} Home + %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 consectetur 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. \ No newline at end of file diff --git a/top-nav-drill/main.css.sass b/top-nav-drill/main.css.sass new file mode 100644 index 0000000..4a2b852 --- /dev/null +++ b/top-nav-drill/main.css.sass @@ -0,0 +1,47 @@ +$black: black; +$white: white; +$grey: grey; + +.container { + margin: 0 auto; +} + +header { + backgroun-color: $black; + color: white; + padding: 20px 20px; + a{ + color: $white; + } + span a{ + font-size: 2em; + font-weight: bold; + text-decoration: none; + } +} + +nav{ + float: right; + ul { + font-size: 1em; + list-style: none; + padding-left 0; + } + li { + float: left; + margin: 0 10px; + } +} + +section { + max-width: 750px; + margin: 0 auto; +} + +h1 { + border-bottom: 1px solid $grey; +} + +footer { + border-top: 3px solid $grey; +} \ No newline at end of file From b8d3fec5a28fa28d17c92a4837d8b8b8453fe665 Mon Sep 17 00:00:00 2001 From: LoRyder1 Date: Wed, 27 May 2015 15:31:39 -0400 Subject: [PATCH 3/3] added space --- top-nav-drill/index.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/top-nav-drill/index.html.haml b/top-nav-drill/index.html.haml index 7ba04ea..af9a374 100644 --- a/top-nav-drill/index.html.haml +++ b/top-nav-drill/index.html.haml @@ -43,4 +43,5 @@ %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. \ No newline at end of file + %p Copyright © 2013 Awesome Company LLC. + \ No newline at end of file