Skip to content

Commit

Permalink
feat(cards): add horizontal variation
Browse files Browse the repository at this point in the history
Added horizontal card variation

Reported #6534
  • Loading branch information
Sean Hamilton committed Aug 16, 2018
1 parent ec2d6d4 commit 60f10d5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/definitions/views/card.less
Expand Up @@ -420,6 +420,40 @@
Variations
*******************************/

/*-------------------
Horizontal
--------------------*/

.ui.horizontal.cards > .card,
.ui.card.horizontal {
flex-direction: row;
min-width: 400px;
width: 500;
}

.ui.horizontal.cards > .card > .image,
.ui.card.horizontal > .image {
border-radius: 0;
width: 150px;
}

.ui.horizontal.cards > .card > .image > img,
.ui.card.horizontal > .image > img {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
justify-content: center;
align-items: center;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
width: 100%;
height: 100%;
border-radius: 0;
}

/*-------------------
Raised
--------------------*/
Expand All @@ -439,6 +473,7 @@ a.ui.raised.card:hover,
.ui.raised.card {
box-shadow: @raisedShadow;
}

/*-------------------
Centered
--------------------*/
Expand Down

0 comments on commit 60f10d5

Please sign in to comment.