Template:MainPage.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (43 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
#mainpage a { | #mainpage a { | ||
color: | color: var(--color-link); | ||
} | } | ||
.news-headlines, .news-status, #mainpage-patch, #mainpage-pack { | #mainpage-event { | ||
border-radius: 1em; | |||
background-image: url(https://phialfantasy.wiki/images/f/fc/Asw_event.jpg); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-color: #3f337f; | |||
background-clip: content-box; | |||
position: relative; | |||
} | |||
#mainpage-event blockquote { | |||
color: #fcc79b; | |||
margin-left: 33em; | |||
margin-top: 1.2em; | |||
} | |||
.news-headlines, .news-status, #mainpage-patch, #mainpage-pack, #mainpage-event { | |||
border-color: var(--border-color-base); | border-color: var(--border-color-base); | ||
border-style: solid; | border-style: solid; | ||
| Line 63: | Line 81: | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
} | |||
#mainpage-search:hover{ | |||
background-color: var(--color-destructive--hover); | |||
} | |||
#mainpage-search:active { | |||
background-color: var(--color-destructive--active); | |||
} | } | ||
| Line 137: | Line 163: | ||
line-height: 1.2em; | line-height: 1.2em; | ||
align-self: flex-start; | align-self: flex-start; | ||
} | |||
#mainpage-patch, #mainpage-pack, #mainpage-event { | |||
box-shadow: 0 0 3px 1px var(--color-surface-4); | |||
} | } | ||
| Line 153: | Line 183: | ||
background-clip: padding-box; | background-clip: padding-box; | ||
position: relative; | |||
color: #2a0d00; | |||
} | } | ||
| Line 171: | Line 201: | ||
#mainpage-pack { | #mainpage-pack { | ||
grid-column: 1; | grid-column: 1; | ||
background-image: url(https://phialfantasy.wiki/images/3/3f/Dawntrail_bg.jpg | background-image: | ||
linear-gradient(transparent 60%, var(--color-surface-0)), | |||
linear-gradient(90deg, var(--color-surface-0) 5%, transparent 40%), | |||
url(https://phialfantasy.wiki/images/3/3f/Dawntrail_bg.jpg); | |||
background-size: cover; | background-size: cover; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-clip: content-box; | background-clip: content-box; | ||
| Line 186: | Line 217: | ||
} | } | ||
.pack-title { | .pack-title, .event-title { | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
| Line 192: | Line 223: | ||
.pack-content { | .pack-content { | ||
grid-column: | grid-column: 2 / 3; | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
| Line 201: | Line 232: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: end; | |||
margin-bottom: 1em; | |||
} | } | ||
.pack-content | .pack-content dl { | ||
margin: unset; | margin: unset; | ||
text-align: center; | text-align: center; | ||
| Line 210: | Line 243: | ||
.pack-content dt, .pack-features dt { | .pack-content dt, .pack-features dt { | ||
font-size: .9em; | font-size: .9em; | ||
} | |||
.pack-features { | |||
margin-left: 1em; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-around; | |||
grid-row: 1 / 3; | |||
} | |||
.pack-features dl { | |||
height: 100%; | |||
width: max-content; | |||
} | } | ||
| Line 216: | Line 262: | ||
} | } | ||
.pack-content dd{ | .pack-content dd, .pack-features dd { | ||
margin: unset; | margin: unset; | ||
font-size: 1.4em; | font-size: 1.4em; | ||
} | } | ||
.pack-img{ | .pack-img img{ | ||
height: auto; | |||
width: 100%; | |||
} | } | ||
Latest revision as of 09:49, 20 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;
position: absolute;
font-family: serif;
}
#mainpage a {
color: var(--color-link);
}
#mainpage-event {
border-radius: 1em;
background-image: url(https://phialfantasy.wiki/images/f/fc/Asw_event.jpg);
background-size: contain;
background-repeat: no-repeat;
background-color: #3f337f;
background-clip: content-box;
position: relative;
}
#mainpage-event blockquote {
color: #fcc79b;
margin-left: 33em;
margin-top: 1.2em;
}
.news-headlines, .news-status, #mainpage-patch, #mainpage-pack, #mainpage-event {
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;
margin-top: 1.5em;
}
.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;
font-family: serif;
gap: 1em;
}
#mainpage-search {
font-size: 1.2em;
border-radius: 2em;
padding-left: 4em;
padding-right: 4em;
color: var(--color-surface-0);
background-color: var(--color-destructive);
margin-bottom: 1em;
}
#mainpage-search:hover{
background-color: var(--color-destructive--hover);
}
#mainpage-search:active {
background-color: var(--color-destructive--active);
}
.patch-header {
display: flex;
flex-direction: column;
align-items: center;
width: 50%;
}
.patch-header img {
width: 100%;
height: auto;
}
.patch-current {
font-size: .9em;
}
#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 {
list-style: none;
font-size: .9em;
display: flex;
row-gap: .5em;
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
flex-wrap: wrap;
justify-content: space-between;
}
.news-headlines {
height: 100%;
}
.news-headlines > ul {
list-style: none;
margin-left: 0;
margin-right: 0;
margin-bottom: 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, #mainpage-pack, #mainpage-event {
box-shadow: 0 0 3px 1px var(--color-surface-4);
}
#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;
background-clip: padding-box;
position: relative;
color: #2a0d00;
}
.patch-title {
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;
background-image:
linear-gradient(transparent 60%, var(--color-surface-0)),
linear-gradient(90deg, var(--color-surface-0) 5%, transparent 40%),
url(https://phialfantasy.wiki/images/3/3f/Dawntrail_bg.jpg);
background-size: cover;
background-repeat: no-repeat;
background-clip: content-box;
border-radius: 1em;
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto auto;
}
.pack-title, .event-title {
left: 50%;
transform: translateX(-50%);
}
.pack-content {
grid-column: 2 / 3;
display: flex;
width: 100%;
justify-content: space-around;
}
.pack-content > div {
display: flex;
flex-direction: column;
justify-content: end;
margin-bottom: 1em;
}
.pack-content dl {
margin: unset;
text-align: center;
}
.pack-content dt, .pack-features dt {
font-size: .9em;
}
.pack-features {
margin-left: 1em;
display: flex;
flex-direction: column;
justify-content: space-around;
grid-row: 1 / 3;
}
.pack-features dl {
height: 100%;
width: max-content;
}
.pack-features dd {
margin: unset;
}
.pack-content dd, .pack-features dd {
margin: unset;
font-size: 1.4em;
}
.pack-img img{
height: auto;
width: 100%;
}
#mainpage-portals {
grid-column: 1;
}