Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[common] Allow min-width and max-width in custom css
  • Loading branch information
rixx committed Dec 21, 2017
1 parent 1dfd081 commit e9eb4a5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/pretalx/common/css.py
Expand Up @@ -15,14 +15,15 @@
valid_css_values = re.compile('^(#[0-9a-f]+|rgb\(\d+%?,\d*%?,?\d*%?\)?|\d{0,2}\.?\d{0,2}(cm|em|ex|in|mm|pc|pt|px|%|,|\))?)$')
acceptable_css_properties = set([
'azimuth', 'background-color', 'border-bottom-color', 'border-collapse',
'border-color', 'border-left-color', 'border-right-color', 'border-top-color',
'clear', 'color', 'cursor', 'direction', 'display', 'elevation', 'float', 'font',
'font-family', 'font-size', 'font-style', 'font-variant', 'font-weight', 'height',
'letter-spacing', 'line-height', 'overflow', 'pause', 'pause-after', 'pause-before',
'pitch', 'pitch-range', 'richness', 'speak', 'speak-header', 'speak-numeral',
'speak-punctuation', 'speech-rate', 'stress', 'text-align', 'text-decoration',
'text-indent', 'unicode-bidi', 'vertical-align', 'voice-family', 'volume',
'white-space', 'width',
'border-color', 'border-left-color', 'border-right-color',
'border-top-color', 'clear', 'color', 'cursor', 'direction', 'display',
'elevation', 'float', 'font', 'font-family', 'font-size', 'font-style',
'font-variant', 'font-weight', 'height', 'letter-spacing', 'line-height',
'max-width', 'min-width', 'overflow', 'pause', 'pause-after',
'pause-before', 'pitch', 'pitch-range', 'richness', 'speak',
'speak-header', 'speak-numeral', 'speak-punctuation', 'speech-rate',
'stress', 'text-align', 'text-decoration', 'text-indent', 'unicode-bidi',
'vertical-align', 'voice-family', 'volume', 'white-space', 'width',
])


Expand Down

0 comments on commit e9eb4a5

Please sign in to comment.