From 36fc21af3e6259f179ab2a6769c5133d4031301a Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 12 Feb 2012 21:13:13 -0500 Subject: [PATCH] Working on reg --- snipt/fabfile.py | 2 + .../css/{bootstrap.scss => bootstrap.css} | 0 snipt/media/css/style.scss | 34 +++++- snipt/media/css/{themes.scss => themes.css} | 0 snipt/snipts/views.py | 1 + snipt/templates/base.html | 30 ++--- snipt/templates/registration/login.html | 107 ++++++++---------- .../registration/registration_base.html | 3 + 8 files changed, 102 insertions(+), 75 deletions(-) rename snipt/media/css/{bootstrap.scss => bootstrap.css} (100%) rename snipt/media/css/{themes.scss => themes.css} (100%) diff --git a/snipt/fabfile.py b/snipt/fabfile.py index 9b0a568..301f63e 100644 --- a/snipt/fabfile.py +++ b/snipt/fabfile.py @@ -10,7 +10,9 @@ def staticfiles(): local('sed -i -e \'s/\/media\//https:\/\/snipt.s3.amazonaws.com\//g\' %s/media/css/style.css' % BASE_PATH) local('rm %s/media/css/style.css-e' % BASE_PATH) css = [ + '%s/media/css/bootstrap.css' % BASE_PATH, '%s/media/css/style.css' % BASE_PATH, + '%s/media/css/themes.css' % BASE_PATH, ] local('cat %s > %s/media/cache/snipt.css' % (' '.join(css), BASE_PATH)) diff --git a/snipt/media/css/bootstrap.scss b/snipt/media/css/bootstrap.css similarity index 100% rename from snipt/media/css/bootstrap.scss rename to snipt/media/css/bootstrap.css diff --git a/snipt/media/css/style.scss b/snipt/media/css/style.scss index 913e765..8918894 100644 --- a/snipt/media/css/style.scss +++ b/snipt/media/css/style.scss @@ -1,5 +1,3 @@ -@import 'bootstrap.scss'; - // Fonts $Helvetica: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif; $Consolas: Consolas, Menlo, "Courier New", monospace; @@ -67,6 +65,11 @@ body { li { line-height: normal; } + a, button { + &:focus { + outline: none; + } + } } // Utils @@ -118,6 +121,10 @@ header.main { margin: 16px 0 0 16px; text-indent: -1000em; width: 87px; + + &:focus { + outline: none; + } } } form.search { @@ -881,7 +888,24 @@ body.detail { } } body.account { - -} + form.account-form { + background: rgba(#FFF, .65); + margin: 20px; + padding: 20px; + @include border-radius(10px); -@import 'themes.scss'; + div.form-actions { + margin-bottom: 0; + @include multi-border-radius(0, 0, 5px, 5px); + } + div.alert { + ul { + margin: 0; + + li { + list-style-type: none; + } + } + } + } +} diff --git a/snipt/media/css/themes.scss b/snipt/media/css/themes.css similarity index 100% rename from snipt/media/css/themes.scss rename to snipt/media/css/themes.css diff --git a/snipt/snipts/views.py b/snipt/snipts/views.py index cd69608..61cb299 100644 --- a/snipt/snipts/views.py +++ b/snipt/snipts/views.py @@ -25,6 +25,7 @@ def list_public(request, tag_slug=None): snipts = snipts.filter(tags__name__in=[tag_slug]) return { + 'public': True, 'snipts': snipts, 'tags': tags, 'tag': tag_slug, diff --git a/snipt/templates/base.html b/snipt/templates/base.html index 99ea194..1a58d35 100644 --- a/snipt/templates/base.html +++ b/snipt/templates/base.html @@ -6,7 +6,9 @@ {% if debug %} + + @@ -53,14 +55,14 @@