Menü aufrufen
Toggle preferences menu
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Vorlage:Main page/header/styles.css: Unterschied zwischen den Versionen

Aus Onos Wiki
Die Seite wurde neu angelegt: „.tg-mainpage-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: } .tg-mainpage-header::before { content: ''; position: absolute; inset: 0; background-image: url(/images/1/1d/Magiccircle.svg); background-repea…“
 
Add TemplateStyles for main page header
Zeile 1: Zeile 1:
.tg-mainpage-header {
.onos-mainpage-header {
position: relative;
  position: relative;
margin-top: -2rem;
  overflow: hidden;
margin-bottom: -4rem;
  border-radius: 18px;
padding-top: 6rem;
  padding: 2rem;
padding-bottom: 6rem;
  margin: 1rem 0 1.5rem;
clear: both;
  background: linear-gradient(135deg, #111827 0%, #1e293b 55%, #312e81 100%);
overflow: hidden; /* Prevent circular inscription from affecting element size */
  color: #f8fafc;
pointer-events: none; /* So that you can click elements overlap with the header */
}
}


.tg-mainpage-header::before {
.onos-mainpage-header a {
content: '';
  color: inherit;
position: absolute;
  text-decoration: none;
inset: 0;
background-image: url(/images/1/1d/Magiccircle.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;
}
}


.tg-mainpage-content {
.onos-mainpage-header__bg {
align-items: center;
  position: absolute;
display: flex;
  inset: 0;
flex-direction: column;
  opacity: 0.12;
text-align: center;
  pointer-events: none;
pointer-events: auto; /* Reset pointer-events: none from header */
}
}


/* Fellowship background */
.onos-mainpage-header__sigil {
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 24rem;
  transform: rotate(12deg);
}


/* Temp styles until we have wordmark */
.onos-mainpage-header__inner {
.tg-mainpage-header-wordmark {
  position: relative;
position: relative;
  display: flex;
margin-top: 2.5rem;
  gap: 1.5rem;
width: 420px;
  align-items: center;
max-width: 100%;
  z-index: 1;
padding-top: 0.75rem;
}
}


.tg-mainpage-header-wordmark img {
.onos-mainpage-header__logo-image {
width: 100%;
  width: 160px;
height: 100%;
  height: auto;
filter: var(--filter-invert);
}
}


.tg-mainpage-header-tagline {
.onos-mainpage-header__eyebrow {
margin-top: -0.25rem;
  text-transform: uppercase;
color: var(--tg-color-subtle);
  letter-spacing: 0.08em;
font-size: var(--tg-font-size-small);
  font-size: 0.82rem;
line-height: var(--tg-line-height-xx-small);
  opacity: 0.8;
  margin-bottom: 0.35rem;
}
}


.tg-mainpage-header-search {
.onos-mainpage-header__title {
align-items: center;
  margin: 0;
background-color: var(--tg-color-progressive);
  font-size: 2.5rem;
border-radius: var(--tg-border-radius-pill);
  line-height: 1.05;
color: var(--tg-color-inverted-progressive);
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;
}
}


.tg-mainpage-header-search:before {
.onos-mainpage-header__subtitle {
content: '';
  max-width: 42rem;
width: 1rem;
  margin: 0.7rem 0 1rem;
height: 1rem;
  font-size: 1rem;
mask-image: url(/images/a/a5/CdxIconSearch.svg);
  line-height: 1.55;
mask-size: contain;
  opacity: 0.95;
background-color: currentColor;
display: block;
}
}


/* Keyboard hint */
.onos-mainpage-header__actions {
@media (hover: hover) {
  display: flex;
.tg-mainpage-header-search:after {
  gap: 0.75rem;
content: '/';
  flex-wrap: wrap;
margin-top: -2px;
margin-bottom: -2px;
margin-left: 2px;
width: 18px;
height: 18px;
display: flex;
background-color: var(--tg-color-inverted-progressive);
color: var(--tg-color-progressive);
border-radius: var(--tg-border-radius-small);
line-height: 1;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 900;
opacity: 0.6;
}
}
}


.tg-mainpage-header-search:hover {
.onos-mainpage-button {
background-color: var(--tg-color-progressive--hover);
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
}
}


.tg-mainpage-header-search:active {
.onos-mainpage-button--primary {
background-color: var(--tg-color-progressive--active);
  background: #f8fafc;
  color: #111827;
}
}


@keyframes spin {
@media (max-width: 720px) {
from {
  .onos-mainpage-header__inner {
transform: rotate(0deg);
    flex-direction: column;
}
    align-items: flex-start;
to {
  }
transform: rotate(360deg);
 
}
  .onos-mainpage-header__logo-image {
    width: 120px;
  }
}
}

Version vom 24. April 2026, 21:03 Uhr

.onos-mainpage-header {

 position: relative;
 overflow: hidden;
 border-radius: 18px;
 padding: 2rem;
 margin: 1rem 0 1.5rem;
 background: linear-gradient(135deg, #111827 0%, #1e293b 55%, #312e81 100%);
 color: #f8fafc;

}

.onos-mainpage-header a {

 color: inherit;
 text-decoration: none;

}

.onos-mainpage-header__bg {

 position: absolute;
 inset: 0;
 opacity: 0.12;
 pointer-events: none;

}

.onos-mainpage-header__sigil {

 position: absolute;
 right: -4rem;
 top: -5rem;
 width: 24rem;
 transform: rotate(12deg);

}

.onos-mainpage-header__inner {

 position: relative;
 display: flex;
 gap: 1.5rem;
 align-items: center;
 z-index: 1;

}

.onos-mainpage-header__logo-image {

 width: 160px;
 height: auto;

}

.onos-mainpage-header__eyebrow {

 text-transform: uppercase;
 letter-spacing: 0.08em;
 font-size: 0.82rem;
 opacity: 0.8;
 margin-bottom: 0.35rem;

}

.onos-mainpage-header__title {

 margin: 0;
 font-size: 2.5rem;
 line-height: 1.05;

}

.onos-mainpage-header__subtitle {

 max-width: 42rem;
 margin: 0.7rem 0 1rem;
 font-size: 1rem;
 line-height: 1.55;
 opacity: 0.95;

}

.onos-mainpage-header__actions {

 display: flex;
 gap: 0.75rem;
 flex-wrap: wrap;

}

.onos-mainpage-button {

 display: inline-block;
 padding: 0.7rem 1rem;
 border-radius: 999px;
 background: rgba(255,255,255,0.12);
 border: 1px solid rgba(255,255,255,0.18);
 font-weight: 600;

}

.onos-mainpage-button--primary {

 background: #f8fafc;
 color: #111827;

}

@media (max-width: 720px) {

 .onos-mainpage-header__inner {
   flex-direction: column;
   align-items: flex-start;
 }
 .onos-mainpage-header__logo-image {
   width: 120px;
 }

}