PCv5/app/static/css/homepage.css

100 lines
1.7 KiB
CSS

.home-pinned-content {
width: 90%;
display: grid;
grid-template-areas: 'banner news''welcome news''shout news''projects projects';
grid-template-rows: auto auto minmax(200px,1fr)auto;
grid-template-columns: 4fr 3fr;
}
.home-pinned-content > * {
margin: 10px 20px;
}
.home-pinned-content > * h1 {
font-size: 18px;
}
@media screen and (max-width:1449px) {
.home-pinned-content {
width: 97%;
}
}
@media screen and (max-width:1199px) {
.home-pinned-content {
width: 100%;
grid-template-areas: 'welcome''banner''news''shout''projects';
grid-template-rows: auto;
grid-template-columns: 1fr;
}
}
.home-banner {
grid-area: banner;
text-align: center;
}
.home-banner img {
max-width: 100%;
}
.home-welcome {
grid-area: welcome;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.home-welcome h1 {
width: 100%;
margin-bottom: 0;
}
.home-welcome ul {
padding-left: 20px;
}
.home-welcome div {
flex-grow: 1;
}
.home-welcome h2 {
margin: 5px 0;
}
.home-news {
grid-area: news;
}
.home-news ul {
padding: 0;
}
.home-news li {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
padding: 10px 0;
border-bottom: var(--hr-border);
}
.home-news li > a {
align-self: baseline;
}
.home-news li img {
max-width: 100px;
max-height: 100px;
margin-right: 8px;
}
.home-news li h3 {
margin: 0;
font-size: 16px;
font-weight: bold;
font-family: Cantarell;
}
.home-news li .date {
margin: 4px 0 10px 0;
}
.home-news li div {
font-size: 13px;
line-height: 150%;
}
@media screen and (max-width:499px) {
.home-news li {
flex-direction: column;
align-items: start;
}
}
.home-shoutbox {
grid-area: shout;
}
.home-projects {
grid-area: projects;
}