99 lines
1.2 KiB
CSS
99 lines
1.2 KiB
CSS
main {
|
|
padding: 0;
|
|
}
|
|
|
|
.articles {
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
.article {
|
|
display: block;
|
|
box-shadow: 0 1px 3px 1px #ddd;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: black !important;
|
|
}
|
|
|
|
.article:hover {
|
|
box-shadow: 0 1px 4px 2px #bcbcbc;
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.article {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) and (max-width: 990px) {
|
|
.article {
|
|
width: 50%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 990px) and (max-width: 1023px) {
|
|
.article {
|
|
width: 33%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1024px) and (max-width: 1279px) {
|
|
.article {
|
|
width: 25%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1280px) {
|
|
.article {
|
|
width: 20%;
|
|
}
|
|
}
|
|
|
|
.article .container {
|
|
height: 100%;
|
|
padding: 2em;
|
|
}
|
|
|
|
.image {
|
|
height: 35%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.article .title {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
margin-top: .4em;
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
|
|
a:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.description {
|
|
color: rgba(0, 0, 0, 0.7);
|
|
font-size: .9em;
|
|
}
|
|
|
|
.published-date {
|
|
font-size: .8em;
|
|
color: rgba(0, 0, 0, 0.4);
|
|
margin: .5em 0 2em 0;
|
|
text-align: center;
|
|
}
|
|
|
|
h3 {
|
|
margin: 40px 0 0;
|
|
}
|
|
|