1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

profile layout

This commit is contained in:
Fedor Katurov 2020-04-08 20:47:12 +07:00
parent 0c3625cd18
commit fe6f977cf1
12 changed files with 236 additions and 13 deletions

View file

@ -0,0 +1,79 @@
.wrap {
display: flex;
align-items: flex-start;
justify-content: stretch;
flex-direction: column;
}
.avatar {
width: 100%;
padding-bottom: 50%;
border-radius: $radius 0 0 0;
background: 50% 50% no-repeat;
background-size: cover;
}
.region_wrap {
width: 100%;
padding: 0 10px;
position: relative;
top: -$radius;
box-sizing: border-box;
}
.region {
background: $content_bg;
width: 100%;
border-radius: $radius;
box-shadow: rgba(0, 0, 0, 0.3) 0 2px;
}
.name {
font: $font_24_semibold;
color: white;
padding: $gap $gap 0 $gap;
text-transform: uppercase;
width: 100%;
box-sizing: border-box;
}
.username {
font: $font_14_semibold;
padding: 0 $gap $gap $gap;
box-sizing: border-box;
width: 100%;
color: transparentize(white, 0.5);
}
.menu {
padding: $gap 0 $gap 0;
display: flex;
align-items: stretch;
width: 100%;
flex-direction: column;
box-sizing: border-box;
a {
width: 100%;
color: inherit;
text-decoration: none;
text-transform: uppercase;
font: $font_18_semibold;
padding: $gap $gap;
display: flex;
align-items: center;
justify-content: flex-start;
opacity: 0.5;
box-sizing: border-box;
transition: opacity 0.25s;
&:hover {
opacity: 1;
}
}
svg {
margin-right: $gap;
fill: currentColor;
}
}