-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o-card class to get brand specific design
- Loading branch information
1 parent
40e5ef1
commit 5851867
Showing
4 changed files
with
106 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
// | ||
// Cards | ||
// | ||
|
||
.card.o-card { | ||
background-color: #000; | ||
border-color: #000; | ||
|
||
img { | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.card-block { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
min-height: 4.75rem; | ||
padding: .625rem .75rem; | ||
overflow: hidden; | ||
|
||
.card-title { | ||
margin-bottom: 0; | ||
line-height: 1; | ||
} | ||
} | ||
|
||
.card-block, | ||
.card-block .card-title, | ||
.card-block .card-title a { | ||
color: #fff; | ||
background-color: #000; | ||
} | ||
|
||
} | ||
|
||
@include media-breakpoint-up(xs) { | ||
.o-card.card { | ||
height: 8.875rem; | ||
|
||
.card-block { | ||
min-height: 3.75rem; | ||
|
||
.card-title { | ||
font-size: 1.125rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(sm) { | ||
.o-card.card { | ||
height: 12.1875rem; | ||
|
||
.card-block { | ||
min-height: 3.75rem; | ||
|
||
.card-title { | ||
font-size: 1.125rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
.o-card.card { | ||
height: 8.875rem; | ||
|
||
.card-block { | ||
min-height: 3.75rem; | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(lg) { | ||
.o-card.card { | ||
height: 12.1875rem; | ||
|
||
.card-block { | ||
min-height: 4.75rem; | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(xl) { | ||
.o-card.card { | ||
height: 13.4375rem; | ||
|
||
.card-block { | ||
min-height: 4.75rem; | ||
} | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(xxl) { | ||
.o-card.card { | ||
height: 15rem; | ||
|
||
.card-block { | ||
min-height: 4.75rem; | ||
} | ||
} | ||
} |
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