Files
dialog-relations-website/packages/base/Resources/Public/Scss/components/_news.scss

114 lines
2.0 KiB
SCSS

.news-list-view {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 1rem;
grid-auto-rows: auto;
.news-list-item {
grid-column: span 6;
max-width: 100%;
}
// @media (min-width: $breakpoint-md) {
// .news-list-item {
// grid-column: span 2;
// }
// }
@media (min-width: $breakpoint-lg) {
.news-list-item {
grid-column: span 2;
&:first-of-type {
grid-column: 1 / span 4;
grid-row: span 2;
}
&:nth-of-type(2) {
grid-column: 5 / span 2;
grid-row: 1;
}
&:nth-of-type(3) {
grid-column: 5 / span 2;
grid-row: 2;
}
}
}
.f3-widget-paginator {
display: flex;
justify-content: center;
align-items: center;
list-style: none;
margin: 2rem 0;
padding: 0;
grid-column: span 6;
li {
margin: 0 0.5rem;
&.dots span {
background: none;
color: $primary-color;
}
&.current a {
background: lighten($primary-color, 20%);
color: $secondary-color;
}
a {
display: inline-block;
width: 2.5rem;
height: 2.5rem;
line-height: 2.5rem;
text-align: center;
border-radius: 50%;
background: $primary-color;
color: $secondary-color;
font-weight: bold;
text-decoration: none;
transition: background 0.3s ease-in-out;
&:hover {
background: lighten($primary-color, 10%);
}
}
}
.previous a, .next a, .first a, .last a {
// these are also styled as circles
}
}
}
.news-list-item {
.readmore {
font-weight: 700;
}
img {
width: 100%;
height: auto;
}
a {
display: flex;
flex-direction: column;
.body {
position: relative;
padding: .5rem;
}
time {
padding-left: .6rem;
color: var(--bs-gray-900);
}
.readmore {
color: var(--bs-primary);
}
}
}