entity -> entity-item

This commit is contained in:
Daniel Cortes
2020-06-15 20:54:44 -04:00
parent 34b84963f6
commit e05f738327
2 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ import "./EntityList.scss"
const EntityItem = (props) => { const EntityItem = (props) => {
return ( return (
<li className='entity'> <li className='entity-item'>
<Link to={props.link}> <Link to={props.link}>
{props.cover && {props.cover &&
<div className='cover'> <div className='cover'>
@@ -26,7 +26,7 @@ export const EntityList = (props) => {
const className = props.grid ? "grid" : "column"; const className = props.grid ? "grid" : "column";
return ( return (
<ul className={'entity_list ' + className}> <ul className={'entity-list ' + className}>
{entities} {entities}
</ul> </ul>
) )

View File

@@ -1,6 +1,6 @@
// Base // Base
.entity_list { .entity-list {
.entity { .entity-item {
a { a {
text-decoration: none; text-decoration: none;
color: var(--black); color: var(--black);
@@ -28,11 +28,11 @@
} }
// Column mode // Column mode
.entity_list.column { .entity-list.column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.entity a { .entity-item a {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@@ -45,7 +45,7 @@
} }
// Grid mode // Grid mode
.entity_list.grid { .entity-list.grid {
$grid-width: 250px; $grid-width: 250px;
$grid-height: 275px; $grid-height: 275px;
$grid-gap: 20px; $grid-gap: 20px;
@@ -67,7 +67,7 @@
justify-content: space-between; justify-content: space-between;
} }
.entity { .entity-item {
a { a {
.cover { .cover {
width: 250px; width: 250px;
@@ -92,8 +92,8 @@
} }
// Highligth Column // Highligth Column
.entity_list.column{ .entity-list.column{
.entity { .entity-item {
border-bottom: solid var(--line-width) var(--gray-1); border-bottom: solid var(--line-width) var(--gray-1);
transition: background-color 300ms ease-in; transition: background-color 300ms ease-in;
@@ -115,8 +115,8 @@
} }
// Highligth Grid // Highligth Grid
.entity_list.grid{ .entity-list.grid{
.entity { .entity-item {
.body .title:after { .body .title:after {
display: block; display: block;
content: ''; content: '';