-
-
Save runspired/976fcaa4b58a7d898f885b64dbfbfb5c to your computer and use it in GitHub Desktop.
Flexbox wonky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
} | |
html { | |
height: 100%; | |
min-height: 100%; | |
margin: 0; | |
} | |
body { | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
height: 100%; | |
min-height: 100%; | |
margin: 0; | |
background-color: rgba(0, 0, 0, .05); | |
padding: 16px | |
} | |
#root.ember-application { | |
position: absolute; | |
height: 70%; | |
width: calc(100% - 20px); | |
} | |
#root.ember-application > div.ember-view { | |
display: flex; | |
flex-direction: row; | |
flex: 1 0 auto; | |
height: 100%; | |
background: green; | |
padding: 8px; | |
} | |
.callscreen-main { | |
padding: 8px; | |
display: flex; | |
flex-direction: column; | |
background: red; | |
border: 1px solid; | |
height: 100%; | |
} | |
.header-bar { | |
padding: 8px; | |
flex: 0 0 auto; | |
border: 1px solid; | |
margin-bottom: 8px; | |
} | |
.static-content { | |
padding: 8px; | |
flex: 0 0 auto; | |
border: 1px solid; | |
margin-bottom: 8px; | |
} | |
.scrollable { | |
height: 100%; | |
flex: none; | |
position: relative; | |
} | |
.flex-content { | |
position: relative; | |
padding: 8px; | |
flex: 1 1 auto; | |
border: 1px solid; | |
overflow-y: scroll; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.9.3", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.6.0", | |
"ember-data": "2.6.1", | |
"ember-template-compiler": "2.6.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment