-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from espncreativeworks/feature-project-card
Re-implement cards without packery; revisit when ng-packery supports auto-reloading packery elements SunGard-Labs/angular-packery#10
Showing
8 changed files
with
52 additions
and
32 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
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 |
---|---|---|
@@ -1,21 +1,44 @@ | ||
.packery-sizer, .packery-object{ | ||
width: 100%; | ||
max-width: 467px; | ||
height: auto; | ||
.project-card-container { | ||
$card-min-height: 300px; | ||
$card-image-min-height: 208px; | ||
|
||
min-height: $card-min-height; | ||
padding: 10px; | ||
} | ||
|
||
.card { | ||
width: 100%; | ||
margin: 0 auto; | ||
} | ||
|
||
.card-image-link { | ||
display: block; | ||
width: 100%; | ||
min-height: $card-image-min-height; | ||
} | ||
|
||
.card-image.fallback .card-image-link { | ||
line-height: $card-image-min-height; | ||
background-color: darken($espn-light, 15%); | ||
background-image: url($image-path + 'bg_project_execution.png'); | ||
background-size: 32px 32px; | ||
} | ||
|
||
.card { | ||
.card-header { | ||
font-family: $espn-font-family-headings; | ||
color: #000; | ||
text-transform: uppercase; | ||
margin: 5px 0 0 0 !important; | ||
} | ||
|
||
.card-desc { | ||
font-family: $font-family-sans-serif; | ||
color: #b7b7b7; | ||
color: $espn-neutral; | ||
font-style: italic; | ||
font-size: 12px; | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
@media (min-width: $screen-sm-min){ | ||
.project-card-container .card { | ||
max-width: 467px; | ||
} | ||
} |
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
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