Personal_Website/assets/sass/_list.scss
2022-06-11 19:07:54 +02:00

84 lines
1.9 KiB
SCSS

$list-item-image-size: 32px;
.list {
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
h3 {}
.view-all {
display: flex;
flex-direction: column;
justify-content: center;
a {
text-decoration: none;
&:after {
content: "»";
}
}
}
}
.list-items-container {
ul.list-items {
list-style: none;
padding: 0;
li.list-item {
display: flex;
background-color: rgba(white, 0.05);
transition: transform 150ms ease-in;
border-radius: 16px;
padding: 8px;
user-select: none;
&:not(:last-child) {
margin-bottom: 1rem;
}
&[data-href] {
cursor: pointer;
&:hover {
transform: translateX(2rem);
@media (max-width: $xl) {
transform: translateX(1rem);
}
@media (max-width: $lg) {
transform: translateX(0.5rem);
}
}
}
.list-item-image {
max-width: $list-item-image-size;
max-height: $list-item-image-size;
margin-right: 1rem;
}
.list-item-text {
h4.list-item-title {
line-height: $list-item-image-size;
font-size: 1.2rem;
margin: 0;
}
span.list-item-date {
display: block
}
}
}
}
}
}