-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
18950a3
commit e9f81ae
Showing
14 changed files
with
130 additions
and
4 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,7 @@ | ||
import Ember from 'ember'; | ||
import FlexMixin from '../mixins/flex-mixin'; | ||
|
||
export default Ember.Component.extend(FlexMixin, { | ||
tagName:'md-card-content', | ||
classNames:['paper-card-content'] | ||
}); |
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,7 @@ | ||
import Ember from 'ember'; | ||
import FlexMixin from '../mixins/flex-mixin'; | ||
|
||
export default Ember.Component.extend(FlexMixin, { | ||
tagName:'md-card', | ||
classNames:['paper-card'] | ||
}); |
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
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,35 @@ | ||
$card-margin: 8px !default; | ||
$card-padding: 16px !default; | ||
$card-box-shadow: $whiteframe-shadow-z1 !default; | ||
|
||
md-card { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
margin: $card-margin; | ||
|
||
box-shadow: $card-box-shadow; | ||
|
||
> img, | ||
> :not(md-card-content) img { | ||
order: 0; | ||
width: 100%; | ||
} | ||
|
||
md-card-content { | ||
order: 1; | ||
padding: $card-padding; | ||
} | ||
} | ||
|
||
// THEME | ||
|
||
$card-border-radius: 2px !default; | ||
|
||
md-card.md-#{$theme-name}-theme { | ||
border-radius: $card-border-radius; | ||
|
||
.md-card-image { | ||
border-radius: $card-border-radius $card-border-radius 0 0; | ||
} | ||
} |
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,3 @@ | ||
import PaperCardContent from 'ember-paper/components/paper-card-content'; | ||
|
||
export default PaperCardContent; |
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 PaperCard from 'ember-paper/components/paper-card'; | ||
|
||
export default PaperCard; |
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
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 |
---|---|---|
|
@@ -88,3 +88,8 @@ body { | |
min-width:200px; | ||
text-align:center; | ||
} | ||
|
||
.doc-content { | ||
max-width: 864px; | ||
margin: auto; | ||
} |
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,60 @@ | ||
{{#paper-toolbar}} | ||
<h2 class="md-toolbar-tools"> | ||
{{#paper-sidenav-toggle class="menu-sidenav-toggle"}} | ||
{{paper-icon icon="menu"}} | ||
{{/paper-sidenav-toggle}} | ||
<span>Card</span> | ||
</h2> | ||
{{/paper-toolbar}} | ||
|
||
{{#paper-content classNames="md-padding"}} | ||
<div class="doc-content"> | ||
{{#paper-content classNames="md-whiteframe-z1 list-demo"}} | ||
{{#paper-card}} | ||
<img src="https://material.angularjs.org/img/washedout.png" alt="Washed Out"> | ||
{{#paper-card-content}} | ||
<h2>Paracosm</h2> | ||
<p> | ||
The titles of Washed Out's breakthrough song and the first single from Paracosm share the | ||
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... | ||
</p> | ||
{{/paper-card-content}} | ||
{{/paper-card}} | ||
{{#paper-card}} | ||
<img src="https://material.angularjs.org/img/washedout.png" alt="Washed Out"> | ||
{{#paper-card-content}} | ||
<h2>Paracosm</h2> | ||
<p> | ||
The titles of Washed Out's breakthrough song and the first single from Paracosm share the | ||
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... | ||
</p> | ||
{{/paper-card-content}} | ||
{{/paper-card}} | ||
{{#paper-card}} | ||
<img src="https://material.angularjs.org/img/washedout.png" alt="Washed Out"> | ||
{{#paper-card-content}} | ||
<h2>Paracosm</h2> | ||
<p> | ||
The titles of Washed Out's breakthrough song and the first single from Paracosm share the | ||
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... | ||
</p> | ||
{{/paper-card-content}} | ||
{{/paper-card}} | ||
{{/paper-content}} | ||
|
||
|
||
<h3>Template</h3> | ||
<pre> | ||
\{{#paper-card}} | ||
<img src="https://material.angularjs.org/img/washedout.png" alt="Washed Out"> | ||
\{{#paper-card-content}} | ||
<h2>Paracosm</h2> | ||
<p> | ||
The titles of Washed Out's breakthrough song and the first single from Paracosm share the | ||
two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well... | ||
</p> | ||
\{{/paper-card-content}} | ||
\{{/paper-card}} | ||
</pre> | ||
</div> | ||
{{/paper-content}} |
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