ui : project view & general designe scroll

This commit is contained in:
simon louvet 2018-11-21 03:06:38 +01:00
parent b7da28c3a8
commit 3e91d94a08
6 changed files with 248 additions and 137 deletions

View File

@ -26,7 +26,7 @@ div.containerH.reverse
widget-roles='sib-display-lookuplist',
widget-skills='sib-display-lookuplist',
set-name='pseudo,user.first_name',
search-fields='name, skills, roles',
search-fields='pseudo, skills, roles',
next='member')
//- sib-display#profiles-list(

View File

@ -1,25 +1,38 @@
.frame
template#client-template
div.toto ${value.address}
div#clientBox
div
h2 Client :
div.containerH
label Raison Sociale :
span ${value.name}
div.containerV
label Adresse :
span ${value.address}
div
h2 Contact :
sib-display(
data-fields='client',
data-fields='title, client.logo, label-description, description, client',
set-title='const-title1,number,client.name,const-title2, name',
widget-client.logo='sib-display-img',
template-client='client-template',
bind-resources,
)
sib-display(
data-fields='client.logo,label-description, description, label-client, client',
widget-team='sib-display-lookuplist',
value-label-description="Description:",
value-label-client="Client:",
template-client='client-template',
value-const-title1="N°:",
value-const-title2="-",
bind-resources,
)
h2 Team:
div.containerH
sib-display.members-list-condensed(
id-suffix='team',
data-fields='member.avatar, member.user',
data-fields='member.avatar, member.user, member.roles',
widget-member.avatar='sib-display-img',
widget-member.user='hdapp-userinfo',
widget-member.roles='sib-display-lookuplist',
next='member',
bind-resources,
)

View File

@ -7,6 +7,7 @@ sib-router#project-router(default-route='project-profile')
div Edit
sib-route(name='project-create')
div Add new
div.scrollY
#project-views-container
#project-chat
include page-project-chat.pug

View File

