More actions
mNo edit summary |
mNo edit summary |
||
Line 39: | Line 39: | ||
width: 380px; | width: 380px; | ||
max-width: 100%; | max-width: 100%; | ||
margin-top: -4em; | |||
} | } | ||
Line 59: | Line 60: | ||
background-color: var(--color-progressive); | background-color: var(--color-progressive); | ||
border-radius: var(--border-radius-pill); | border-radius: var(--border-radius-pill); | ||
cursor: pointer; | cursor: pointer; | ||
display: flex; | display: flex; | ||
font-weight: var(--font-weight-medium); | font-weight: var(--font-weight-medium); | ||
gap: 0.5rem; | gap: 0.5rem; | ||
line-height: 1; | line-height: 1; | ||
padding: 1rem 2rem; | padding: 1rem 2rem; | ||
user-select: none; | user-select: none; | ||
Line 75: | Line 73: | ||
width: 1rem; | width: 1rem; | ||
height: 1rem; | height: 1rem; | ||
mask-image: url(/w/images/a/a5/CdxIconSearch.svg); | mask-image: url(https://tolkiengateway.net/w/images/a/a5/CdxIconSearch.svg); | ||
mask-size: contain; | mask-size: contain; | ||
background-color: currentColor; | background-color: currentColor; | ||
Line 93: | Line 91: | ||
background-color: var(--color-inverted-progressive); | background-color: var(--color-inverted-progressive); | ||
color: var(--color-progressive); | color: var(--color-progressive); | ||
border-radius: var(--border-radius- | border-radius: var(--border-radius-pill); | ||
line-height: 1; | line-height: 1; | ||
align-items: center; | align-items: center; |
Revision as of 00:21, 27 December 2024
.main-page-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 */ } .main-page-header::before { content: ''; position: absolute; inset: 0; background-image: url(https://credoth-spaces.nyc3.digitaloceanspaces.com/wiki/Ouroboros_Pin_no_bars_or_pin_SVG.svg); background-repeat: no-repeat; background-position: center; background-size: contain; opacity: 0.1; pointer-events: none; animation: spin 60s infinite linear; } .main-page-content { align-items: center; display: flex; flex-direction: column; text-align: center; pointer-events: auto; /* Reset pointer-events: none from header */ } .main-page-header-center { position: relative; } .main-page-header-logo { position: relative; width: 380px; max-width: 100%; margin-top: -4em; } .main-page-header-logo img { width: 100%; height: 100%; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .main-page-header-search { align-items: center; background-color: var(--color-progressive); border-radius: var(--border-radius-pill); cursor: pointer; display: flex; font-weight: var(--font-weight-medium); gap: 0.5rem; line-height: 1; padding: 1rem 2rem; user-select: none; } .main-page-header-search:before { content: ''; width: 1rem; height: 1rem; mask-image: url(https://tolkiengateway.net/w/images/a/a5/CdxIconSearch.svg); mask-size: contain; background-color: currentColor; display: block; } /* Keyboard hint */ @media (hover: hover) { .main-page-header-search:after { content: '/'; margin-top: -2px; margin-bottom: -2px; margin-left: 2px; width: 18px; height: 18px; display: flex; background-color: var(--color-inverted-progressive); color: var(--color-progressive); border-radius: var(--border-radius-pill); line-height: 1; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; opacity: 0.6; } } .main-page-header-search:hover { background-color: var(--color-progressive--hover); } .main-page-header-search:active { background-color: var(--color-progressive--active); }