adding some style
This commit is contained in:
parent
e1f1cf09ca
commit
1778115a82
2 changed files with 192 additions and 109 deletions
|
@ -79,12 +79,13 @@ class index:
|
|||
generated = get_generated_from_url(i.base_url)
|
||||
|
||||
if selected:
|
||||
body.append('<p>Existing: \n')
|
||||
body.append('<h2>Existing:</h2>\n<ul>')
|
||||
for pair in selected:
|
||||
body.append('('+pair.username+', '+pair.password+')\n')
|
||||
body.append('</p>')
|
||||
body.append('<li>'+pair.username+', '+pair.password+'</li>\n')
|
||||
body.append('</ul>')
|
||||
|
||||
body.append('<p>Generated: ' + generated[0].password + '</p>')
|
||||
body.append('<h2>Generated:</h2>\n<p>' + generated[0].password + '</p>\n')
|
||||
body.append('<h2>Create:</h2>\n')
|
||||
|
||||
body.append('<form class="form" method="get" action="/secret/create">\n'+ \
|
||||
f.render()+ '\n<input type="submit" name="submit" id="submit"/></form>')
|
||||
|
|
|
@ -3,8 +3,90 @@ $def with (title, body)
|
|||
<html>
|
||||
<head>
|
||||
<title>$title</title>
|
||||
<meta name="viewport" content="width=320" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<style type="text/css">
|
||||
/* Eric Meyer CSS Reset */
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
del {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style type="text/css">
|
||||
/* internal styling, must be after reset */
|
||||
body {
|
||||
font-family: Georgia;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
padding-bottom:5px;
|
||||
padding-top:5px;
|
||||
}
|
||||
p {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
form {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
$:body
|
||||
</body>
|
||||
</html>
|
Reference in a new issue