Template:Main Page/header/styles.css: Difference between revisions
Template page
More actions
No edit summary Tag: Reverted |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* adapted from: https://starcitizen.tools/Template:Main_page/header/styles.css */ | |||
.home-header { | .home-header { | ||
position: relative; | position: relative; | ||
| Line 15: | Line 17: | ||
.home-header__title-container { | .home-header__title-container { | ||
display: flex; | 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; | |||
} | |||
} | } | ||
| Line 20: | Line 64: | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
margin-top: var( --space-xs ); | margin-top: var(--space-xs, 0.5rem); | ||
margin-left: auto; | margin-left: auto; | ||
font-size: 0.875rem; | font-size: 0.875rem; | ||
font-weight: 500; | font-weight: 500; | ||
gap: var(--space-xs, 0.5rem); | |||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 33: | Line 77: | ||
.header-link__button a { | .header-link__button a { | ||
flex- | display: inline-flex; | ||
padding: | align-items: center; | ||
border: 1px solid var( --border-color-base ); | justify-content: center; | ||
background: var( --color-surface-2 ); | padding: 0.25rem 0.75rem; /* Much smaller padding */ | ||
border-radius: | border: 1px solid var(--border-color-base, rgba(0, 0, 0, 0.1)); | ||
color: var( --color-base | background: var(--color-surface-2, rgba(255, 255, 255, 0.05)); | ||
border-radius: 4px; | |||
color: var(--color-base, #eee) !important; | |||
font-size: 0.875rem; /* 14px */ | |||
font-weight: 500; | |||
line-height: 1.2; /* Tighter line height */ | |||
text-decoration: none !important; | text-decoration: none !important; | ||
white-space: nowrap; | |||
transition: background-color 0.2s ease, border-color 0.2s ease; | |||
} | |||
.header-link__button a.external { | |||
background-image: none !important; | |||
padding-right: 0.75rem !important; | |||
} | } | ||
.header-link__button a:hover { | .header-link__button a:hover { | ||
background: var( --color-surface-2--hover ); | background: var(--color-surface-2--hover, rgba(255, 255, 255, 0.1)); | ||
border-color: var(--border-color-base--hover, rgba(0, 0, 0, 0.2)); | |||
} | } | ||
.header-link__button a:active { | .header-link__button a:active { | ||
background: var( --color-surface-2--active ); | background: var(--color-surface-2--active, rgba(255, 255, 255, 0.15)); | ||
} | } | ||
Latest revision as of 23:14, 4 February 2026
/* 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, 0.5rem);
margin-left: auto;
font-size: 0.875rem;
font-weight: 500;
gap: var(--space-xs, 0.5rem);
text-align: center;
}
.header-link__button {
display: flex;
}
.header-link__button a {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.25rem 0.75rem; /* Much smaller padding */
border: 1px solid var(--border-color-base, rgba(0, 0, 0, 0.1));
background: var(--color-surface-2, rgba(255, 255, 255, 0.05));
border-radius: 4px;
color: var(--color-base, #eee) !important;
font-size: 0.875rem; /* 14px */
font-weight: 500;
line-height: 1.2; /* Tighter line height */
text-decoration: none !important;
white-space: nowrap;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.header-link__button a.external {
background-image: none !important;
padding-right: 0.75rem !important;
}
.header-link__button a:hover {
background: var(--color-surface-2--hover, rgba(255, 255, 255, 0.1));
border-color: var(--border-color-base--hover, rgba(0, 0, 0, 0.2));
}
.header-link__button a:active {
background: var(--color-surface-2--active, rgba(255, 255, 255, 0.15));
}