toloframework
Version:
Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.
67 lines (52 loc) • 944 B
CSS
div.wdg-flex {
display: inline-flex;
align-items: center;
width: 100%;
}
div.wdg-flex.H {
flex-direction: row;
}
div.wdg-flex.V {
flex-direction: column;
height: 100%;
}
@media (orientation: portrait) {
div.wdg-flex.N {
flex-direction: row;
}
div.wdg-flex.W {
flex-direction: column;
}
}
@media (orientation: landscape) {
div.wdg-flex.W {
flex-direction: row;
}
div.wdg-flex.N {
flex-direction: column;
}
}
div.wdg-flex.justify-center {
justify-content: center;
}
div.wdg-flex.justify-flex-end {
justify-content: flex-end;
}
div.wdg-flex.justify-flex-start {
justify-content: flex-start;
}
div.wdg-flex.justify-space-around {
justify-content: space-around;
}
div.wdg-flex.justify-space-between {
justify-content: space-between;
}
div.wdg-flex.wide {
display: flex;
}
div.wdg-flex.default > * {
flex: 0 1 auto;
}
div.wdg-flex.fill > * {
flex: 1 1 auto;
}