Vorlage:Main Page/header/styles.css: Unterschied zwischen den Versionen
aus dem Wiki des Entropia e.V., CCC Karlsruhe
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Keine Bearbeitungszusammenfassung |
||
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
padding-top: 1rem; | padding-top: 1rem; | ||
line-height: var( --line-height-sm ); | line-height: var( --line-height-sm ); | ||
} | } | ||
Zeile 26: | Zeile 12: | ||
margin: 0; | margin: 0; | ||
font-size: 3rem; | font-size: 3rem; | ||
line-height: 1; | line-height: 1; | ||
} | |||
.home-header__title-container { | |||
display: flex; | |||
} | } | ||
Zeile 71: | Zeile 59: | ||
display: none; | display: none; | ||
} | } | ||
} | |||
.header-link { | |||
display: flex; | |||
flex-direction: row; | |||
margin-top: var( --space-xs ); | |||
margin-left: auto; | |||
font-size: 0.875rem; | |||
font-weight: 500; | |||
grid-gap: var( --space-xs ); | |||
text-align: center; | |||
} | |||
.header-link__button { | |||
display: flex; | |||
} | |||
.header-link__button a { | |||
flex-grow: 1; | |||
padding: var( --space-xs ); | |||
border: 1px solid var( --border-color-base ); | |||
background: var( --color-surface-2 ); | |||
border-radius: var( --border-radius--medium ); | |||
color: var( --color-base--emphasized ) !important; | |||
line-height: var( --line-height-xs ); | |||
text-decoration: none !important; | |||
} | |||
.header-link__button a:hover { | |||
background: var( --color-surface-2--hover ); | |||
} | |||
.header-link__button a:active { | |||
background: var( --color-surface-2--active ); | |||
} | } |
Aktuelle Version vom 26. März 2024, 18:16 Uhr
/* adapted from: https://starcitizen.tools/Template:Main_page/header/styles.css */
.home-header {
position: relative;
margin-top: -1rem;
margin-bottom: 2rem;
padding-top: 1rem;
line-height: var( --line-height-sm );
}
.home-header__title {
margin: 0;
font-size: 3rem;
line-height: 1;
}
.home-header__title-container {
display: flex;
}
.home-header__search {
padding: var( --space-md );
margin-top: var( --space-lg );
margin-bottom: var( --space-md );
margin-left: auto;
margin-right: auto;
border: 1px solid;
border-color: var( --border-color-base--darker );
border-radius: var( --border-radius--pill );
cursor: pointer;
font-size: 0.875rem;
font-weight: var( --font-weight-medium );
text-align: center;
}
.home-header__search:hover {
background-color: var( --background-color-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 ) {
.desktoponly {
display: none;
}
}
.header-link {
display: flex;
flex-direction: row;
margin-top: var( --space-xs );
margin-left: auto;
font-size: 0.875rem;
font-weight: 500;
grid-gap: var( --space-xs );
text-align: center;
}
.header-link__button {
display: flex;
}
.header-link__button a {
flex-grow: 1;
padding: var( --space-xs );
border: 1px solid var( --border-color-base );
background: var( --color-surface-2 );
border-radius: var( --border-radius--medium );
color: var( --color-base--emphasized ) !important;
line-height: var( --line-height-xs );
text-decoration: none !important;
}
.header-link__button a:hover {
background: var( --color-surface-2--hover );
}
.header-link__button a:active {
background: var( --color-surface-2--active );
}