Template:MainPage.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
.box-title { | .box-title { | ||
background-color: var(--color-destructive); | background-color: var(--color-destructive); | ||
padding-left: .25em; | padding-left: .25em; | ||
padding-right: .25em; | padding-right: .25em; | ||
Revision as of 07:04, 18 October 2025
#mainpage {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: 1em;
column-gap: 1em;
}
.box-title {
background-color: var(--color-destructive);
padding-left: .25em;
padding-right: .25em;
color: var(--color-surface-0);
font-weight: bold;
font-size: .9em;
line-height: 1.5;
}
#mainpage a {
color: blue;
}
.news-headlines, .news-status, #mainpage-patch, #mainpage-pack {
border-color: var(--border-color-base);
border-style: solid;
border-width: 1px;
}
.news-headlines ul, .news-status ul {
padding-left: 0.25em;
padding-right: 0.25em;
}
.news-status {
border-top-right-radius: 1em;
}
.news-headlines {
border-bottom-right-radius: 1em;
}
#mainpage-header {
grid-column: 1;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.patch-header {
display: flex;
flex-direction: column;
align-items: center;
width: 50%;
}
.patch-header img {
width: 100%;
height: auto;
margin-left: -10px;
}
.patch-current {
font-size: .9em;
}
#mainpage-search {
width: 12em;
max-width: 12em;
background: red;
}
#mainpage-new {
display: grid;
grid-template-columns: 1fr 1fr 0.5fr;
column-gap: 1em;
}
#mainpage-news {
grid-column: 3 / 4;
display: flex;
flex-direction: column;
gap: .5em;
}
.news-status ul {
padding-top: .5em;
padding-left: .5em;
padding-right: 0.5em;
list-style: none;
font-size: .9em;
display: flex;
row-gap: .5em;
margin: 0;
flex-wrap: wrap;
justify-content: space-between;
}
.news-headlines {
height: 100%;
}
.news-headlines > ul {
list-style: none;
margin: 0;
display: flex;
flex-direction: column;
gap: 1em;
}
.news-headlines > ul > li {
list-style: none;
margin: 0;
font-size: .9em;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1.2em;
}
.news-headlines > ul > li > ul {
list-style: none;
margin: 0;
font-size: .9em;
line-height: 1.2em;
align-self: flex-start;
}
#mainpage-patch {
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
grid-column: 1 / 3;
background-color: #F8F4EB;
background-image: url(https://phialfantasy.wiki/images/1/1c/Promise_of_tomorrow_bg.jpg);
background-repeat: no-repeat;
background-size: auto 108%;
background-position: right -30px bottom -15px;
box-shadow: 0 0 3px 1px var(--color-surface-4);
position: relative;
}
.patch-title {
position: absolute;
right: 0;
}
#mainpage-patch-links {
display: flex;
flex-direction: column;
text-shadow: 0 0 3px rgb(248, 244, 235), 0 0 3px rgb(248, 244, 235), 0 0 3px rgb(248, 244, 235), 0 0 3px rgb(248, 244, 235);
}
#mainpage-pack {
grid-column: 1;
}
#mainpage-portals {
grid-column: 1;
}