1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

made sample profile page

This commit is contained in:
Fedor Katurov 2021-10-01 12:01:11 +07:00
parent b43fb35b47
commit a808045a7d
17 changed files with 118 additions and 179 deletions

View file

@ -1,92 +1,51 @@
@import "src/styles/variables";
.wrap {
@include outer_shadow;
padding: $gap $gap $gap * 2;
box-sizing: border-box;
display: flex;
align-items: stretch;
justify-content: stretch;
flex-direction: column;
background: $comment_bg;
height: 100%;
border-radius: $radius;
}
.avatar {
width: 100%;
padding-bottom: 75%;
border-radius: 0 $radius 0 0;
background: 50% 50% no-repeat;
background-size: cover;
}
.region_wrap {
width: 100%;
// padding: 0 10px;
position: relative;
margin-top: -$radius;
box-sizing: border-box;
height: 0;
padding-bottom: 100%;
margin-bottom: $gap * 2;
}
.region {
// background: $content_bg;
background: darken($content_bg, 2%);
width: 100%;
border-radius: 0 $radius $radius 0;
text-align: center;
}
.name {
font: $font_24_semibold;
color: white;
padding: $gap $gap 0 $gap;
text-transform: uppercase;
width: 100%;
box-sizing: border-box;
margin-bottom: 4px;
}
.username {
font: $font_14_semibold;
padding: 0 $gap $gap $gap;
font: $font_14_regular;
box-sizing: border-box;
width: 100%;
color: transparentize(white, 0.5);
margin-top: $gap / 2;
}
.menu {
padding: $gap 0 $gap 0;
display: flex;
align-items: stretch;
width: 100%;
flex-direction: column;
box-sizing: border-box;
display: none;
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;
}
}
.description {
padding: $gap;
box-sizing: border-box;
// background: darken($content_bg, 2%);
background: darken($content_bg, 4%);
// margin: 0 $gap;
border-radius: 0 0 $radius $radius;
@include clamp(3, 21px * 3);
line-height: 21px;
font: $font_14_regular;
margin-top: $gap * 3;
display: none;
}