buttons 'join, leave, delete circle' ok + button to add member ok

This commit is contained in:
Gaëlle Morin 2019-11-06 10:46:09 +01:00
parent 372ee5c6e8
commit b4911cfbb9
4 changed files with 46 additions and 64 deletions

View File

@ -46,9 +46,9 @@ sib-router(default-route='circle-profile')
div.box-button div.box-button
sib-ac-checker(permission='acl:Delete', bind-resources) sib-ac-checker(permission='acl:Delete', bind-resources)
sib-delete( sib-delete(
class='button text-bold text-uppercase button-blue bordered with-icon icon-trash'
bind-resources bind-resources
data-label='Delete Circle' data-label='Delete Circle'
class='button reversed-btn right-btn'
) )
sib-widget(name='join-leave-circle-button') sib-widget(name='join-leave-circle-button')
@ -58,9 +58,9 @@ sib-router(default-route='circle-profile')
data-src="${value['@id']}" data-src="${value['@id']}"
) )
sib-delete( sib-delete(
class='button btn-margin-left text-bold text-uppercase reversed button-dark bordered with-icon icon-close'
data-src="${value['@id']}" data-src="${value['@id']}"
data-label='Leave circle' data-label='Leave circle'
class='btn-margin-left'
) )
sib-display( sib-display(
@ -71,18 +71,19 @@ sib-router(default-route='circle-profile')
widget-members='join-leave-circle-button' widget-members='join-leave-circle-button'
) )
sib-form.btn-margin-left( button.button.btn-margin-left.text-bold.text-uppercase.reversed.button-dark.bordered.with-icon.icon-close.test
bind-resources sib-form(
nested-field='members' bind-resources
fields='user' nested-field='members'
label-user='' fields='user'
range-user=`${endpoints.users}` label-user=''
widget-user='sib-form-dropdown' range-user=`${endpoints.users}`
widget-user='sib-form-dropdown'
set-user-id-select="user" set-user-id-select="user"
submit-button='Join Circle' submit-button='Join Circle'
) )
#circle-edit(hidden) #circle-edit(hidden)

View File

@ -82,52 +82,6 @@
} }
} }
.button,
input[type='submit'],
sib-delete button {
border-radius: 100em;
cursor: pointer;
font-size: 1.4rem;
font-weight: bold;
padding: 0.55rem 2.5rem;
text-transform: uppercase;
}
input[type='submit'] {
background-color: $color-233-18-29;
border: none;
color: $color-0-0-100;
margin-left: auto;
margin-top: 3.2rem;
}
.blue-button {
background: $color-244-73-62;
color: white;
}
.yellow-button {
background: $color-43-100-50;
color: white;
}
.reversed-btn, sib-delete.reversed-btn button {
background-color: transparent;
border: 1px solid #6157e5;
color: #6157e5;
}
sib-delete.right-btn {
border: none;
border-radius: 0;
margin: 0;
padding: 0;
}
.btn-margin-left {
margin-left: 2.2rem;
}
sib-form[set-user-id-select] { sib-form[set-user-id-select] {
input[type="submit"] { input[type="submit"] {
@ -177,13 +131,24 @@
} }
>input[type='submit'] { >input[type='submit'] {
background-color: transparent; @extend
.button,
.btn-margin-left,
.text-bold,
.text-uppercase,
.button-blue,
.bordered;
margin-top: auto;
margin-bottom: auto;
/*background-color: transparent;
border: 1px solid $color-244-73-62; border: 1px solid $color-244-73-62;
color: $color-244-73-62; color: $color-244-73-62;
align-self: flex-end; align-self: flex-end;
margin-bottom: 0.6rem; margin-bottom: 0.6rem;
margin-left: 4.2rem; margin-left: 4.2rem;
margin-top: 0; margin-top: 0;*/
} }
} }

View File

@ -231,6 +231,10 @@ a,
font-size: 1.4rem; font-size: 1.4rem;
} }
&.btn-margin-left {
margin-left: 2.2rem;
}
&.small { &.small {
*, *,
@ -277,8 +281,8 @@ a,
font-size: 1.6rem; font-size: 1.6rem;
margin-right: 1rem; margin-right: 1rem;
&.icon-plus { &.icon-arrow-right {
@include icon('plus'); @include icon('trash');
} }
&.icon-close { &.icon-close {
@ -288,6 +292,14 @@ a,
&.icon-edit { &.icon-edit {
@include icon('pencil'); @include icon('pencil');
} }
&.icon-plus {
@include icon('plus');
}
&.icon-trash {
@include icon('trash');
}
} }
&.button-yellow { &.button-yellow {
@ -348,6 +360,10 @@ a,
} }
} }
&.test {
display: flex;
}
&.reversed { &.reversed {
&.button-yellow { &.button-yellow {
background-color: hsl(43, 100%, 50%); background-color: hsl(43, 100%, 50%);

View File

@ -37,12 +37,12 @@
.form-label.is-dark>label { .form-label.is-dark>label {
margin-top: 0; margin-top: 0;
>div:first-child { /*>div:first-child {
@extend h3; @extend h3;
font-weight: bold; font-weight: bold;
margin: 0 0 1.4rem; margin: 0 0 1.4rem;
text-transform: uppercase; text-transform: uppercase;
} }*/
} }
} }