Add hover effect on cards

This commit is contained in:
Rafael Conde 2017-04-28 13:25:34 -07:00 committed by Shawn Erquhart
parent de5f9bc708
commit 9c1a41f61d
2 changed files with 22 additions and 3 deletions

View File

@ -56,7 +56,6 @@ export default class EntryListing extends React.Component {
<p>{entry.getIn(['data', inferedFields.descriptionField])}</p>
: inferedFields.remainingFields && inferedFields.remainingFields.map(f => (
<p key={f.get('name')} className={styles.cardList}>
<span className={styles.cardListLabel}>{f.get('label')}:</span>{' '}
{ entry.getIn(['data', f.get('name')], '').toString() }
</p>
))

View File

@ -3,7 +3,14 @@
.card {
composes: base container rounded depth;
overflow: hidden;
border: 1px solid #F7F8F8;
border: 1px solid #f7f8f8;
transition: all .1s ease-in-out;
transform: translateY(0);
}
.card:hover {
background: #f8f9fa;
transform: translateY(-8px);
}
.card > *:not(iframe, video, img, header, footer) {
@ -26,9 +33,22 @@
}
.card h1 {
font-size: 16px;
font-weight: 500;
letter-spacing: 0;
line-height: 24px;
margin: 15px 0;
padding: 0;
border: none;
color: var(--defaultColor);
font-size: 18px;
}
.card p {
font-size: 14px;
font-weight: 400;
letter-spacing: 0;
line-height: 24px;
padding: 0;
color: var(--defaultColor);
opacity: .5;
}