Newer
Older
.contents-widget {
margin: 10px;
.content-items {
grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
grid-gap: 5px;
max-width: none;
width: 100%;
.content-item {
height: 100px;
.content-item-link {
padding: 5px;
grid-template-columns: 42px 135px;
.content-item-img-wrapper {
width: 32px;
}
.content-item-text {
.content-item-title {
margin-bottom: 5px;
}
.content-item-description {
font-size: small;
}
}
}
}
}
}
.content-items {
display: grid;
grid-template-columns: repeat(auto-fit, 270px);
grid-gap: 15px;
list-style: none;
padding: 0;
.content-item {
background-color: $dark-gray-color-5;
border: solid thin $light-gray-color-40;
height: 130px;
padding-bottom: 10px;
padding-top: 10px;
.content-item-link {
color: unset;
display: grid;
grid-template-columns: 74px auto;
grid-gap: 5px;
padding: 15px 10px 0 10px;
transition: 0.5s;
.content-item-img-wrapper {
width: 64px;
}
.content-item-text {
.content-item-title {
color: $base-color;
width: 100%;
max-width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&:hover {
background-color: $white;
color: unset;
.content-item-link {
.content-item-text {
.content-item-title {
color: $red;
}
}
}
}
}
}
@media (max-width: 820px) {
.content-items {
grid-template-columns: 100%;
.content-item {
.content-item-link {
.content-item-text {
.content-item-title {
max-width: 100%;
text-overflow: unset;
overflow: unset;
}
}
}
}