add news article list components
This commit is contained in:
36
web/src/components/news/newsItem.module.scss
Normal file
36
web/src/components/news/newsItem.module.scss
Normal file
@ -0,0 +1,36 @@
|
||||
.newsItem {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
padding-top: 60%;
|
||||
background: var(--color-placeholder);
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
padding: .8rem 0 2rem;
|
||||
}
|
||||
|
||||
.date {
|
||||
font-family: var(--font-serif);
|
||||
font-size: var(--font-size-caption);
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: .4rem 0 .6rem;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: var(--font-size-caption);
|
||||
}
|
Reference in New Issue
Block a user