Entitylist remplaza covers por responsive-image

This commit is contained in:
Daniel Cortes
2020-06-19 05:30:53 -04:00
parent 43ff3d3f09
commit 318d5f2368
2 changed files with 4 additions and 22 deletions

View File

@@ -32,11 +32,7 @@ const EntityItem = (props) => {
<li className={'entity-item ' + (item.selected ? 'selected' : '')} id={item.id}> <li className={'entity-item ' + (item.selected ? 'selected' : '')} id={item.id}>
<div class="entity-container"> <div class="entity-container">
<Link to={item.link}> <Link to={item.link}>
{item.cover && {item.cover && item.cover}
<div className='cover'>
{item.cover}
</div>
}
<div className='body'> <div className='body'>
<span class='title'>{item.title}</span> <span class='title'>{item.title}</span>
<span className='subtitle'>{item.subtitle}</span> <span className='subtitle'>{item.subtitle}</span>

View File

@@ -13,12 +13,6 @@ ul.entity-list {
text-decoration: none; text-decoration: none;
color: var(--black); color: var(--black);
.cover {
width: 200px;
height: 200px;
background-color: var(--gray-2);
}
.body { .body {
.title { .title {
font-weight: 500; font-weight: 500;
@@ -53,10 +47,7 @@ ul.entity-list {
.body { .body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} margin-left: 1em;
.cover {
margin-right: 1em;
} }
} }
@@ -79,11 +70,6 @@ ul.entity-list {
.entity-item { .entity-item {
padding-bottom: .75em; padding-bottom: .75em;
a { a {
.cover {
width: 250px;
height: 250px;
}
.body { .body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -138,13 +124,13 @@ ul.entity-list {
} }
} }
.cover { .responsive-image {
outline: none; outline: none;
transition: all 300ms ease-in-out; transition: all 300ms ease-in-out;
} }
&:hover, &.selected { &:hover, &.selected {
.cover { .responsive-image {
outline: 6px var(--accent) solid; outline: 6px var(--accent) solid;
outline-offset: -6px; outline-offset: -6px;
} }