MusicTopus/sass/list.scss

64 lines
1.4 KiB
SCSS
Raw Normal View History

2022-02-23 08:41:30 +01:00
.list {
margin: 2rem 0;
2022-02-23 08:41:30 +01:00
.item{
padding: 0.5rem 0.75rem;
border-bottom: 2px solid var(--border-color);
background-color: var(--bg-alternate-color);
@include transition() {}
2022-02-23 08:41:30 +01:00
@include respond-to("medium") {
&:nth-child(2n) {
background-color: var(--default-color);
2022-02-23 08:41:30 +01:00
}
border: none;
2022-02-23 08:41:30 +01:00
}
2022-02-23 08:41:30 +01:00
@include respond-to("medium-up") {
border-left: 2px solid var(--border-color);
&:nth-child(4n),
&:nth-child(4n-1)
{
background-color: var(--default-color);
}
2022-02-23 08:41:30 +01:00
&:nth-child(4n),
&:nth-child(4n-1)
{
background-color: var(--default-color);
}
2022-02-23 08:41:30 +01:00
&:first-child,
&:nth-child(2) {
border-top: 2px solid var(--border-color);
2022-02-23 08:41:30 +01:00
}
&:nth-child(2n),
&:last-child {
border-right: 2px solid var(--border-color);
margin-right: -2px;
}
2022-02-23 08:41:30 +01:00
}
.title {
font-weight: 800;
font-size: 1.4rem;
}
.grid {
margin-top: 0.75rem;
}
img {
border: 2px solid var(--font-color);
2022-02-23 08:41:30 +01:00
max-width: 90%;
}
}
&.hover {
.item:hover {
background-color: var(--border-color);
}
}
2022-02-23 08:41:30 +01:00
}