Header.scss•2.57 kB
@import '../../config.scss';
.header {
position: fixed;
top: 0;
left: 0;
z-index: 10;
box-shadow: 0 6px 6px 0 rgba(0,0,0,0.1);
padding: 5px 0;
width: 100%;
color: #eee;
background-color: rgba(0, 0, 0, 0.8);
padding-left: $gutter;
//padding-right: $gutter;
&__content {
max-width: $max-width;
margin: 0 auto;
}
&__row {
display: flex;
margin-right: -($gutter / 2);
margin-left: -($gutter / 2);
}
&__title {
padding: 5px;
font-family: $font-heading;
font-size: 1.5rem;
a {
text-decoration: none;
color: #fff;
}
@media (max-width: 460px) {
display: none;
}
}
&__icon {
display: flex;
}
&__nav {
@include columns(12);
display: flex;
}
&__list {
display: flex;
justify-content: flex-end;
align-items: center;
width: 100%;
@media (max-width: 460px) {
width: 1em;
}
}
/*
@media (max-width: 540px) {
&__hide {
visibility: hidden;
}
}
*/
&__item {
display: flex;
font-size: 1rem;
margin: 0px 20px;
}
@media (max-width: 800px) {
&__hide {
display: none;
}
}
@media (max-width: 460px) {
margin: 0;
}
&__coins {
display: flex;
justify-content: flex-end;
align-items: center;
width: 100%;
right: 0;
@media (max-width: 460px) {
justify-content: center;
}
}
&__coin {
display: block;
font-size: 11px;
margin: 0px 5px;
&__title {
font-size: 9px;
}
}
@media (max-width: 800px) {
&__coins {
// visibility: hidden;
}
}
&__link {
color: #eee;
text-decoration: none;
}
}
.dropdown {
display: inline-block;
&__header {
display: inline-block;
cursor: pointer;
white-space: nowrap;
&__title {
font-size: 1.5em;
padding: 0px 7px;
}
}
&__header:hover {
background-color: rgba(0, 0, 0, 0.8);
}
&__list {
position: absolute;
top: 100%;
right: 0;
// border: 1px solid #ccc;
// border-radius: 4px;
// padding: 0;
margin: 2px 2px 0 0;
box-shadow: 0 6px 6px 0 rgba(0,0,0,0.1);
background-color: rgba(0, 0, 0, 0.8);
list-style-type: none;
&__item {
padding: 10px 30px;
cursor: pointer;
white-space: nowrap;
border-bottom: 0.5px solid #ccc;
}
&__item:hover {
background-color: rgba(0, 0, 0, 0.5);
}
}
&__link {
width: 100%;
color: #eee;
text-decoration: none;
font-family: $font-heading;
}
}