Last active
September 8, 2015 23:05
-
-
Save chancancode/42d98522232b59cb2e9c to your computer and use it in GitHub Desktop.
<expandable-content>
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.GlimmerComponent.extend({ | |
isExpanded: false, | |
click() { | |
this.toggleProperty('isExpanded'); | |
} | |
}); |
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; | |
} | |
::-moz-selection { background-color: transparent; } | |
::selection { background-color: transparent; } | |
expandable-content { | |
display: block; | |
position: relative; | |
height: 200px; | |
padding: 0px 16px 40px; | |
background-color: #fafafa; | |
border: 1px solid #d1d1d1; | |
border-radius: 5px; | |
overflow: hidden; | |
} | |
expandable-content .prompt { | |
display: block; | |
position: absolute; | |
padding: 0; | |
margin: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
height: 40px; | |
line-height: 40px; | |
border: none; | |
text-align: center; | |
background-color: #dedede; | |
box-shadow: 0px -20px 25px 10px rgba(222,222,222,1); | |
} | |
expandable-content.expanded { | |
height: auto; | |
} | |
expandable-content.expanded .prompt { | |
box-shadow: none; | |
background-color: transparent; | |
} |
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.4.10", | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"hax": "https://cdn.rawgit.com/chancancode/5b7b95b6268d51cdcaae/raw/92e0654083305c73cd601381a6cea705be9f8890/hax.js", | |
"ember": "http://builds.emberjs.com/canary/ember.debug.js", | |
"ember-template-compiler": "http://builds.emberjs.com/canary/ember-template-compiler.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment