Input css added

This commit is contained in:
Niles Rogoff 2017-02-14 20:12:48 -05:00
parent 0f583dd80c
commit d52a0443d1
No known key found for this signature in database
GPG Key ID: B78B908F23430F80
2 changed files with 16 additions and 1 deletions

View File

@ -140,6 +140,10 @@ def rjs2(f, z):
if type(f[2]) == list:
for l in f[2]:
result.append(rjs2(l, z + f[1]))
elif f[2] == 0:
#result.append("document.getElementById(z + '"+ f[1] +"' + 'i').value = ''")
# replaced with the onBlur thing
pass
return "\n".join(result)
def rhtml(f, z):
@ -165,7 +169,7 @@ def rhtml(f, z):
def rsearch(f, z):
result = []
result.append(''.join(["<form class='"+z+"' id='",z,f[1],"' action='javascript:doSearch(\"",f[3],"\", \"",z,f[1],"\")' style='display: none;'>"]))
result.append("<input type='text' name='input' id='"+z+f[1]+"i"+"' />")
result.append("<input onblur='this.value = \"\";' type='text' name='input' id='"+z+f[1]+"i"+"' />")
result.append("</form>")
return "\n".join(result)

View File

@ -35,3 +35,14 @@ a:hover {
padding: 5px;
text-align: right;
}
input {
font-size: 1.5em;
appearance: none;
border: solid 1px #ddd;
padding: 10px;
margin-top: 100px; /* dirty hack, can be removed */
text-align: center;
box-shadow: 0 0 10px 1px #27454F;
border: solid 4px #27454F;
}