update: table - some padding added to user-thulb in table + new width for table's columns

This commit is contained in:
gaelle morin 2020-06-10 13:27:57 +02:00
parent 3629c0c20b
commit 213c6a78ab
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
6 changed files with 40 additions and 33 deletions

View File

@ -40,6 +40,7 @@
&>* { &>* {
display: table-cell; display: table-cell;
vertical-align: middle;
} }
} }
} }
@ -55,6 +56,8 @@
&>* { &>* {
display: table-cell; display: table-cell;
text-align: center;
vertical-align: middle;
} }
} }
} }
@ -100,24 +103,28 @@
/* Fix. Could disappear when we can add .class on set fields */ /* Fix. Could disappear when we can add .class on set fields */
[name^='cell-1'] { [name^='cell-1'] {
@extend .w786; @extend .w280;
@extend .border; @extend .border;
} }
.w786 { .w280 {
width: 786px; width: 280px;
}
.w70 {
width: 70px;
} }
.w262 { .w262 {
width: 262px; width: 262px;
} }
.w349 { .W152 {
width: 349px; width: 152px;
} }
.w698 { .w355 {
width: 698px; width: 355px;
} }
.hashtag::before { .hashtag::before {
@ -129,7 +136,6 @@
.cell-with-buttons { .cell-with-buttons {
text-align: center; text-align: center;
vertical-align: middle;
[name='button'] { [name='button'] {
@ -149,14 +155,16 @@
.cell-with-name { .cell-with-name {
color: var(--color-secondary); color: var(--color-secondary);
font-weight: 600; font-weight: 600;
text-align: center; padding-left: 2rem;
vertical-align: middle; text-align: left;
} }
/* Styles of elements inside cells */ /* Styles of elements inside cells */
.user-thumb>div, .user-thumb>div,
[name='user-thumb'] { [name='user-thumb'] {
vertical-align: middle;
text-align: left;
@extend %user-thumb__grid; @extend %user-thumb__grid;
padding: 0 2.2rem; padding: 0 2.2rem;
@ -175,7 +183,6 @@
.table sib-ac-checker { .table sib-ac-checker {
text-align: center; text-align: center;
vertical-align: middle;
} }
.circle-join { .circle-join {

View File

@ -3,7 +3,7 @@
display: grid; display: grid;
grid-column-gap: 1.6rem; grid-column-gap: 1.6rem;
grid-template-columns: 7vh auto; grid-template-columns: 7vh auto;
grid-template-rows: repeat(2, 5.2vh); grid-template-rows: repeat(2, auto);
} }
%user-thumb__grid-sup { %user-thumb__grid-sup {
@ -93,5 +93,5 @@
/* Add extra spaces to user-thumbs that are inside a table */ /* Add extra spaces to user-thumbs that are inside a table */
.user-thumb.is-spaced>div, .user-thumb.is-spaced>div,
[name='user-thumb'] { [name='user-thumb'] {
padding: 0 2.2rem; padding: 0.8rem 2.2rem;
} }

View File

@ -42,9 +42,9 @@
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w349 Nom div.w280 Nom
div.w349 Administrateurs div.w280 Administrateurs
div.w349 Rejoindre div.w280 Rejoindre
sib-widget(name='hubl-admin-circle-leave-button') sib-widget(name='hubl-admin-circle-leave-button')
template template
@ -61,9 +61,9 @@
nested-field='circles' nested-field='circles'
fields='circle.name, circle.owner, leaveButton' fields='circle.name, circle.owner, leaveButton'
class-circle.name='w349 border cell-with-name' class-circle.name='w280 border cell-with-name'
class-circle.owner='w349 border cell-with-id-card' class-circle.owner='w280 border cell-with-id-card'
class-leaveButton='w349 border cell-with-buttons' class-leaveButton='w280 border cell-with-buttons'
action-leaveButton="joinButton" action-leaveButton="joinButton"
widget-leaveButton="hubl-admin-circle-leave-button" widget-leaveButton="hubl-admin-circle-leave-button"
@ -90,11 +90,11 @@
data-src=`${endpoints.circles || endpoints.get.circles}joinable/` data-src=`${endpoints.circles || endpoints.get.circles}joinable/`
fields='name, owner, members' fields='name, owner, members'
class-name='w349 border cell-with-name' class-name='w280 border cell-with-name'
class-owner='w349 border cell-with-id-card' class-owner='w280 border cell-with-id-card'
widget-owner='hubl-circle-owner' widget-owner='hubl-circle-owner'
class-members='w349 border cell-with-buttons' class-members='w280 border cell-with-buttons'
widget-members="hubl-admin-circle-join-button" widget-members="hubl-admin-circle-join-button"
order-by="name" order-by="name"

View File

@ -31,8 +31,8 @@
.table-wrapper .table-wrapper
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w786 Nom div.w280 Nom
div.w262 div.w70
sib-display( sib-display(
class='table-body' class='table-body'
@ -47,7 +47,7 @@
label-actions='Edit' label-actions='Edit'
action-actions='admin-users-edit' action-actions='admin-users-edit'
class-actions='w262 border cell-with-buttons' class-actions='w70 border cell-with-buttons'
widget-actions='hubl-sib-action-custom' widget-actions='hubl-sib-action-custom'
order-by='username' order-by='username'

View File

@ -7,8 +7,8 @@ div.content-box__info
sib-widget(name='hubl-team-template-edit') sib-widget(name='hubl-team-template-edit')
template template
sib-display.user-thumb( sib-display.user-thumb.is-spaced(
class='w698 cell border cell-with-id-card user-thumb' class='w355 cell border cell-with-id-card user-thumb'
data-src='${await value.user}' data-src='${await value.user}'
fields='account.picture, sup(name, groups), sub(profile.city)' fields='account.picture, sup(name, groups), sub(profile.city)'
@ -24,7 +24,7 @@ div.content-box__info
) )
sib-ac-checker( sib-ac-checker(
class='w349 cell border' class='W152 cell border'
permission="acl:Delete" permission="acl:Delete"
data-src="${value['@id']}" data-src="${value['@id']}"
) )
@ -36,7 +36,7 @@ div.content-box__info
//- Only to show the table grid //- Only to show the table grid
sib-ac-checker( sib-ac-checker(
class='w349 cell border' class='W152 cell border'
no-permission="acl:Delete" no-permission="acl:Delete"
data-src="${value['@id']}" data-src="${value['@id']}"
) )
@ -91,8 +91,8 @@ div.content-box__info
.table-wrapper .table-wrapper
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w698 Nom div.w355 Nom
div.w349 Accès div.W152 Accès
//-class='table-body' //-class='table-body'
sib-display( sib-display(

View File

@ -56,8 +56,8 @@ div.content-box__info.flex
.table-wrapper .table-wrapper
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w698 Nom div.w355 Nom
div.w349 Accès div.W152 Accès
//-class='table-body' //-class='table-body'
sib-display( sib-display(