PCv5/app/static/css/homepage.css

100 lines
1.7 KiB
CSS
Raw Normal View History

2023-06-20 22:34:06 +02:00
.home-pinned-content {
width: 90%;
2023-06-20 22:34:06 +02:00
display: grid;
2023-06-25 01:57:39 +02:00
grid-template-areas: 'banner news''welcome news''shout news''projects projects';
2023-06-27 23:28:32 +02:00
grid-template-rows: auto auto minmax(200px,1fr)auto;
grid-template-columns: 4fr 3fr;
2018-02-23 23:34:06 +01:00
}
2023-06-20 22:34:06 +02:00
.home-pinned-content > * {
margin: 10px 20px;
2023-06-27 23:28:32 +02:00
}
.home-pinned-content > * h1 {
font-size: 18px;
2018-02-23 23:34:06 +01:00
}
@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;
}
}
2023-06-20 22:34:06 +02:00
.home-banner {
2023-06-25 01:57:39 +02:00
grid-area: banner;
2023-06-27 23:28:32 +02:00
text-align: center;
2018-02-23 23:34:06 +01:00
}
.home-banner img {
max-width: 100%;
}
2023-06-20 22:34:06 +02:00
.home-welcome {
2023-06-25 01:57:39 +02:00
grid-area: welcome;
display: flex;
2023-06-20 22:34:06 +02:00
flex-direction: row;
2023-06-27 23:28:32 +02:00
flex-wrap: wrap;
justify-content: center;
2023-06-27 23:28:32 +02:00
}
.home-welcome h1 {
width: 100%;
margin-bottom: 0;
}
.home-welcome ul {
padding-left: 20px;
2018-02-23 23:34:06 +01:00
}
.home-welcome div {
flex-grow: 1;
}
.home-welcome h2 {
margin: 5px 0;
}
2023-06-20 22:34:06 +02:00
.home-news {
2023-06-25 01:57:39 +02:00
grid-area: news;
2018-02-23 23:34:06 +01:00
}
2023-06-27 23:28:32 +02:00
.home-news ul {
padding: 0;
}
.home-news li {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
padding: 10px 0;
2023-06-27 23:28:32 +02:00
border-bottom: var(--hr-border);
}
.home-news li > a {
align-self: baseline;
}
2023-06-27 23:28:32 +02:00
.home-news li img {
max-width: 100px;
max-height: 100px;
margin-right: 8px;
}
.home-news li h3 {
margin: 0;
2023-06-27 23:28:32 +02:00
font-size: 16px;
font-weight: bold;
font-family: Cantarell;
}
.home-news li .date {
margin: 4px 0 10px 0;
}
2023-06-27 23:28:32 +02:00
.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;
}
2023-06-27 23:28:32 +02:00
}
2023-06-20 22:34:06 +02:00
.home-shoutbox {
2023-06-25 01:57:39 +02:00
grid-area: shout;
2018-02-23 23:34:06 +01:00
}
2023-06-20 22:34:06 +02:00
.home-projects {
2023-06-25 01:57:39 +02:00
grid-area: projects;
}