Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(card): make it use up proper width with margin
Browse files Browse the repository at this point in the history
Closes #247
  • Loading branch information
ajoslin committed Sep 8, 2014
1 parent 528d0db commit f33185f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
11 changes: 4 additions & 7 deletions src/components/card/_card.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
material-card {
display: block;
@include box-sizing(border-box);

box-shadow: $card-box-shadow;

padding: $card-padding;
margin: $card-margin;

padding: $card-padding;
border-radius: $card-border-radius;

.material-card-image {
min-width: 100%;
@include calc(width, "100% + #{$card-padding}*2");
margin-left: -10px;
margin-top: -10px;
display: block;
width: 100%;
border-radius: $card-border-radius $card-border-radius 0 0;
}

Expand Down
10 changes: 2 additions & 8 deletions src/theme/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,14 @@ $item-padding-bottom: 0px;

$card-border-radius: 2px;
$card-border: 1px solid #eee;
$card-padding: 10px;
$card-margin: 10px;
$card-padding: 8px;
$card-margin: 8px;
$card-box-shadow: $whiteframe-shadow-z1;

// Tabs
$tabs-paginator-width: $baseline-grid * 4 !default;
$tabs-tab-width: $baseline-grid * 12 !default;

// Tiles

$tile-border-radius: 2px;
$tile-padding: 10px;
$tile-margin: 10px;

// Forms and inputs

$input-font-size: 0.85em;
Expand Down

0 comments on commit f33185f

Please sign in to comment.