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

220 lines
4.4 KiB
SCSS
Raw Normal View History

2019-05-13 16:50:34 +00:00
%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');
}
}
2019-05-14 12:03:11 +00:00
member-info-groups {
@extend %user-role;
}
#members-list {
2019-05-14 15:32:42 +00:00
@extend %grid-layer;
#members-list__content {
2019-05-14 15:32:42 +00:00
@extend %grid-layer;
nav {
align-items: center;
display: flex;
font-size: 2.4rem;
justify-content: center;
2018-12-18 10:54:43 +00:00
button {
2019-05-13 16:50:34 +00:00
color: $color-210-25-95;
&:before {
2019-05-13 16:50:34 +00:00
color: $color-216-4-22;
@include icon('arrow-left-circle');
}
&:disabled::before {
2019-05-13 16:50:34 +00:00
color: $color-215-6-63;
}
2018-12-18 07:56:42 +00:00
}
2018-12-18 10:54:43 +00:00
button:nth-of-type(2) {
order: 1;
transform: rotate(180deg);
2018-12-18 07:56:42 +00:00
}
2018-12-18 10:54:43 +00:00
span {
font-size: 2.6rem;
2018-12-18 07:56:42 +00:00
}
2018-12-17 22:21:10 +00:00
}
2018-12-18 10:54:43 +00:00
& > sib-form {
grid-column-start: start;
grid-column-end: middle;
grid-row-start: start;
grid-row-end: middle;
}
& > div,
& > nav {
2018-12-18 10:54:43 +00:00
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 {
2019-05-13 16:50:34 +00:00
color: $color-0-0-29;
font-weight: bold;
justify-content: center;
margin: 3.75rem 0;
position: relative;
&::before {
2019-05-13 16:50:34 +00:00
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;
}
2018-12-18 10:54:43 +00:00
span {
2019-05-13 16:50:34 +00:00
background-color: $color-210-25-95;
padding: 0 60px;
}
2018-12-18 10:54:43 +00:00
}
> sib-display {
background-color: white;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.14);
2019-05-13 16:50:34 +00:00
color: $color-210-4-50;
cursor: pointer;
2018-12-18 10:54:43 +00:00
display: flex;
flex-flow: column wrap;
margin-bottom: 2.5rem;
padding-bottom: 2rem;
@media(min-width: 56rem) {
width: 32%;
}
2018-12-18 10:54:43 +00:00
label {
display: none;
2018-12-18 10:54:43 +00:00
}
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'] {
2019-05-13 16:50:34 +00:00
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;
}
2018-12-18 10:54:43 +00:00
member-picture {
2019-05-13 16:50:34 +00:00
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%;
}
2018-12-18 10:54:43 +00:00
}
[name='user.name'] {
font-weight: bold;
@extend h1;
}
2018-12-18 10:54:43 +00:00
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=messages] {
align-self: center;
2019-05-13 16:50:34 +00:00
border: 1px solid $color-244-73-62;
border-radius: 3.4rem;
2019-05-13 16:50:34 +00:00
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;
}
}
2018-12-18 10:54:43 +00:00
}
div[name='infos'] {
padding: 0 1.7rem;
2018-12-18 10:54:43 +00:00
@extend %member-info;
}
2018-12-18 10:54:43 +00:00
}
}
}
}