Vorlage:Startseite/Header/styles.css: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Inhalt gelöscht Inhalt hinzugefügt
| Zeile 1: | Zeile 1: | ||
.home-header { |
.home-header { |
||
position: relative; |
position: relative; |
||
padding-top: var( --space-xxl ); |
|||
padding-bottom: var( --space-xxl ); |
|||
| ⚫ | |||
padding-top: 1rem; |
|||
text-align: center; |
|||
| ⚫ | |||
| ⚫ | |||
.home-header:before { |
|||
content: ""; |
|||
position: absolute; |
|||
top: 1rem; |
|||
bottom: 4.75rem; |
|||
left: 0; |
|||
right: 0; |
|||
opacity: 0.25; |
|||
background-repeat: no-repeat; |
|||
background-position: right; |
|||
pointer-events: none; |
|||
} |
} |
||
.home-header__pretitle { |
.home-header__pretitle { |
||
margin-bottom: var( --space- |
margin-bottom: var( --space-xxs ); |
||
color: var( --color |
color: var( --color-subtle ); |
||
font-size: |
font-size: var( --font-size-small ); |
||
text-transform: uppercase; |
|||
letter-spacing: 0.05em; |
letter-spacing: 0.05em; |
||
} |
} |
||
| Zeile 37: | Zeile 23: | ||
.home-header__subtitle { |
.home-header__subtitle { |
||
margin-top: var( --space- |
margin-top: var( --space-xxs ); |
||
font-size: |
font-size: var( --font-size-small ); |
||
} |
} |
||
| Zeile 47: | Zeile 33: | ||
margin-left: auto; |
margin-left: auto; |
||
margin-right: auto; |
margin-right: auto; |
||
max-width: 600px; |
|||
border: 1px solid; |
|||
background-color: var( --color-surface-2 ); |
|||
border-radius: var( --border-radius |
border-radius: var( --border-radius-pill ); |
||
cursor: pointer; |
cursor: pointer; |
||
font-size: |
font-size: var( --font-size-small ); |
||
font-weight: var( --font-weight-medium ); |
font-weight: var( --font-weight-medium ); |
||
text-align: center; |
text-align: center; |
||
| ⚫ | |||
.home-header__search .desktoponly { |
|||
margin-left: var( --space-xs ); |
|||
} |
} |
||
.home-header__search:hover { |
.home-header__search:hover { |
||
background-color: var( --background-color-quiet--hover ); |
background-color: var( --background-color-button-quiet--hover ); |
||
} |
} |
||
| Zeile 74: | Zeile 64: | ||
html.skin-citizen-dark .home-header:before, |
html.skin-citizen-dark .home-header:before, |
||
html.skin-citizen-dark .home-header__searchIcon img { |
html.skin-citizen-dark .home-header__searchIcon img { |
||
filter: invert( |
filter: invert( 1 ); |
||
} |
} |
||
@media ( hover: none ) { |
@media ( hover: none ) { |
||
.desktoponly { |
.home-header__search .desktoponly { |
||
display: none; |
display: none; |
||
} |
} |
||
Version vom 12. Februar 2025, 23:56 Uhr
.home-header {
position: relative;
padding-top: var( --space-xxl );
padding-bottom: var( --space-xxl );
line-height: var( --line-height-xx-small );
text-align: center;
}
.home-header__pretitle {
margin-bottom: var( --space-xxs );
color: var( --color-subtle );
font-size: var( --font-size-small );
letter-spacing: 0.05em;
}
.home-header__title {
margin: 0;
font-size: 3rem;
text-transform: uppercase;
letter-spacing: 0.025em;
line-height: 1;
}
.home-header__subtitle {
margin-top: var( --space-xxs );
font-size: var( --font-size-small );
}
.home-header__search {
padding: var( --space-md );
margin-top: var( --space-lg );
margin-bottom: var( --space-md );
margin-left: auto;
margin-right: auto;
max-width: 600px;
background-color: var( --color-surface-2 );
border-radius: var( --border-radius-pill );
cursor: pointer;
font-size: var( --font-size-small );
font-weight: var( --font-weight-medium );
text-align: center;
}
.home-header__search .desktoponly {
margin-left: var( --space-xs );
}
.home-header__search:hover {
background-color: var( --background-color-button-quiet--hover );
}
.home-header__searchIcon img {
margin-right: var( --space-md );
opacity: var( --opacity-icon-base );
}
/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
display: inline;
padding-top: 0.1em;
padding-bottom: 0.1em;
}
html.skin-citizen-dark .home-header:before,
html.skin-citizen-dark .home-header__searchIcon img {
filter: invert( 1 );
}
@media ( hover: none ) {
.home-header__search .desktoponly {
display: none;
}
}