Skip to content

Instantly share code, notes, and snippets.

@heruan
Created January 26, 2017 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heruan/af076237424559239df7238e75aa4919 to your computer and use it in GitHub Desktop.
Save heruan/af076237424559239df7238e75aa4919 to your computer and use it in GitHub Desktop.
Simple theme to make Valo layouts flexible
@import "../valo/valo";
.flexbox {
@include valo;
.v-layout, .v-slot {
display: flex;
flex-wrap: wrap;
}
.v-layout, .v-spacing {
flex: 0 1 auto;
}
.v-verticallayout {
flex-direction: column;
}
.v-horizontallayout {
flex-direction: row;
}
.v-verticallayout > .v-slot {
flex: 0 1 auto;
}
.v-horizontallayout > .v-slot {
flex: 1 1 auto;
}
.v-slot > .v-widget {
flex: 1 1 auto;
}
.v-component-group {
display: flex;
flex-wrap: nowrap;
}
.v-component-group > .v-widget {
flex: 1 1 auto;
}
.v-button, .v-menubar {
flex: 0 1 auto !important;
}
.v-combobox,
.v-filterselect,
.v-datefield,
.v-textarea,
.v-textfield,
input {
width: 100% !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment