Skip to content

Instantly share code, notes, and snippets.

@jmacqueen
Created December 7, 2015 15:38
Show Gist options
  • Save jmacqueen/ec60f31e7266934fb678 to your computer and use it in GitHub Desktop.
Save jmacqueen/ec60f31e7266934fb678 to your computer and use it in GitHub Desktop.
Uebersicht widget to enable flexbox
alignItems : 'stretch' # default: 'stretch'
alignContent : 'stretch' # default: 'stretch'
flexDirection : 'row' # default: 'row'
flexWrap : 'wrap' # default: 'nowrap'
justifyContent : 'flex-start' # default: 'flex'-start'
refreshFrequency: false
command: "echo"
render: (output) -> """
<style>
#__uebersicht {
display: flex;
align-items: #{@alignItems}
align-content: #{@alignContent}
flex-direction: #{@flexDirection}
flex-wrap: #{@flexWrap}
justify-content: #{@justifyContent};
}
#__uebersicht>div {
width: auto;
}
.widget {
position: relative;
}
</style>
"""
update: (output, domEl) ->
$(domEl).parent('div').css('position', 'absolute')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment