Skip to content

Commit

Permalink
vue 0.1.4: flex layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
suenot committed Apr 7, 2019
1 parent 5b75337 commit f52f4e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions vue-client/src/views/Balance/Balance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ export default {
<style lang="sass" scoped>
.main-container
display: flex
min-width: 100%
max-width: 100%
width: 100%
height: 100%
// display: grid
// grid-template-columns: [fist-column] 470px [second-column] auto [third-column]
// grid-template-rows: [first-row] 440px [second-row] calc(100vh - 440px)
.left-column
flex: 0 0 400px
max-width: 400px
min-width: 400px
.right-column
flex: 1 0 auto
display: flex
Expand Down
10 changes: 8 additions & 2 deletions vue-client/src/views/Trade/Trade.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,22 @@ export default {
height: 100vh
max-height: 100vh
overflow: hidden
width: 100%
max-width: 100%
.left-column
flex: 0 0 360px
max-width: 360px
min-width: 360px
.middle-column
flex: 0 1 auto
flex: 1 0 auto
display: flex
flex-direction: column
heigth: 100vh
.right-column
flex: 0 0 250px
flex: 0 0 280px
max-width: 280px
min-width: 280px
.orders-wrapper
height: calc(100vh + 2px)
Expand Down

0 comments on commit f52f4e8

Please sign in to comment.