From 72a7a55312ea54daf2e643c0bace0711dc9502bb Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 21 Nov 2013 21:46:00 +0000 Subject: [PATCH] #6 HTML and CSS for Project Page sorted footer and drop down menus Signed-off-by: Dave --- www/app/project.html | 52 ++++++++++++++++++----------- www/src/scss/modules/_app.scss | 23 +++++++++++++ www/src/scss/modules/_defaults.scss | 3 +- www/src/scss/modules/_reset.scss | 11 +++--- www/src/scss/partials/_footer.scss | 38 +++++++++++++++++++-- www/src/scss/partials/_header.scss | 5 +++ www/src/scss/partials/_main.scss | 3 ++ www/src/scss/partials/_nav.scss | 2 +- 8 files changed, 106 insertions(+), 31 deletions(-) diff --git a/www/app/project.html b/www/app/project.html index 5a21a83..6f8aac9 100644 --- a/www/app/project.html +++ b/www/app/project.html @@ -4,7 +4,7 @@ Dev Elephant - + @@ -28,7 +28,7 @@

Dev Elephant

  • - +
    @@ -49,7 +49,7 @@

    Dev Elephant

    To do -
    @@ -113,8 +126,7 @@

    Dev Elephant

    Add Item
  • - -
  • Save
  • +
  • Save
  • diff --git a/www/src/scss/modules/_app.scss b/www/src/scss/modules/_app.scss index e69de29..6de4985 100644 --- a/www/src/scss/modules/_app.scss +++ b/www/src/scss/modules/_app.scss @@ -0,0 +1,23 @@ +.sub { + position: absolute; + top: 5px; + right: 5px; +} +.sub a { + color: #CCC; +} +.sub span { + text-indent: -999em; + display: block; +} +.sub ul { + position: absolute; + left: -9999em; + background: #333; + padding: 5px; + z-index: 1; + width: 130px; +} +.sub:hover ul { + left: -105px; +} \ No newline at end of file diff --git a/www/src/scss/modules/_defaults.scss b/www/src/scss/modules/_defaults.scss index 61f7709..b257175 100644 --- a/www/src/scss/modules/_defaults.scss +++ b/www/src/scss/modules/_defaults.scss @@ -5,7 +5,7 @@ padding: 0 8px; } h1 { - margin-left: 40px; + margin-left: 50px; color: #FFF; font-size: 25px; line-height: 40px; @@ -16,6 +16,7 @@ h2, .h2 { } a { color: #FF6B6B; + text-decoration: none; } p { margin: 20px 0; diff --git a/www/src/scss/modules/_reset.scss b/www/src/scss/modules/_reset.scss index bd80432..d18f02e 100644 --- a/www/src/scss/modules/_reset.scss +++ b/www/src/scss/modules/_reset.scss @@ -35,12 +35,11 @@ html, body { height: 100%; } body { - font-family: $font-family; - font-size: $default-font-size-px; - font-size: $default-font-size-rem; - line-height: $default-line-height; - background: #FFF; - color: $default-text-color; + font-family: arial; + font-size: 20px; + font-size: 2rem; + background: #EADDC4; + color: #333; } ol, ul { list-style: none; diff --git a/www/src/scss/partials/_footer.scss b/www/src/scss/partials/_footer.scss index 30c1ccf..e3b3450 100644 --- a/www/src/scss/partials/_footer.scss +++ b/www/src/scss/partials/_footer.scss @@ -1,11 +1,43 @@ footer { text-align: center; - margin-top: 50px; + position: relative; +} +footer legend { + position: absolute; + left: -999em; } footer p { - font-size: 14px; + font-size: 11px; + font-size: 1.1rem; + color: #AAA; + margin: 4px auto; } footer a { - color: #222; + color: #FFF; text-decoration: none; +} +.footer-wrapper { + position: fixed; + bottom: 0; + left: 0; + width: 100%; + background: #333; +} + +.add-item { + position: absolute; + left: -999em; +} +.project-options > li { + display: inline-block; + width: 50%; + padding: 5px; + border-left: 1px solid #555; +} +.project-options > li a{ + display: block; +} +.project-options > li:first-child { + border-left:none; + border-right: 1px solid #222; } \ No newline at end of file diff --git a/www/src/scss/partials/_header.scss b/www/src/scss/partials/_header.scss index 264565c..922ae2e 100644 --- a/www/src/scss/partials/_header.scss +++ b/www/src/scss/partials/_header.scss @@ -1,6 +1,11 @@ .head-wrap { height: 40px; background: #FF6B6B; + position: fixed; + top: 0; + left: 0; + width: 100%; + z-index: 1; } header { position: relative; diff --git a/www/src/scss/partials/_main.scss b/www/src/scss/partials/_main.scss index e69de29..1b3d481 100644 --- a/www/src/scss/partials/_main.scss +++ b/www/src/scss/partials/_main.scss @@ -0,0 +1,3 @@ +.content-wrapper { + margin-top: 50px; +} \ No newline at end of file diff --git a/www/src/scss/partials/_nav.scss b/www/src/scss/partials/_nav.scss index 085a7cd..d5696e2 100644 --- a/www/src/scss/partials/_nav.scss +++ b/www/src/scss/partials/_nav.scss @@ -13,7 +13,7 @@ nav { position: absolute; left: -9999em; top: 40px; - background: #222; + background: #333; width: 150px; padding: 8px; }