From 9487cc42c5b49f2d87eb217a6061ed77248f6216 Mon Sep 17 00:00:00 2001 From: Ian Adam Naval Date: Wed, 8 Jan 2014 21:42:03 -0800 Subject: [PATCH] Simplified code further. --- src/static/css/about.css | 33 ---------------- src/static/css/error.css | 2 +- src/static/css/portfolio.css | 52 ++++++++----------------- src/static/css/style.css | 73 +++--------------------------------- src/templates/base.html | 52 ++++++++++++------------- src/templates/index.html | 22 +++++------ src/templates/labs.html | 3 +- 7 files changed, 57 insertions(+), 180 deletions(-) delete mode 100644 src/static/css/about.css diff --git a/src/static/css/about.css b/src/static/css/about.css deleted file mode 100644 index ec5b479..0000000 --- a/src/static/css/about.css +++ /dev/null @@ -1,33 +0,0 @@ -#main { - font-family: "Ubuntu", sans-serif; -} - -img#me { - position: relative; - width: 240px; - float: left; -} - -/*img#me.fixed { - position: fixed; - top: 48px; -}*/ - -#skills, #about-me, #hobbies { - margin: 0; - padding: 0; - width: 600px; - float: right; -} - -#skills ul { - margin: 0; - padding: 0 0 2em 2em; - font-size: 1em; -} - -#skills p, #about-me p, #hobbies p { - margin: 0 0 1em; - text-indent: 2.5em; - font-size: 1em; -} diff --git a/src/static/css/error.css b/src/static/css/error.css index e1380ba..ef985a5 100644 --- a/src/static/css/error.css +++ b/src/static/css/error.css @@ -2,7 +2,7 @@ text-align: center; } -img#error-cat { +#error-cat { margin: 1em; width: 240px; } \ No newline at end of file diff --git a/src/static/css/portfolio.css b/src/static/css/portfolio.css index c981581..a1144f8 100644 --- a/src/static/css/portfolio.css +++ b/src/static/css/portfolio.css @@ -1,50 +1,30 @@ -.item { - display: block; - margin: 1em 0 3em; - clear: both; -} - -.item img { - margin: 0 16px 16px 0; - box-shadow: 0 0 16px 4px #000; - float: left; -} - -.item a { - border: none; -} - -.item h3 { - display: inline; -} - -.item p { - padding: 8px; -} - .section { margin: 0; padding: 2em 0 0; clear: both; } -#android .item img { +#me { + position: relative; width: 240px; + float: left; } -#websites .item img { - width: 320px; +.about-section { + margin: 0; + padding: 0; + width: 600px; + float: right; } -#sysadmin .item img { - width: 320px; +.about-section ul { + margin: 0; + padding: 0 0 2em 2em; + font-size: 1em; } -@media (max-width: 650px) { - #android img, #websites img, #sysadmin img { - display: block; - float: none; - clear: both; - margin: 1em auto; - } +.about-section p { + margin: 0 0 1em; + text-indent: 2.5em; + font-size: 1em; } diff --git a/src/static/css/style.css b/src/static/css/style.css index 15d50a6..a47228b 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -35,7 +35,7 @@ a:visited { font-family: "Ubuntu Mono", monospace; } -#header img#logo { +#logo { margin: 0; padding: 0; float: left; @@ -49,18 +49,18 @@ a:visited { font-size: 2.5em; } -#header h2#tagline { +#tagline { margin: 0; font-size: .75em; font-weight: normal; } -#header #name { +#name { display: inline-block; font-family: "Ubuntu", sans-serif; } -#header #name a { +#name a { color: #fff; } @@ -74,23 +74,6 @@ a:visited { background: #000; } -#nav.top { - position: relative; - top: auto; - left: auto; - padding: 0; - font-size: .85em; -} - -#nav.scrolled { - position: fixed; - top: 0; - left: 0; - padding: 4px; - font-size: .7em; - z-index: 1; -} - #nav ul { clear: both; display: inline-block; @@ -101,16 +84,9 @@ a:visited { #nav li { display: inline-block; list-style: none; -} - -#nav.top li { padding: 0 1em 0; } -#nav.scrolled li { - padding: 0 .65em 0; -} - #nav li.selected a { color: #099; } @@ -119,30 +95,6 @@ a:visited { text-decoration: none; } -#nav.top #top-link { - display: none; -} - -#nav.scrolled #top-link { - display: inline; -} - -#small-logo { - margin: 0; - padding: 0; - vertical-align: middle; - display: none; - width: 24px; -} - -#nav.top #small-logo { - display: none; -} - -#nav.scrolled #small-logo { - display: inline-block; -} - /* Main body */ #main { margin: 0; @@ -228,15 +180,6 @@ body { #header { font-size: 1.75em; } - - #nav.scrolled { - max-width: 980px; - font-size: .9em; - } - - #nav.scrolled #small-logo { - display: none; - } } @media (max-width: 900px) { @@ -250,7 +193,7 @@ body { font-size: 1.5em; } - #header img#logo { + #logo { display: block; width: 128px; margin: 0 auto; @@ -268,13 +211,9 @@ body { min-width: 480px; } - #header img#logo { + #logo { display: block; width: 64px; margin: 0 auto; } - - #greeting { - display: none; - } } diff --git a/src/templates/base.html b/src/templates/base.html index 8c1d9fc..30ab7fb 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -2,49 +2,32 @@ ianonavy{% block title %}{% endblock title %} + - - - - {% block extrastyle %}{% endblock %} - - + + + + {% block extrastyle %}{% endblock extrastyle %} - @@ -57,6 +40,17 @@ - + + diff --git a/src/templates/index.html b/src/templates/index.html index 3cff29b..57bf1f1 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,21 +1,19 @@ {% extends "base.html" %} -{% block nav_portfolio %} class="selected" {% endblock %} -{% block extrastyle %} -{% endblock %} +{% block extrastyle %}{% endblock %} {% block main %} -
+

Portfolio

View Resume

-
+ -
+

About

Picture of Ian Naval -
+

Skills

  • Learns fast.
  • @@ -27,7 +25,7 @@
  • Experience with Flask, Django, node.js, and AngularJS.
-
+

Facts

  • Likes potatoes, music and language.
  • @@ -35,11 +33,11 @@
  • Does not own those glasses.
-
+ -
+

Contact

-

See my résumé.

-
+

Information is on my résumé.

+ {% endblock main %} diff --git a/src/templates/labs.html b/src/templates/labs.html index 64ed27e..071fbf9 100644 --- a/src/templates/labs.html +++ b/src/templates/labs.html @@ -1,7 +1,6 @@ {% extends "base.html" %} {% block title %} | Labs{% endblock %} -{% block nav_labs %} class="selected" {% endblock %} {% block main %}

Labs

@@ -9,5 +8,5 @@

Click here to see what I'm working on this very moment (if anything).

Active Projects

- + {% endblock main %}