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…“
 
Admin änderte das Inhaltsmodell der Seite Vorlage:Main page/header/styles.css von „Wikitext“ nach „Bereinigtes CSS“
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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: #1e293b;
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;
  top: 0;
flex-direction: column;
  right: 0;
text-align: center;
  bottom: 0;
pointer-events: auto; /* Reset pointer-events: none from header */
  left: 0;
  opacity: 0.12;
}
}


/* Fellowship background */
.onos-mainpage-header__sigil {
 
  position: absolute;
/* Temp styles until we have wordmark */
  right: -4rem;
.tg-mainpage-header-wordmark {
  top: -5rem;
position: relative;
  width: 24rem;
margin-top: 2.5rem;
width: 420px;
max-width: 100%;
padding-top: 0.75rem;
}
 
.tg-mainpage-header-wordmark img {
width: 100%;
height: 100%;
filter: var(--filter-invert);
}
}


.tg-mainpage-header-tagline {
.onos-mainpage-header__inner {
margin-top: -0.25rem;
  position: relative;
color: var(--tg-color-subtle);
font-size: var(--tg-font-size-small);
line-height: var(--tg-line-height-xx-small);
}
}


.tg-mainpage-header-search {
.onos-mainpage-header__logo-image {
align-items: center;
  width: 160px;
background-color: var(--tg-color-progressive);
  height: auto;
border-radius: var(--tg-border-radius-pill);
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__eyebrow {
content: '';
  text-transform: uppercase;
width: 1rem;
  letter-spacing: 0.08em;
height: 1rem;
  font-size: 0.82rem;
mask-image: url(/images/a/a5/CdxIconSearch.svg);
  opacity: 0.8;
mask-size: contain;
  margin-bottom: 0.35rem;
background-color: currentColor;
display: block;
}
}


/* Keyboard hint */
.onos-mainpage-header__title {
@media (hover: hover) {
  margin: 0;
.tg-mainpage-header-search:after {
  font-size: 2.5rem;
content: '/';
  line-height: 1.05;
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-header__subtitle {
background-color: var(--tg-color-progressive--hover);
  max-width: 42rem;
  margin: 0.7rem 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.95;
}
}


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


@keyframes spin {
.onos-mainpage-button--primary {
from {
  background: #f8fafc;
transform: rotate(0deg);
  color: #111827;
}
to {
transform: rotate(360deg);
}
}
}

Aktuelle Version vom 24. April 2026, 21:07 Uhr

.onos-mainpage-header {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 2rem;
  margin: 1rem 0 1.5rem;
  background: #1e293b;
  color: #f8fafc;
}

.onos-mainpage-header a {
  color: inherit;
  text-decoration: none;
}

.onos-mainpage-header__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.12;
}

.onos-mainpage-header__sigil {
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 24rem;
}

.onos-mainpage-header__inner {
  position: relative;
}

.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-button {
  display: inline-block;
  padding: 0.7rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  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;
}