Forked from sbatson5/components.blank-template.js
Last active
November 26, 2018 17:25
-
-
Save snewcomer/15dfaf275bb15bcf3d49e7f1632b4ce4 to your computer and use it in GitHub Desktop.
AngleBracket Yield
This file contains hidden or 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.Component.extend({ | |
tagName: '' | |
}); |
This file contains hidden or 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.Component.extend({ | |
tagName: '' | |
}); |
This file contains hidden or 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 Component from '@ember/component'; | |
export default Component.extend({ | |
classNames: ['toolbar'], | |
attributeBindings: ['role'], | |
role: 'toolbar', | |
foo: 'hi', | |
// This should be a passed in action | |
closeAction() { | |
console.log(this); | |
console.warn('you did not pass in an action `closeAction` to `prodicle-toolbar`'); | |
} | |
}); |
This file contains hidden or 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 hidden or 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
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
.toolbar { | |
width: 100%; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
position: fixed; | |
bottom: 0; | |
left: 0; | |
z-index: 100; | |
background: #fff; | |
box-shadow: 0 -12px 16px -8px rgba(0,0,0,0.12), 0 0 8px 1px rgba(0,0,0,0.06), 0 -7px 8px -8px rgba(0,0,0,0.08); | |
@media (max-width: 575px) { | |
padding-right: 16px; | |
padding-left: 16px; | |
height: 64px; | |
} | |
@media (min-width: 576px) { | |
height: 80px; | |
} | |
@media (min-width: 576px) and (max-width: 1023px) { | |
padding-right: 24px; | |
padding-left: 24px; | |
} | |
@media (min-width: 1024px) { | |
padding-right: 48px; | |
padding-left: 48px; | |
} | |
} | |
.toolbar__context, | |
.toolbar__actions { | |
display: flex; | |
align-items: center; | |
} | |
.toolbar__context__text { | |
margin-left: 16px; | |
} | |
.toolbar__action:not(:last-of-type) { | |
margin-right: 16px; | |
} | |
.button-filled { | |
display: inline-flex; | |
align-items: center; | |
color: #fff; | |
line-height: 1; | |
font-size: 1.5rem; | |
background-color: #0e6df3; | |
border: 1px solid #0e6df3; | |
border-radius: 4px; | |
transition: .3s ease background-color; | |
white-space: nowrap; | |
} | |
.button-filled:hover, | |
.button-filled:focus { | |
background-color: #0b56bf; | |
border-color: #0b56bf; | |
} | |
} |
This file contains hidden or 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.15.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js", | |
"ember": "3.4.3", | |
"ember-template-compiler": "3.4.3", | |
"ember-testing": "3.4.3" | |
}, | |
"addons": { | |
"ember-data": "3.4.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment