Commit 39d5d838 authored by Dave Kliczbor's avatar Dave Kliczbor
Browse files

More linear-gradients in CSS\!

parent 03193ade
...@@ -146,7 +146,7 @@ def create(): ...@@ -146,7 +146,7 @@ def create():
imgpath = save_and_convert_image_upload('imgupload') imgpath = save_and_convert_image_upload('imgupload')
if imgpath is not None: if imgpath is not None:
formdata['img'] = imgpath formdata['img'] = imgpath
outfilename = secure_filename(formdata['headline'][:16])+str(hash(formdata['headline']+formdata['text']+os.path.splitext(formdata['textemplate'])[0]))+'.schild' outfilename = secure_filename(formdata['headline'][:16])+str(hash(formdata['headline']+formdata['text']+os.path.splitext(formdata['textemplate'])[0]+os.path.splitext(formdata['img'])[0]))+'.schild'
outpdfname = outfilename + '.pdf' outpdfname = outfilename + '.pdf'
formdata['pdfname'] = outpdfname formdata['pdfname'] = outpdfname
run_pdflatex(formdata, os.path.join(config.pdfdir, outpdfname)) run_pdflatex(formdata, os.path.join(config.pdfdir, outpdfname))
......
...@@ -117,14 +117,19 @@ input[type="radio"]:checked + input[type="file"] { ...@@ -117,14 +117,19 @@ input[type="radio"]:checked + input[type="file"] {
input[type="radio"]:checked + input[type="file"] + label { input[type="radio"]:checked + input[type="file"] + label {
display:none; display:none;
} }
select, button, input[type='submit'] {
height: 2.5em;
border-radius: 5px;
background: linear-gradient(to bottom, #fff 0%,#eee 16%,#ddd 92%,#ccc 100%);
}
textarea { textarea {
display: block; display: block;
} }
.box { .box {
display: inline-block; display: inline-block;
background: #eee;
border: 1px solid lightgray; border: 1px solid lightgray;
border-radius: 5px; border-radius: 5px;
padding: 0.5em; padding: 0.5em;
margin: 1em 0; margin: 0.3em 0;
background: #eee linear-gradient(to bottom, #fff 0%,#eee 0.5em,#eee 92%,#e6e6e6 100%);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment