Add per brand UI specific chat message styles.

This commit is contained in:
Paulo Reis 2017-12-13 12:16:44 +00:00
parent ca68f01a9d
commit e47b20390b

View file

@ -296,10 +296,14 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
webRouter.use (req, res, next) ->
isOl = (Settings.brandPrefix == 'ol-')
res.locals.uiConfig =
defaultResizerSizeOpen : if isOl then 2 else 24
defaultResizerSizeClosed : if isOl then 2 else 24
eastResizerCursor : if isOl then "ew-resize" else null
westResizerCursor : if isOl then "ew-resize" else null
chatResizerSizeOpen : if isOl then 2 else 12
chatResizerSizeClosed : 0
defaultResizerSizeOpen : if isOl then 2 else 24
defaultResizerSizeClosed : if isOl then 2 else 24
eastResizerCursor : if isOl then "ew-resize" else null
westResizerCursor : if isOl then "ew-resize" else null
chatResizerSizeOpen : if isOl then 2 else 12
chatResizerSizeClosed : 0
chatMessageBorderSaturation: if isOl then 90 else 70
chatMessageBorderLightness : if isOl then 50 else 70
chatMessageBgSaturation : if isOl then 90 else 60
chatMessageBgLightness : if isOl then 50 else 97
next()