bigbuffet-rw/app/styles/components/account-header.scss

172 lines
3.7 KiB
SCSS
Raw Normal View History

2020-03-27 13:59:38 -07:00
.account__header {
2020-05-15 20:48:08 -07:00
&.inactive {
opacity: 0.5;
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
.account__header__image,
2020-05-28 17:58:37 -07:00
.account__avatar {
filter: grayscale(100%);
}
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__info {
position: absolute;
top: 10px;
left: 10px;
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__image {
overflow: hidden;
height: 350px;
position: relative;
2020-05-31 14:27:35 -07:00
background: var(--brand-color-med);
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {height: 225px;}
2020-05-15 20:48:08 -07:00
&--none {height: 125px;}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
img {
object-fit: cover;
display: block;
width: 100%;
height: 100%;
margin: 0;
}
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__bar {
display: block;
min-height: 74px;
width: 100%;
position: relative;
2020-05-30 19:58:18 -07:00
background: var(--brand-color-faint);
2020-05-28 17:58:37 -07:00
@media (min-width: 895px) {height: 74px;}
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__avatar {
display: block;
position: absolute;
2020-05-30 19:58:18 -07:00
border: 5px solid var(--brand-color-faint);
2020-05-15 20:48:08 -07:00
left: 0;
top: -90px;
border-radius: 50%;
height: 200px;
width: 200px;
background-color: darken($ui-base-color, 8%);
2020-03-27 13:59:38 -07:00
2020-05-15 20:48:08 -07:00
// NOTE - patch fix for avatar size. Wrapper may not be needed when I do polish up on the page
.account__avatar {
width: 200px;
height: 200px;
background-size: 200px 200px;
}
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {
2020-05-15 20:48:08 -07:00
top: -45px;
left: 10px;
height: 90px;
width: 90px;
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
.account__avatar {
width: 90px;
height: 90px;
background-size: 90px 90px;
}
}
2020-03-27 13:59:38 -07:00
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__extra {
display: flex;
flex-direction: row;
height: 100%;
margin: 0 auto;
padding-left: 310px;
width: 100%;
max-width: 1200px;
box-sizing: border-box;
position: relative;
2020-05-28 17:58:37 -07:00
@media (min-width: 895px) and (max-width: 1190px) {
2020-05-15 20:48:08 -07:00
max-width: 900px;
padding-left: 300px;
}
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {
2020-05-15 20:48:08 -07:00
max-width: 900px;
2020-05-28 17:58:37 -07:00
padding: 10px 10px 0;
2020-05-15 20:48:08 -07:00
flex-direction: column-reverse;
min-height: 50px;
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__buttons {
display: flex;
align-items: center;
margin-left: auto;
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
.icon-button {
2020-05-31 16:22:11 -07:00
border: 1px solid var(--brand-color-med);
2020-05-15 20:48:08 -07:00
border-radius: 4px;
box-sizing: content-box;
padding: 2px;
2020-05-31 17:38:07 -07:00
> div {
line-height: 31px !important;
}
2020-05-15 20:48:08 -07:00
}
2020-05-31 16:22:11 -07:00
.button { margin-right: 10px; }
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&__links {
display: flex;
font-size: 14px;
color: var(--primary-text-color-faint);
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {
2020-05-15 20:48:08 -07:00
justify-content: center;
flex-wrap: wrap;
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
a {
display: inline-block;
text-decoration: none;
padding: 16px 22px;
text-align: center;
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 1190px) {padding: 16px;}
2020-05-15 20:48:08 -07:00
> span {
display: block;
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&:first-of-type {
2020-05-31 16:44:20 -07:00
color: var(--primary-text-color);
2020-05-15 20:48:08 -07:00
font-size: 20px;
font-weight: 800;
line-height: 24px;
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {
2020-05-15 20:48:08 -07:00
font-size: 16px;
line-height: 20px;
}
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&:last-of-type {
2020-05-31 19:05:00 -07:00
color: var(--primary-text-color-faint);
2020-05-15 20:48:08 -07:00
font-size: 12px;
line-height: 14px;
padding-top: 2px;
}
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
&:hover,
2020-05-28 17:58:37 -07:00
&.active {
2020-05-31 16:44:20 -07:00
border-bottom: 2px solid var(--primary-text-color);
2020-05-28 17:58:37 -07:00
}
&.score {border-bottom: 0 !important;}
2020-05-15 20:48:08 -07:00
}
}
} // end .account__header__extra
2020-05-28 17:58:37 -07:00
@media screen and (max-width: 895px) {
2020-05-15 20:48:08 -07:00
.account-mobile-container {
display: block;
2020-05-30 19:58:18 -07:00
background: var(--brand-color-faint);
2020-05-15 20:48:08 -07:00
margin-top: 10px;
position: relative;
2020-05-28 17:58:37 -07:00
padding: 10px 10px 0;
2020-05-15 20:48:08 -07:00
&--nonuser {padding: 10px 10px 15px;}
}
}
2020-05-28 17:58:37 -07:00
} // end .account__header