zcash-grant-system/frontend/client/components/Header/style.less

144 lines
2.7 KiB
Plaintext

@import '~styles/variables.less';
@header-height: 62px;
@small-query: ~'(max-width: 660px)';
@big-query: ~'(min-width: 661px)';
.Header {
top: 0;
left: 0;
right: 0;
z-index: 999;
position: relative;
color: #333;
background: #fff;
text-shadow: none;
box-shadow: 0 1px rgba(0, 0, 0, 0.1);
&.is-transparent {
position: absolute;
background: transparent;
box-shadow: none;
}
&-inner {
display: flex;
justify-content: space-between;
align-items: center;
height: @header-height;
padding: 0 3rem;
max-width: @max-content-width;
margin: 0 auto;
}
&-title {
display: flex;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
margin: 0;
color: inherit;
transition: transform 100ms ease, opacity 100ms ease;
flex-grow: 1;
text-align: center;
opacity: 0.92;
&:hover,
&:focus {
color: inherit;
transform: translateY(-2px) translate(-50%, -50%);
opacity: 1;
}
&-logo {
height: 2rem;
width: auto;
transform: translateY(10%);
fill: #333;
.is-transparent & {
transform: scale(1.4) translateY(20%);
}
}
}
&-links {
display: flex;
&.is-left {
justify-self: flex-start;
margin-left: -0.75rem;
}
&.is-right {
justify-self: flex-end;
margin-right: -0.75rem;
}
&.is-desktop {
@media @small-query {
display: none;
}
}
&.is-mobile {
@media @big-query {
display: none;
}
}
&-link {
display: block;
background: none;
padding: 0 0.75rem;
font-size: 1rem;
font-weight: 300;
color: inherit;
letter-spacing: 0.05rem;
cursor: pointer;
opacity: 0.8;
transition: transform 100ms ease, opacity 100ms ease;
outline: none;
&:hover,
&:focus,
&:active {
opacity: 1;
transform: translateY(-1px);
color: inherit;
text-decoration-color: transparent;
}
&-icon {
width: 1.8rem;
height: 1.8rem;
opacity: 0.8;
}
}
}
&-alphaBanner {
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 50%);
background: linear-gradient(
to right,
@primary-color-light,
@primary-color-dark
);
color: #fff;
width: 70px;
height: 18px;
border-radius: 9px;
line-height: 18px;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.2rem;
font-size: 9px;
font-weight: bold;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
}