mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
- Add `cover_image_caption` (which uses figcaption under the hood) - Change event details from a list to a table (more semantic and looks better)
137 lines
2.0 KiB
CSS
137 lines
2.0 KiB
CSS
.events {
|
|
display: grid;
|
|
grid-template-columns: 360px 1fr;
|
|
row-gap: 3em;
|
|
}
|
|
|
|
.events .events-shortlist {
|
|
padding-right: 16px;
|
|
width: 320px;
|
|
}
|
|
|
|
.events .events-shortlist>div {
|
|
position: sticky;
|
|
top: 24px;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul li {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul li>a {
|
|
font-size: 110%;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul li span:first-child {
|
|
position: relative;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul li span:first-child:before {
|
|
content: "•";
|
|
position: absolute;
|
|
font-size: 120%;
|
|
left: -18px;
|
|
top: -4px;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul li span:last-child {
|
|
opacity: 0.64;
|
|
}
|
|
|
|
.events .events-fulllist .card {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.events .events-fulllist .card:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.events .events-fulllist .card h4 {
|
|
margin-top: 36px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.events .events-fulllist .card img {
|
|
border-radius: 4px;
|
|
margin-bottom: 8px;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
}
|
|
|
|
.events .events-fulllist .card figure img {
|
|
margin-bottom: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
.events .events-fulllist .events-empty {
|
|
background-color: var(--background-color);
|
|
border: none;
|
|
}
|
|
|
|
.events .events-fulllist .events-empty:hover {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.event-details {
|
|
border-spacing: 0.25em;
|
|
}
|
|
|
|
.event-details p {
|
|
display: inline;
|
|
}
|
|
|
|
.event-details p::after {
|
|
content: " ";
|
|
}
|
|
|
|
.event-details p:last-child::after {
|
|
content: "";
|
|
}
|
|
|
|
.event-details tr th {
|
|
text-align: left;
|
|
}
|
|
|
|
@media screen and (max-width: 900px) {
|
|
.events {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
row-gap: 2em;
|
|
}
|
|
|
|
.events .events-shortlist>div {
|
|
position: static;
|
|
}
|
|
|
|
.events .events-shortlist>div>ul {
|
|
padding-left: 2rem;
|
|
}
|
|
}
|
|
|
|
figure {
|
|
margin: 0;
|
|
border-radius: 4px;
|
|
background-color: var(--base-color);
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
figure figcaption {
|
|
padding: 1em;
|
|
opacity: 0.8;
|
|
font-size: 80%;
|
|
font-style: italic;
|
|
}
|
|
|
|
figure figcaption:empty {
|
|
display: none;
|
|
}
|
|
|
|
figure img {
|
|
display: block;
|
|
}
|