hubl/src/styles/layout/members/members.scss

236 lines
4.8 KiB
SCSS

%member-info {
sib-multiple[name^='user.'],
> member-info > div,
> sib-display-value {
display: flex;
flex-wrap: wrap;
margin-bottom: 0;
margin-top: 1.7rem;
&::before {
color: $color-43-100-50;
padding: 0 0.6em 0 0;
}
}
[name$='city'] * {
@include mdi('atom');
}
[name$='email'] * {
@include mdi('email-outline');
}
[name$='phone'] * {
@include mdi('cellphone-iphone');
}
[name="foaf:homepage"]:not(:empty) {
@include mdi('link-variant');
}
}
member-info-groups {
@extend %user-role;
}
.how-link {
@extend .howto;
background-color: $color-0-0-100;
color: $color-216-4-22;
flex-wrap: nowrap;
.icon-idea {
background-color: $color-46-100-67;
border-radius: 100%;
justify-content: center;
margin-right: 1.2rem;
width: 1.8em;
height: 1.8em;
}
}
#members-list {
@extend .grid-layer;
#members-list__content {
@extend .grid-layer;
nav {
align-items: center;
display: flex;
font-size: 2.4rem;
justify-content: center;
button {
color: $color-210-25-95;
&:before {
color: $color-216-4-22;
@include icon('arrow-left-circle');
}
&:disabled::before {
color: $color-215-6-63;
}
}
button:nth-of-type(2) {
order: 1;
transform: rotate(180deg);
}
span {
font-size: 2.6rem;
}
}
& > sib-form {
grid-column-start: start;
grid-column-end: middle;
grid-row-start: start;
grid-row-end: middle;
}
& > div,
& > nav {
display: flex;
flex-wrap: wrap;
grid-column-start: start;
grid-column-end: end;
margin-bottom: 1.7rem;
}
& > div {
justify-content: space-between;
&:first-of-type {
color: $color-0-0-29;
font-weight: bold;
justify-content: center;
margin: 3.75rem 0;
position: relative;
&::before {
border-top: 1px solid $color-0-0-85;
bottom: 0;
content: '';
left: 0;
margin: 0 auto;
position: absolute;
right: 0;
top: 50%;
width: 100%;
z-index: -1;
}
span {
background-color: $color-210-25-95;
padding: 0 60px;
}
}
> sib-display {
background-color: white;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.14);
color: $color-210-4-50;
cursor: pointer;
display: flex;
flex-flow: column wrap;
margin-bottom: 2.5rem;
padding-bottom: 2rem;
@media(min-width: 56rem) {
width: 32%;
}
label {
display: none;
}
sib-multiple[name$='groups'] {
align-items: flex-start;
display: flex;
justify-content: flex-end;
min-height: 3.4rem;
padding-left: 2.6rem;
padding-right: 2.6rem;
padding-top: 1.3rem;
> * {
margin: 0.3rem;
}
}
div[name='header'] {
border-bottom: 1px solid $color-210-25-95;
display: flex;
flex-direction: column;
padding: 0.85rem 0 3.4rem;
>*:not(member-picture) {
display: flex;
flex-basis: content;
justify-content: center;
}
member-picture {
background-color: $color-0-0-100;
border-radius: 50%;
height: 28vh;
margin: 1.7rem auto;
overflow: hidden;
position: relative;
width: 28vh;
img {
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
}
}
[name='user.name'] {
font-weight: bold;
margin: 0;
@extend h1;
}
sib-display-value[name$='bio'] {
display: flex;
flex-basis: 3.5em;
line-height: 1.6;
margin: 2.5rem 0;
padding: 0 6.8rem;
text-align: center;
}
[next=member-chat] {
align-self: center;
border: 1px solid $color-244-73-62;
border-radius: 3.4rem;
color: $color-244-73-62;
font-size: 1.8rem;
font-weight: bold;
padding: 1rem 2.55rem 0.7rem;
@include icon('speech');
&::before {
font-size: 2.5rem;
padding-right: 0.85rem;
}
}
}
div[name='infos'] {
padding: 0 1.7rem;
@extend %member-info;
}
}
}
}
}