Template:Main page/header/styles.css
Template page
More actions
.tg-mainpage-header {
position: relative;
margin-top: -2rem;
margin-bottom: -4rem;
padding-top: 6rem;
padding-bottom: 6rem;
clear: both;
overflow: hidden; /* Prevent circular inscription from affecting element size */
}
.tg-mainpage-content {
align-items: center;
display: flex;
flex-direction: column;
text-align: center;
}
/* Temp styles until we have wordmark */
.tg-mainpage-header-wordmark {
position: relative;
margin-top: 2.5rem;
width: 420px;
max-width: 100%;
padding-top: 0.75rem;
}
.tg-mainpage-header-wordmark img {
width: 100%;
height: 100%;
}
.tg-mainpage-header-tagline {
margin-top: -0.25rem;
color: black;
font-size: 12px;
line-height: 1;
}
.tg-mainpage-header-search {
align-items: center;
background-color: white;
border-radius: 5px;
color: white;
cursor: pointer;
display: flex;
font-size: 0.875rem;
font-weight: normal;
gap: 0.5rem;
line-height: 1;
margin-top: 1rem;
padding: 1rem 2rem;
user-select: none;
}
.tg-mainpage-header-search:before {
content: '';
width: 1rem;
height: 1rem;
background-color: white;
display: block;
}
/* Keyboard hint */
@media (hover: hover) {
.tg-mainpage-header-search:after {
content: '/';
margin-top: -2px;
margin-bottom: -2px;
margin-left: 2px;
width: 18px;
height: 18px;
display: flex;
background-color: white;
color: white;
border-radius: 5px;
line-height: 1;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 900;
opacity: 0.6;
}
}
.tg-mainpage-header-search:hover {
background-color: white;
}
.tg-mainpage-header-search:active {
background-color: white;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}