More actions
mNo edit summary |
mNo edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.main-page-header { | .main-page-header { | ||
position: relative; | position: relative; | ||
margin-top: - | margin-top: -4rem; | ||
margin-bottom: -4rem; | margin-bottom: -4rem; | ||
padding-top: | padding-top: 5rem; | ||
padding-bottom: | padding-bottom: 5rem; | ||
clear: both; | clear: both; | ||
overflow: hidden; /* Prevent circular inscription from affecting element size */ | overflow: hidden; /* Prevent circular inscription from affecting element size */ | ||
Line 19: | Line 19: | ||
background-size: contain; | background-size: contain; | ||
opacity: 0.1; | opacity: 0.1; | ||
pointer-events: none; | pointer-events: none; | ||
animation: spin 60s infinite linear; | animation: spin 60s infinite linear; | ||
Line 32: | Line 31: | ||
} | } | ||
.main-page-header-center { | |||
position: relative; | |||
} | |||
.main-page-header-logo { | .main-page-header-logo { | ||
position: relative; | position: relative; | ||
width: 230px; | |||
width: | |||
max-width: 100%; | max-width: 100%; | ||
margin-top: -2em; | |||
} | } | ||
Line 56: | Line 57: | ||
.main-page-header-search { | .main-page-header-search { | ||
align-items: center; | |||
background-color: hsl(var(--color-primary__h),var(--color-primary__s),30%); | |||
border-radius: var(--border-radius-pill); | |||
cursor: pointer; | |||
display: flex; | |||
font-weight: var(--font-weight-bold); | |||
gap: 0.5rem; | |||
line-height: 1; | |||
padding: 0.5rem 1rem; | |||
user-select: none; | |||
position: absolute; | |||
float: left; | |||
left: 27.5%; | |||
top: 62%; | |||
font-size: 0.85rem; | |||
} | } | ||
Line 75: | Line 78: | ||
width: 1rem; | width: 1rem; | ||
height: 1rem; | height: 1rem; | ||
mask-image: url(/ | mask-image: url(https://credoth-spaces.nyc3.digitaloceanspaces.com/wiki/CdxIconSearch.svg); | ||
mask-size: contain; | mask-size: contain; | ||
background-color: currentColor; | background-color: currentColor; | ||
display: block; | display: block; | ||
} | } | ||
.main-page-header-search:hover { | .main-page-header-search:hover { | ||
background-color: var(--color-progressive-- | background-color: var(--color-progressive--active); | ||
} | } | ||
.main-page-header-search:active { | .main-page-header-search:active { | ||
background-color: var(--color-progressive | background-color: var(--color-progressive); | ||
} | } |
Latest revision as of 13:28, 27 December 2024
.main-page-header { position: relative; margin-top: -4rem; margin-bottom: -4rem; padding-top: 5rem; padding-bottom: 5rem; 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: 230px; max-width: 100%; margin-top: -2em; } .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: hsl(var(--color-primary__h),var(--color-primary__s),30%); border-radius: var(--border-radius-pill); cursor: pointer; display: flex; font-weight: var(--font-weight-bold); gap: 0.5rem; line-height: 1; padding: 0.5rem 1rem; user-select: none; position: absolute; float: left; left: 27.5%; top: 62%; font-size: 0.85rem; } .main-page-header-search:before { content: ''; width: 1rem; height: 1rem; mask-image: url(https://credoth-spaces.nyc3.digitaloceanspaces.com/wiki/CdxIconSearch.svg); mask-size: contain; background-color: currentColor; display: block; } .main-page-header-search:hover { background-color: var(--color-progressive--active); } .main-page-header-search:active { background-color: var(--color-progressive); }