@ -7,7 +7,6 @@
// //float: right;
// }
#offers-list {
> div {
> sib-display {
@ -22,19 +21,23 @@
display: block;
@extend h2;
}
label {
display: none;
}
}
}
}
[name='user-thumb'] {
display: flex;
align-items: center;
margin: -0.25em;
> * {
margin: 0.25em;
}
sib-display-img {
width: 2.5em;
height: 2.5em;
@ -48,32 +51,37 @@
display: flex;
align-items: center;
margin: -0.25em;
> * {
margin: 0.25em;
}
strong {
@extend %button;
}
}
// skills
#member-profile sib-display-lookuplist,
#profiles-list sib-display-lookuplist,
sib-display-lookuplist {
&[name$='skills'] {
display: block;
ul,
li {
li,
ul {
display: block;
margin: 0;
padding: 0;
list-style: none;
}
ul {
display: flex;
flex-wrap: wrap;
margin: 1em -0.25em;
}
li {
padding: 0.5em 1em;
border: 1px solid;
@ -82,12 +90,13 @@ sib-display-lookuplist {
}
}
}
// group
#group-profile {
sib-display-div[name='name'] div {
@extend h1;
}
sib-display-div[name='label-description'] div {
@extend h2;
}
@ -102,14 +111,14 @@ sib-display-lookuplist {
height: 400px;
height: calc(100vh - 143px - 3em);
height: calc(100vh - var(--pos-top, 143px) - 3em);
> sib-chat {
@include pos();
}
}
// member-profile && members
.members-list-condensed {
display: block;
img {
width: 50px;
height: 50px;
@ -117,23 +126,44 @@ sib-display-lookuplist {
object-fit: cover;
object-position: top;
}
label {
display: none;
}
> div > sib-display > div {
margin: 1em 0;
display: flex;
}
display: grid;
grid-template-columns: [first] 50px [middle] auto [end];
grid-template-rows: [first] 25px [middle] 25px [end];
align-items: center;
ul{
padding-left: 1em;
margin-top: 0px;
margin-bottom: 0px;
list-style-type: none;
}
>[name$="user"]{
color: $color-black;
}
>[name$="avatar"]{
grid-column-start: first;
grid-column-end: middle;
grid-row-start: first;
grid-row-end: end;
}
}
// ul {
// padding-left: 1em;
// }
}
#profiles-list > div > sib-display {
cursor: pointer;
}
sib-display#member-info,
#profiles-list > div > sib-display {
#profiles-list > div > sib-display,
sib-display#member-info {
display: block;
position: relative;
@extend %frame;
@ -142,6 +172,7 @@ sib-display#member-info,
label {
display: none;
}
sib-display-img {
$width: 55%;
display: block;
@ -150,6 +181,7 @@ sib-display#member-info,
padding-bottom: $width;
height: 0;
margin: 2em auto;
img {
display: block;
position: absolute;
@ -170,35 +202,44 @@ sib-display#member-info,
margin-bottom: 1em;
text-align: center;
}
hdapp-userinfo {
@extend h1;
}
div[name='pseudonym'] {
div {
display: inline;
}
}
[name=infos] {
margin: 2em 0;
> * {
display: block;
margin: 0.5em 0;
}
}
ul[name$='roles'] * {
@include icon('user');
}
ul[name$='cell'] * {
@include icon('location-pin');
}
sib-display-mailto {
display: block;
@include icon('envelope');
}
sib-display-tel {
display: block;
@include icon('phone');
}
hdapp-hyperlink {
display: block;
@include icon('link');
@ -212,6 +253,7 @@ sib-display#member-info,
hdapp-available {
display: block;
text-align: right;
strong {
@extend %button;
}
@ -219,6 +261,7 @@ hdapp-available {
#profiles-list {
display: block;
> div {
display: grid;
margin-top: 1em;
@ -226,35 +269,42 @@ hdapp-available {
grid-gap: 1em;
}
}
#profiles-list > sib-form > form {
display: grid;
grid-template-columns: 50% 50%;
label {
flex-basis: 5em;
flex-shrink: 0;
}
input {
flex-grow: 1;
min-width: 0;
}
input[type="submit"] {
display: none
display: none;
}
}
#offers-list > sib-form > form {
display: grid;
grid-template-columns: 50% 50%;
label {
flex-basis: 5em;
flex-shrink: 0;
}
input {
flex-grow: 1;
min-width: 0;
}
input[type="submit"] {
display: none
display: none;
}
}
@ -264,6 +314,7 @@ hdapp-available {
@include list-reset();
}
}
#member-profile {
@include media('width>tablet') {
div[name='header'] {
@ -271,17 +322,21 @@ hdapp-available {
width: 50%;
}
}
div[name='name'] {
@extend h1;
div {
display: inline-block;
margin-right: 0.4em;
}
}
div[name='pseudonym'] {
margin-top: -1em;
margin-bottom: 1em;
}
#member-info {
&:after {
content: '';
@ -290,46 +345,76 @@ hdapp-available {
}
}
}
// projects
#project-profile {
div[name^='label-'] {
#project-profile sib-display {
sib-display-div {
> [name^='label-'] {
@extend h2;
}
}
[name='title'] {
@extend h1;
> sib-display-div {
display: inline-block;
}
div[name='number'] {
display: flex;
> * {
padding-left: 0.5em;
padding-right: 0.5em;
&:before {
content: '#';
}
> [name^='const-'] {
padding-left: 0;
padding-right: 0;
}
div[name='name'] {
> [name='name'] {
font-weight: normal;
&:before {
padding: 0 0.5em;
content: '/';
}
}
}
}
#clientBox {
margin-top: 1em;
display: grid;
grid-template-columns: 50% 50%;
border-top-width: 1px;
border-top-style: solid;
border-left-width: 1px;
border-left-style: solid;
> * {
label{
font-weight: bold;
margin-right: 1em;
}
border-right-width: 1px;
border-right-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
padding: 1em;
> div{
margin-bottom: 1em;
}
}
}
#project-edit form {
display: flex;
flex-direction: column;
align-items: stretch;
> * {
display: flex;
margin-bottom: 1em;
label {
flex-basis: 8em;
flex-shrink: 0;
}
input,textarea{
input,
textarea {
flex-grow: 1;
min-width: 0;
}
@ -342,8 +427,9 @@ hdapp-available {
margin-left: 1em;
flex-basis: content;
border-radius: 2em;
div[class*="icon-"] {
margin-right: 1em
margin-right: 1em;
}
}
@ -351,6 +437,7 @@ hdapp-available {
@extend .right-link;
background-color: $color-white;
color: $color-black;
.icon-idea {
background-color: $color-yellow-light;
border-radius: 100%;
@ -372,20 +459,19 @@ hdapp-available {
color: $color-white;
font-weight: bold;
text-transform: uppercase;
.icon-plus {
flex-shrink: 0;
flex-grow: 0;
justify-content: center;
align-items: center;
display: flex;
&:before {
//font-size: 1.3em;
}
}
}
/*
label {
@extend h2;

View File

@ -169,7 +169,10 @@ h4 {
max-width: 650px;
}
/* sub menu (right menu) */
#mainContainer > div {
#mainContainer {
display: flex;
> div {
flex-grow: 1;
display: flex;
flex-direction: row-reverse;
align-items: stretch;
@ -219,8 +222,12 @@ h4 {
}
> div {
margin: 2.6em;
flex: 1 1 0;
//display: flex;
//margin: 2.6em;
padding:2.6em;
//flex: 1 1 0;
flex-grow: 1;
}
}
}
@ -303,3 +310,7 @@ sib-trigger.back {
.reverse {
flex-direction: row-reverse;
}
.scrollY {
overflow-y: auto;
}

@ -1 +1 @@
Subproject commit 837d45a5a38c201456220ffe10e1dbc2ff526b55
Subproject commit c876ae44e88d09b6862c878f53abdbf5d210fe52