Template:Home/Header/styles.css: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
.mainpage-header h1 {
.home-header {
    line-height: 1.2;
position: relative;
    text-align: center;
padding-top: var( --space-xl );
padding-bottom: var( --space-xl );
line-height: var( --line-height-sm );
text-align: center;
}
}


.mainpage-header .mw-headline span {
.home-header__pretitle {
    font-weight: 600;
margin-bottom: var( --space-xxs );
     white-space: nowrap;
    color: var( --color-base--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;
border: 1px solid;
border-color: var( --border-color-interactive );
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-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;
}
}
}

Latest revision as of 22:44, 31 July 2024

.home-header {
	position: relative;
	padding-top: var( --space-xl );
	padding-bottom: var( --space-xl );
	line-height: var( --line-height-sm );
	text-align: center;
}

.home-header__pretitle {
	margin-bottom: var( --space-xxs );
    color: var( --color-base--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;
	border: 1px solid;
	border-color: var( --border-color-interactive );
	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-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;
	}
}