159 lines
2.7 KiB
SCSS
159 lines
2.7 KiB
SCSS
// Base
|
|
ul.entity-list {
|
|
margin-top: 1em;
|
|
|
|
.entity-header{
|
|
font-size: 1.2em;
|
|
font-weight: 500;
|
|
border-bottom: solid var(--line-width) var(--accent);
|
|
}
|
|
|
|
.entity-item {
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--black);
|
|
|
|
.cover {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: var(--gray-2);
|
|
}
|
|
|
|
.body {
|
|
.title {
|
|
font-weight: 500;
|
|
}
|
|
.subtitle {
|
|
font-size: .8em;
|
|
&:empty:before {
|
|
content: "\200b";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Column mode
|
|
.entity-list.column {
|
|
.entity-item{
|
|
margin-bottom: 1em;
|
|
.entity-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
a {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
padding: 1em 1em;
|
|
|
|
flex-grow: 2;
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cover {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
|
|
.widget {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-right: 1em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Grid mode
|
|
.entity-list.grid {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
|
|
.entity-item {
|
|
padding-bottom: .75em;
|
|
a {
|
|
.cover {
|
|
width: 250px;
|
|
height: 250px;
|
|
}
|
|
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.title, .subtitle {
|
|
max-width: 250px;
|
|
width: max-content;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Highligth Column
|
|
.entity-list.column{
|
|
.entity-item {
|
|
border-bottom: solid var(--line-width) var(--gray-1);
|
|
transition: background-color 300ms ease-in;
|
|
|
|
&:after{
|
|
display: block;
|
|
content: '';
|
|
border-bottom: solid var(--line-width) var(--accent);
|
|
transition: width 300ms ease-in;
|
|
width: 0;
|
|
}
|
|
|
|
&:hover, &.selected{
|
|
&:after{
|
|
width: 100%;
|
|
}
|
|
background-color: var(--gray-1);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Highligth Grid
|
|
.entity-list.grid{
|
|
.entity-item {
|
|
.body{
|
|
.title:after, .subtitle:after {
|
|
display: block;
|
|
content: '';
|
|
border-bottom: solid var(--line-width) var(--accent);
|
|
transition: width 300ms ease-in;
|
|
width: 0;
|
|
margin-top: -5px;
|
|
}
|
|
}
|
|
|
|
.cover {
|
|
outline: none;
|
|
transition: all 300ms ease-in-out;
|
|
}
|
|
|
|
&:hover, &.selected {
|
|
.cover {
|
|
outline: 6px var(--accent) solid;
|
|
outline-offset: -6px;
|
|
}
|
|
.body{
|
|
.title:after, .subtitle:after {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|