-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc87486
commit ad9c2bd
Showing
11 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Component.extend({ | ||
tagName:'md-divider', | ||
attributeBindings:['insetAttr:md-inset'], | ||
classNames:['paper-divider','md-default-theme'], | ||
/* | ||
* Not binding boolean values in Ember 1.8.1? | ||
* https://github.com/emberjs/ember.js/issues/9595 | ||
*/ | ||
insetAttr:function(){ | ||
return this.get('inset') ? 'md-inset' : null; | ||
}.property('inset') | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
md-divider { | ||
display: block; | ||
border-top: 1px solid; | ||
margin: 0; | ||
|
||
&[md-inset] { | ||
margin-left: $baseline-grid * 10; | ||
} | ||
} | ||
|
||
md-divider.md-#{$theme-name}-theme { | ||
border-top-color: $foreground-quarternary-color; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.md-whiteframe-z1 { | ||
box-shadow: $whiteframe-shadow-z1; | ||
} | ||
.md-whiteframe-z2 { | ||
box-shadow: $whiteframe-shadow-z2; | ||
} | ||
.md-whiteframe-z3 { | ||
box-shadow: $whiteframe-shadow-z3; | ||
} | ||
.md-whiteframe-z4 { | ||
box-shadow: $whiteframe-shadow-z4; | ||
} | ||
.md-whiteframe-z5 { | ||
box-shadow: $whiteframe-shadow-z5; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import PaperDivider from 'ember-paper/components/paper-divider'; | ||
|
||
export default PaperDivider; |
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
controllerName: 'list' | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<h3>Dividers</h3> | ||
|
||
<h4>Full width dividers</h4> | ||
{{#paper-content classNames="md-whiteframe-z1 list-demo"}} | ||
{{#paper-list}} | ||
{{#each listData}} | ||
{{#paper-item}} | ||
{{#paper-tile-left}} | ||
<img {{bind-attr src=face alt=who}} class="face"> | ||
{{/paper-tile-left}} | ||
|
||
{{#paper-tile-content}} | ||
<h3>{{what}}</h3> | ||
<h4>{{who}}</h4> | ||
<p> | ||
{{notes}} | ||
</p> | ||
{{/paper-tile-content}} | ||
{{/paper-item}} | ||
{{paper-divider}} | ||
{{/each}} | ||
{{/paper-list}} | ||
{{/paper-content}} | ||
|
||
<h4>Inset dividers</h4> | ||
{{#paper-content classNames="md-whiteframe-z1 list-demo"}} | ||
{{#paper-list}} | ||
{{#each listData}} | ||
{{#paper-item}} | ||
{{#paper-tile-left}} | ||
<img {{bind-attr src=face alt=who}} class="face"> | ||
{{/paper-tile-left}} | ||
|
||
{{#paper-tile-content}} | ||
<h3>{{what}}</h3> | ||
<h4>{{who}}</h4> | ||
<p> | ||
{{notes}} | ||
</p> | ||
{{/paper-tile-content}} | ||
{{/paper-item}} | ||
{{paper-divider inset=true}} | ||
{{/each}} | ||
{{/paper-list}} | ||
{{/paper-content}} | ||
|
||
<h3>Template</h3> | ||
<pre> | ||
\{{#paper-content classNames="md-whiteframe-z1"}} | ||
\{{#paper-list}} | ||
\{{#each listData}} | ||
\{{#paper-item}} | ||
\{{#paper-tile-left}} | ||
<img \{{bind-attr src=face alt=who}} class="face"> | ||
\{{/paper-tile-left}} | ||
|
||
\{{#paper-tile-content}} | ||
<h3>\{{what}}</h3> | ||
<h4>\{{who}}</h4> | ||
<p> | ||
\{{notes}} | ||
</p> | ||
\{{/paper-tile-content}} | ||
\{{/paper-item}} | ||
\{{paper-divider}} \{{! OR \{{paper-divider inset=true}} }} | ||
\{{/each}} | ||
\{{/paper-list}} | ||
\{{/paper-content}} | ||
</pre> |
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
ad9c2bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will look really nice with the htmlbars HTML syntax.
ad9c2bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally! I think I've already dreamed with that some nights ago.