aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rwxr-xr-xsource/auth.py23
-rw-r--r--source/css/log.css25
2 files changed, 19 insertions, 29 deletions
diff --git a/source/auth.py b/source/auth.py
index 255cf6a6..443c33ed 100755
--- a/source/auth.py
+++ b/source/auth.py
@@ -149,19 +149,22 @@ class AuthController(object):
msg = ""
return """<!DOCTYPE html>\n<html>
<head>
+ <title>pyAggr3g470r - News aggregator</title>
<link rel="stylesheet" type="text/css" href="/css/log.css" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
- <img src="/img/tuxrss.png" alt="pyAggr3g470r" />
- <div id="center">
- <div id="main">
- <form method="post" action="/auth/login">
- <input type="hidden" name="from_page" value="%(from_page)s" />
- %(msg)s<br />
- <input type="text" name="username" value="%(username)s" placeholder="Username" /><br />
- <input type="password" name="password" placeholder="Password" /><br />
- <input type="submit" value="Log in" />
- </div><!-- end #main -->
+ <div>
+ <div id="logform">
+ <img src="/img/tuxrss.png" alt="pyAggr3g470r" />
+ <form method="post" action="/auth/login">
+ <input type="hidden" name="from_page" value="%(from_page)s" />
+ %(msg)s<br />
+ <input type="text" name="username" value="%(username)s" placeholder="Username" /><br />
+ <input type="password" name="password" placeholder="Password" /><br />
+ <input type="submit" value="Log in" />
+ </form>
+ </div><!-- end #main -->
</div><!-- end #center -->
</body>
</html>""" % locals()
diff --git a/source/css/log.css b/source/css/log.css
index 71a61f8e..9ffd499a 100644
--- a/source/css/log.css
+++ b/source/css/log.css
@@ -1,7 +1,5 @@
body {
font:normal medium 'Gill Sans','Gill Sans MT',Verdana,sans-serif;
- margin:1.75em auto;
- width:40.8em;
line-height:1.75;
}
@@ -37,29 +35,18 @@ h3 {
}
hr {
- border-style:dotted;
+ der-style:dotted;
height:1px;
border-width: 1px 0 0 0;
margin:1.45em 0 1.4em;
padding:0;
}
-.right blockquote {
- float: right;
- position: relative;
- clear: both;
- padding-top: 1em;
- padding-bottom: 0em;
- margin-bottom: 0em;
- font-style: italic;
- width: 100%;
- margin-right: 0em;
-}
-
-blockquote.right {
- width: 50%;
- margin-left: 50%;
- margin-right: 0em;
+#logform {
+ text-align:center;
+ clear: both;
+ position: float;
+ margin-top: 10%;
}
#footer {
bgstack15