Template:Homepage/header/styles.css: Difference between revisions
Template page
More actions
>MangoFVTT No edit summary |
Admin-erik (talk | contribs) No edit summary |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 14: | Line 14: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background-image: url(/ | background-image: url(https://ygdren.net/img_auth.php/b/bb/Header_Circular.svg); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center; | background-position: center; | ||
| Line 42: | Line 42: | ||
width: 50%; | width: 50%; | ||
height: 100%; | height: 100%; | ||
background-image: url(/w/images/b/bf/The_Fellowship_of_the_Ring_silhouette.svg); | /*background-image: url(/w/images/b/bf/The_Fellowship_of_the_Ring_silhouette.svg);*/ | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: bottom center; | background-position: bottom center; | ||
| Line 53: | Line 53: | ||
position: relative; | position: relative; | ||
margin-top: 2.5rem; | margin-top: 2.5rem; | ||
width: | width: 500px; | ||
max-width: 100%; | max-width: 100%; | ||
padding-top: 0.75rem; | padding-top: 0.75rem; | ||
| Line 65: | Line 65: | ||
.ygdren-homepage-header-tagline { | .ygdren-homepage-header-tagline { | ||
margin-top: | margin-top: 0.25rem; | ||
color: var(--ygdren-color-subtle); | color: var(--ygdren-color-subtle); | ||
font-size: var(--ygdren-font-size-small); | font-size: var(--ygdren-font-size-small); | ||
| Line 91: | Line 91: | ||
width: 1rem; | width: 1rem; | ||
height: 1rem; | height: 1rem; | ||
mask-image: url(/ | mask-image: url(https://ygdren.net/img_auth.php/1/16/Fa-magnifying-glass.svg); | ||
mask-size: contain; | mask-size: contain; | ||
background-color: currentColor; | background-color: currentColor; | ||
Latest revision as of 21:12, 9 October 2026
.ygdren-homepage-header {
position: relative;
margin-top: -2rem;
margin-bottom: -4rem;
padding-top: 6rem;
padding-bottom: 6rem;
clear: both;
overflow: hidden; /* Prevent circular inscription from affecting element size */
pointer-events: none; /* So that you can click elements overlap with the header */
}
.ygdren-homepage-header::before {
content: '';
position: absolute;
inset: 0;
background-image: url(https://ygdren.net/img_auth.php/b/bb/Header_Circular.svg);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
opacity: 0.1;
filter: var(--filter-invert);
pointer-events: none;
animation: spin 60s infinite linear;
}
.ygdren-homepage-content {
align-items: center;
display: flex;
flex-direction: column;
text-align: center;
pointer-events: auto; /* Reset pointer-events: none from header */
}
/* Fellowship background */
.ygdren-homepage-header-wordmark::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: -100%;
margin: 0 auto;
width: 50%;
height: 100%;
/*background-image: url(/w/images/b/bf/The_Fellowship_of_the_Ring_silhouette.svg);*/
background-repeat: no-repeat;
background-position: bottom center;
opacity: 0.2;
filter: var(--filter-invert);
}
/* Temp styles until we have wordmark */
.ygdren-homepage-header-wordmark {
position: relative;
margin-top: 2.5rem;
width: 500px;
max-width: 100%;
padding-top: 0.75rem;
}
.ygdren-homepage-header-wordmark img {
width: 100%;
height: 100%;
filter: var(--filter-invert);
}
.ygdren-homepage-header-tagline {
margin-top: 0.25rem;
color: var(--ygdren-color-subtle);
font-size: var(--ygdren-font-size-small);
line-height: var(--ygdren-line-height-xx-small);
}
.ygdren-homepage-header-search {
align-items: center;
background-color: var(--ygdren-color-progressive);
border-radius: var(--ygdren-border-radius-pill);
color: var(--ygdren-color-inverted);
cursor: pointer;
display: flex;
font-size: 0.875rem;
font-weight: var(--font-weight-medium);
gap: 0.5rem;
line-height: 1;
margin-top: 1rem;
padding: 1rem 2rem;
user-select: none;
}
.ygdren-homepage-header-search:before {
content: '';
width: 1rem;
height: 1rem;
mask-image: url(https://ygdren.net/img_auth.php/1/16/Fa-magnifying-glass.svg);
mask-size: contain;
background-color: currentColor;
display: block;
}
/* Keyboard hint */
@media (hover: hover) {
.ygdren-homepage-header-search:after {
content: '/';
margin-top: -2px;
margin-bottom: -2px;
margin-left: 2px;
width: 18px;
height: 18px;
display: flex;
background-color: var(--ygdren-color-inverted);
color: var(--ygdren-color-progressive);
border-radius: var(--ygdren-border-radius-small);
line-height: 1;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 900;
opacity: 0.6;
}
}
.ygdren-homepage-header-search:hover {
background-color: var(--ygdren-color-progressive--hover);
}
.ygdren-homepage-header-search:active {
background-color: var(--ygdren-color-progressive--active);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}