Merge branch '201-right-column-missing-on-the-circles' of git.happy-dev.fr:startinblox/applications/sib-app into gm-missing-edit-circle

This commit is contained in:
Jean-Baptiste Pasquier 2019-10-24 21:44:14 +02:00
commit 7086dbd931
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62
14 changed files with 271 additions and 163 deletions

View File

@ -1,7 +1,9 @@
.content-box.full-width .content-box.full-width
sib-display.chat-header( sib-display.content-box__header(
bind-resources bind-resources
fields='name' fields='name'
class-name='name'
) )
.chat-view .chat-view
sib-chat( sib-chat(

View File

@ -1,41 +1,49 @@
.content-box.with-padding.full-width .content-box.full-width.with-form
include templates/hd-circle-team.pug
div.content-box__header.with-edit
sib-display(
bind-resources
fields='name'
sib-display.content-box__header.with-edit( class-name='name'
bind-resources )
fields='name'
class-name='name'
value-status='Public'
)
sib-link(class="editlink", next="circle-edit" bind-resources) sib-link(class="editlink", next="circle-edit" bind-resources)
h2 Channel's name: div.content-box__info
sib-display(
fields='name',
bind-resources
)
h2 Description: sib-display.block(
sib-display( bind-resources
fields='description', fields='label-description, description, entitled(title, creationDate)'
bind-resources
)
h2 In group: value-label-description='Description: '
sib-display.block-group(
nested-field='team',
fields='teammate-img(account.picture), teammate-name(name), teammate-pseudonym(before-pseudo, username), teammate-profile, teammate-contact',
template-teammate-contact='chat-link', default-description='No description available.'
value-before-pseudo='@', value-title='Creation date:'
value-teammate-contact='Send a message', )
value-teammate-profile='View profile',
widget-account.picture='sib-display-img', sib-ac-checker(permission='acl:Write' bind-resources)
sib-form.block.team-form(
bind-resources
fields='team'
range-team=`${endpoints.users}`
partial=''
class-team='team form-label is-dark'
label-team='Members:'
widget-team='sib-form-auto-completion'
submit-button='Add a member'
)
sib-display.block(
bind-resources
fields='team'
multiple-team=''
widget-team='team-template'
)
next='member',
bind-resources
)

View File

@ -1,7 +1,9 @@
.content-box.full-width .content-box.full-width
sib-display.chat-header( sib-display.content-box__header(
bind-resources bind-resources
fields='username' fields='username'
class-username='name'
) )
.chat-view .chat-view
sib-chat( sib-chat(

View File

@ -16,7 +16,6 @@ div#viewport {
@import 'components/index'; @import 'components/index';
@import 'layout/members/index'; @import 'layout/members/index';
@import 'layout/job-offers/index'; @import 'layout/job-offers/index';
@import 'components/comment.scss';
@import 'layout/project-profile/index'; @import 'layout/project-profile/index';
@import 'layout/circle-profile/index'; @import 'layout/circle-profile/index';
@import 'layout/user/index'; @import 'layout/user/index';

View File

@ -102,6 +102,51 @@
/* CLASSES Peut-être à sortir de .content-box */ /* CLASSES Peut-être à sortir de .content-box */
.block.team-form>form { /* circle-profile */
display: flex;
flex-direction: row;
label {
>.ss-main {
font-weight: normal;
min-width: 35vw;
text-transform: none;
>.ss-single-selected {
align-items: center;
background-color: #ebeffa;
border: none;
border-radius: 0px;
display: flex;
justify-content: flex-end;
min-height: 4.2rem;
padding-left: 1.2rem;
.ss-arrow {
font-size: 1.8rem;
margin: 0 18px 0 0;
span {
border: solid $color-244-73-62;
border-width: 0 2px 2px 0;
}
}
}
}
}
>input[type='submit'] {
background-color: transparent;
border: 1px solid #6157e5;
color: #6157e5;
font-size: 1.4rem;
align-self: flex-end;
margin-bottom: 0.6rem;
margin-left: 4.2rem;
}
}
.form-container>form { .form-container>form {
margin-top: 2.7rem; margin-top: 2.7rem;
} }

View File

@ -145,6 +145,7 @@
} }
img { img {
background-color: white;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
object-position: center; object-position: center;

View File

@ -52,14 +52,14 @@ h6 {
font-weight: 600; font-weight: 600;
padding: 0; padding: 0;
span { /*span {
font-weight: 400; font-weight: 400;
padding-left: 0.85rem; padding-left: 0.85rem;
&:before { &:before {
content: '// '; content: '// ';
} }
} }*/
} }
h1 { h1 {
@ -71,7 +71,7 @@ h2 {
} }
h3 { h3 {
font-size: 1.6rem; font-size: 1.7rem;
} }
h4 { h4 {
@ -126,6 +126,10 @@ sib-delete {
padding: 5rem; padding: 5rem;
} }
%padding-block {
padding: 3.2rem;
}
.content-box { .content-box {
@include window-style-modal(); @include window-style-modal();
display: flex; display: flex;
@ -136,7 +140,7 @@ sib-delete {
&.full-width { &.full-width {
background: $color-0-0-100; background: $color-0-0-100;
flex: 1; flex: 1;
font-size: 1.5rem; font-size: 1.6rem;
margin: 0 auto; margin: 0 auto;
min-height: calc(100vh - 84px); min-height: calc(100vh - 84px);
} }
@ -146,6 +150,45 @@ sib-delete {
} }
} }
.content-box__header {
padding: 2.3rem 3rem;
div {
color: $color-233-18-29;
display: flex;
font-size: 2rem;
&>* {
align-self: center;
}
.name {
font-size: 2rem;
font-weight: bold;
margin: 1.1rem 0;
}
}
}
.content-box__header.with-edit {
border-bottom: 1px solid $color-221-51-90;
display: flex;
justify-content: space-between;
sib-display {
display: flex;
text-transform: uppercase;
}
sib-link {
display: flex;
&::before {
align-self: center;
display: flex;
}
}
}
.drive { .drive {
width: 100%; width: 100%;
border: 0; border: 0;
@ -186,17 +229,12 @@ sib-delete {
} }
.editlink { .editlink {
font-size: 1.6rem;
@include icon('pencil');
color: white;
&::before { @include icon('pencil');
background: $color-244-73-62; background: $color-244-73-62;
border-radius: 50%; border-radius: 50%;
text-decoration: none; color: white;
height: 34px; padding: 12px;
width: 34px;
}
} }
.name { .name {

View File

@ -1,4 +1,5 @@
@import 'chat'; @import 'chat';
@import 'comment.scss';
@import 'filters'; @import 'filters';
@import 'howto'; @import 'howto';
@import 'sidebar'; @import 'sidebar';

View File

@ -1,20 +1,3 @@
// chat
.chat-header {
div {
color: $color-233-18-29;
display: flex;
flex-direction: column;
margin: 3rem;
&>:first-child {
font-size: 2rem;
font-weight: bold;
}
}
}
.chat-view { .chat-view {
padding: 0; padding: 0;
height: calc(100vh - 84px - 83px); height: calc(100vh - 84px - 83px);

View File

@ -5,5 +5,5 @@
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 400; font-weight: 400;
margin-right: 0.4rem; margin-right: 0.4rem;
padding: calc(1.6rem - 0.8em) 0.7em; padding: 0.2rem 0.98rem;
} }

View File

@ -1,78 +1,133 @@
#circle-profile { #circle-profile {
.block-group > div { .content-box__info {
display: flex; @extend %padding-block;
flex-flow: row wrap; }
justify-content: space-between;
margin: 0;
padding: 0;
sib-display > div { .block {
align-items: center;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.14); >form { /* peut-être à mettre dans main.scss */
display: grid; margin-bottom: 2.6rem;
font-size: 1.6rem;
grid-template-columns: repeat(4, 1fr); .form-label.is-dark>label {
grid-template-rows: repeat(3, 1fr); margin-top: 0;
height: auto;
justify-items: center; >div:first-child {
margin: 1rem 0.5rem 1rem 0; @extend h3;
font-weight: bold;
margin: 0 0 1.4rem;
text-transform: uppercase;
}
}
}
>div { /* peut-être à mettre dans main.scss */
display: flex;
flex-direction: column;
margin-bottom: 2.6rem;
position: relative; position: relative;
padding-right: 1rem;
padding-top: 1rem;
text-align: center;
width: 14em;
&:hover { >[name^='label'] {
cursor: pointer; @extend h3;
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.24); font-weight: bold;
top: -2px; margin: 0 0 1.4rem;
text-transform: uppercase;
} }
> sib-set-default[name='teammate-img'] { >[name='description'] {
background-color: $color-215-9-73; max-width: 80%;
border-radius: 50%; }
grid-column: 1 / span 2;
grid-row: 1 / span 2;
height: 6vh;
overflow: hidden;
width: 6vh;
img { >[name='entitled'] {
height: 100%; align-self: flex-end;
left: 0; position: absolute;
object-fit: cover;
top: 0; >*:first-child {
width: 100%; margin-right: 0.8rem;
} }
} }
sib-set-default[name='teammate-name'] { >sib-multiple {
grid-column: 3 / span 2;
grid-row: 1 / span 1;
}
> sib-set-default[name='teammate-pseudonym'] { label {
align-self: start; display: none;
font-size: 1.2rem; }
grid-column: 3 / span 2;
grid-row: 2 / span 1;
}
> sib-display-value[name='teammate-profile'] { >div>team-template[name='team']>sib-display>div {
color: $color-216-4-22; display: grid;
display: block; grid-column-gap: 1.6rem;
font-size: 1.2rem; grid-template-columns: 7vh auto;
grid-column: 1 / span 2; grid-template-rows: repeat(2, 5.2vh);
grid-row: 3 / span 1;
}
> sib-display-value[name='teammate-contact'] { >[name='account.picture'] {
color: $color-244-73-62; align-items: center;
font-size: 1.2rem; align-self: center;
justify-self: stretch; background-color: $color-213-20-91;
grid-column: 3 / span 2; border-radius: 50%;
grid-row: 3 / span 1; display: flex;
grid-column: 1 / span 1;
grid-row: 1 / span 2;
height: 7vh;
justify-content: center;
overflow: hidden;
position: relative;
width: 7vh;
img {
background-color: white;
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
top: 0;
width: 100%;
}
object {
height: 45%;
width: 45%;
}
}
>[name='sup'] {
align-self: end;
display: flex;
grid-column: 2 / span 1;
grid-row: 1 / span 1;
margin-bottom: 0.50rem;
[name='name'] {
font-weight: 600;
}
sib-multiple {
display: flex;
margin-left: 1rem;
[name='groups'] {
@extend %user-role;
}
}
}
>[name='sub'] {
align-self: start;
grid-column: 2 / span 1;
grid-row: 2 / span 1;
margin-top: 0.50rem;
>[name$='profile.city']:not(:empty) {
@include mdi('atom');
align-items: center;
display: flex;
&::before {
color: $color-43-100-50;
margin-right: 0.50rem;
}
}
}
}
} }
} }
} }

View File

@ -6,7 +6,7 @@
[name^='label-'] { [name^='label-'] {
display: block; display: block;
font-weight: bold; font-weight: bold;
margin-bottom: 1.4rem; margin: 1.4rem 0;
text-transform: uppercase; text-transform: uppercase;
@extend h2; @extend h2;
} }

View File

@ -3,41 +3,14 @@ include hd-user-avatar.pug
sib-widget(name='team-template') sib-widget(name='team-template')
template template
sib-display( sib-display(
data-src="${value.user ? value.user['@id'] : ''}" data-src="${await value}"
fields='account.picture', fields='account.picture, sup(name, groups), sub(profile.city)'
widget-account.picture='hd-user-avatar' widget-account.picture='hd-user-avatar'
widget-groups='hd-user-groups'
multiple-groups=''
) )
div(name='user.thumb')
span ${value.user.name}
sib-display(
data-src="${value.user ? value.user.groups['@id'] : ''}",
fields='name',
multiple-name
)
span ${value.name}
sib-widget(name='hd-user-groups')
template ${await value.name}
include hd-user-avatar.pug
sib-widget(name='team-template')
template
sib-display.project-profile-user-avatar(
data-src="${value.user ? value.user['@id'] : ''}"
fields='account.picture',
widget-account.picture='hd-user-avatar'
)
div(name='user.thumb')
sib-display(
data-src="${value.user ? value.user['@id'] : ''}"
fields='name'
)
sib-display(
data-src="${value.user ? value.user['@id'] : ''}",
fields='name'
nested-field="groups"
)
sib-display(
data-src="${value.user ? value.user['@id'] : ''}"
fields='username'
)

View File

@ -21,3 +21,4 @@ sib-widget(name='team-template')
data-src="${value.user ? value.user['@id'] : ''}" data-src="${value.user ? value.user['@id'] : ''}"
fields='username' fields='username'
) )