Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
schilder
schildergenerator
Commits
39d5d838
Commit
39d5d838
authored
Jul 27, 2015
by
Dave Kliczbor
Browse files
More linear-gradients in CSS\!
parent
03193ade
Changes
2
Hide whitespace changes
Inline
Side-by-side
schilder.py
View file @
39d5d838
...
...
@@ -146,7 +146,7 @@ def create():
imgpath
=
save_and_convert_image_upload
(
'imgupload'
)
if
imgpath
is
not
None
:
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'
formdata
[
'pdfname'
]
=
outpdfname
run_pdflatex
(
formdata
,
os
.
path
.
join
(
config
.
pdfdir
,
outpdfname
))
...
...
static/main.css
View file @
39d5d838
...
...
@@ -117,14 +117,19 @@ input[type="radio"]:checked + input[type="file"] {
input
[
type
=
"radio"
]
:checked
+
input
[
type
=
"file"
]
+
label
{
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
{
display
:
block
;
}
.box
{
display
:
inline-block
;
background
:
#eee
;
border
:
1px
solid
lightgray
;
border-radius
:
5px
;
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%
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment