Permalink
Browse files

Add Bootstrap and other cosmetic changes.

Bootstrap is now used. Identation of Javascript is now at 2. Other minor
modifications were made.
  • Loading branch information...
1 parent 71de47b commit 920f39b1af19d1d97b4fa3e3b7b7c3d0d7571a70 @hdemers committed May 4, 2012
View
@@ -1 +0,0 @@
-flask
View
@@ -0,0 +1,3 @@
+flask
+flask-debugtoolbar
+requests
View
@@ -1,7 +1,28 @@
+import logging
+
from flask import Flask
+from flask_debugtoolbar import DebugToolbarExtension
+FORMAT = "%(asctime)s] %(levelname)s %(module)s %(funcName)s: %(message)s"
# The application
app = Flask(__name__)
+# Debugging
+app.debug = True
+app.debug_log_format = FORMAT
+logger = app.logger
+
+# Console handler
+formatter = logging.Formatter(FORMAT)
+console_handler = logging.StreamHandler()
+console_handler.setFormatter(formatter)
+logger.addHandler(console_handler)
+
+# Set a 'SECRET_KEY' to enable the Flask session cookies
+app.config['SECRET_KEY'] = 'oftg09jW2FtbXfcud9OS'
+
+# Flask debug toolbar
+toolbar = DebugToolbarExtension(app)
+
import webapp.views
View
@@ -1,39 +1,20 @@
-@import "reset.css";
-
-@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Cantarell);
-@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300&v2);
-
-html, body {
- height: 100%;
-}
+@import "bootstrap.min.css";
+@import "bootstrap-responsive.min.css";
body {
- font-family: "Cantarell", "Helvetica Neue", Helvetica, Arial, sans-serif, default;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, default;
background-color: #dddcd7;
}
-#wrap {
- min-height: 100%;
-}
-a {
- color: #5b4d3c;
+.navbar-inner {
+ -webkit-border-radius: 0px;
+ -moz-border-radius: 0px;
+ border-radius: 0px;
}
-/* The 2 following entries are for the sticky footer: */
-/* http://www.cssstickyfooter.com/using-sticky-footer-code.html */
-#page {
- overflow: auto;
- padding-bottom: 60px;
-}
-#footer {
- position: relative;
- margin-top: -60px;
- height: 60px;
- clear: both;
- text-align: center;
+a {
+ color: #5b4d3c;
}
-.hidden { display: none; }
-

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 920f39b

Please sign in to comment.