Files
feishin/src/renderer/components/item-list/item-table-list/album-group-header.module.css
T

86 lines
1.6 KiB
CSS

.container {
display: flex;
gap: var(--theme-spacing-sm);
align-items: flex-start;
width: 100%;
height: 100%;
padding: 0 var(--theme-spacing-xs);
}
.image-container {
position: relative;
box-sizing: border-box;
flex-shrink: 0;
height: 100%;
aspect-ratio: 1;
padding-top: calc(var(--theme-spacing-xs) * 0.5);
overflow: hidden;
border-radius: var(--theme-radius-md);
&::before {
position: absolute;
top: 0;
left: 0;
z-index: 5;
width: 100%;
height: 100%;
pointer-events: none;
content: '';
background-color: rgb(0 0 0);
opacity: 0;
transition: all 0.2s ease-in-out;
}
&:hover::before {
@mixin dark {
opacity: 0.7;
}
@mixin light {
opacity: 0.5;
}
}
}
.info {
display: grid;
grid-template-rows: auto auto auto;
gap: 0;
align-content: start;
min-width: 0;
padding: 0;
padding-top: calc(var(--theme-spacing-xs) * 0.5);
}
.info.enlarged-image {
padding-top: var(--theme-spacing-xs);
}
.album-name {
font-size: var(--theme-font-size-sm);
line-height: 1.25;
overflow-wrap: anywhere;
}
.album-name a {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.artist-name {
font-size: var(--theme-font-size-xs);
line-height: 1.25;
overflow-wrap: anywhere;
opacity: 0.7;
}
.controls-row {
flex-shrink: 0;
min-height: 22px;
margin-top: var(--theme-spacing-xxs);
}