Bläddra i källkod

Styling.

master
Ben Kurtovic 8 år sedan
förälder
incheckning
94099e9b81
2 ändrade filer med 80 tillägg och 11 borttagningar
  1. +78
    -9
      static/style.css
  2. +2
    -2
      templates/index.mako

+ 78
- 9
static/style.css Visa fil

@@ -1,19 +1,88 @@
header {}
body {
font-family: sans-serif;
background-color: white;
color: black;
}

footer {}
a {
color: #1144BB;
text-decoration: none;
}

#container {}
a:hover {
color: #112277;
text-decoration: underline;
}

#error {}
header {
margin: 0 0 1em 0.5em;
}

#result {}
header h1 {
margin: 0 0 0.33em;
}

#result-cache {}
header p {
margin: 0;
}

footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 1em 1em 1.5em;
background-color: white;
text-align: center;
font-size: 85%;
}

#container {
margin: 1em 0 0 0.5em;
}

#main-form input[name="title"] {
width: 30em;
}

#main-form button[type="submit"] {
margin-left: 1em;
}

#error {
margin-top: 2em;
background-color: #FFE0E0;
}

#result {
margin-top: 2em;
}

#result table {
margin-top: 0.5em;
}

#result-cache {
margin-top: 1em;
font-size: 85%;
font-style: italic;
}

.result-page {}

.prot-level {}
.prot-autoconfirmed {
color: #070;
}

.prot-templateeditor {
color: #970;
}

.prot-expiry {}
.prot-sysop {
color: #A00;
}

.prot-none {}
.prot-none {
font-style: italic;
color: #555;
}

+ 2
- 2
templates/index.mako Visa fil

@@ -1,5 +1,5 @@
<%include file="/support/header.mako" args="title='TIF Calculator'"/>
<form action="${request.script_root}" method="get">
<form id="main-form" action="${request.script_root}" method="get">
% if "title" in result:
<input type="text" name="title" value="${result['page'].title if 'page' in result else result['title'] | h}" />
% else:
@@ -35,7 +35,7 @@
% if result["protection"]:
<td><span class="prot-level prot-${result['protection']['level']}">${result["protection"]["level"]}</span> until <span class="prot-expiry">${result["protection"]["expiry"]}</span></td>
% else:
<td><span class="prot-none">None</span></td>
<td><span class="prot-none">none</span></td>
% endif
</tr>
</table>


Laddar…
Avbryt
Spara