Template:Main page/header/styles.css: Difference between revisions
Template page
More actions
No edit summary Tag: Reverted |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
margin: 0; | margin: 0; | ||
font-size: var( --display-font-size ); | font-size: var( --display-font-size ); | ||
line-height: 0.9; | line-height: 0.9; | ||
font-weight: var( --font-weight-semi-bold ); | font-weight: var( --font-weight-semi-bold ); | ||
| Line 50: | Line 49: | ||
.home-header__search:hover { | .home-header__search:hover { | ||
--gradient: | --gradient: #2b0057, #4b0082, #5a2ca0, #6a5acd, | ||
#4169e1, #1e90ff, #00bfff, #87cefa, | |||
#1e90ff, #4169e1, #6a5acd, #5a2ca0, #4b0082, #2b0057; | |||
--gradient-blur: 8px; | --gradient-blur: 8px; | ||
background: var( --color-surface-0 ); | background: var( --color-surface-0 ); | ||
| Line 76: | Line 77: | ||
display: none; | display: none; | ||
} | } | ||
} | } | ||
Latest revision as of 14:39, 6 September 2025
.home-header {
position: relative;
padding-block: 3.5rem;
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 {
--display-font-size: min( calc( 2.5rem + 3.9vw ), 4.5rem );
margin: 0;
font-size: var( --display-font-size );
line-height: 0.9;
font-weight: var( --font-weight-semi-bold );
}
.home-header__subtitle {
margin-top: var( --space-xxs );
color: var( --color-subtle );
font-size: var( --font-size-small );
}
.home-header__search {
--gradient: #87bfdb, #77abC8, #6797b5, #577f9d, #476684, #43668a, #3e668f, #304a66, #212e3d, #304a66, #3e668f, #43668a, #476684, #577f9d, #6797b5, #77abC8, #87bfdb;
--gradient-blur: 4px;
padding: var( --space-md );
margin-top: var( --space-xl );
margin-left: auto;
margin-right: auto;
max-width: 600px;
border: var( --border-base );
border-radius: var( --border-radius-pill );
background-color: var( --color-surface-1 );
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 {
--gradient: #2b0057, #4b0082, #5a2ca0, #6a5acd,
#4169e1, #1e90ff, #00bfff, #87cefa,
#1e90ff, #4169e1, #6a5acd, #5a2ca0, #4b0082, #2b0057;
--gradient-blur: 8px;
background: var( --color-surface-0 );
}
.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;
}
.home-header:before,
.home-header__searchIcon img {
filter: var( --filter-invert );
}
@media ( hover: none ) {
.home-header__search .desktoponly {
display: none;
}
}