From 55c8b2019c0deedb109edcad3f989a43f52ae085 Mon Sep 17 00:00:00 2001 From: gaelle morin Date: Mon, 13 Apr 2020 10:41:04 +0200 Subject: [PATCH] update: wip on the 'Leave button' --- src/dependencies.pug | 62 +++++++++++----------- src/styles/layout/circle/circle-admin.scss | 32 +++++++++++ src/views/admin/page-admin-circles.pug | 2 +- 3 files changed, 64 insertions(+), 32 deletions(-) diff --git a/src/dependencies.pug b/src/dependencies.pug index 76ab35d..9efccab 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -1,7 +1,7 @@ script(src="/scripts/index.js") //- Scripts - use add `"libLocal" = true` on config.json to use your local `lib` folder -if libLocal +//-if libLocal script(type="module" src="/lib/sib-oidc/index.js") script(type="module" src="/lib/sib-router/src/index.js") script(type="module" src="/lib/sib-notifications/index.js") @@ -20,7 +20,7 @@ if libLocal if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard) >>>>>>> 7e58f36... update: test in dependencies script(type="module" src="/lib/sib-dashboard/sib-dashboard.js") -else +//-else script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8") script(type="module" src="https://unpkg.com/@startinblox/core@0.9") script(type="module" src="https://unpkg.com/@startinblox/router@0.7") @@ -48,36 +48,36 @@ else //- script(src="/scripts/index.js") //- Scripts - use add `"libLocal" = true` on config.json to use your local `lib` folder -//- - if libLocal - script(type="module" src="/lib/sib-oidc/index.js") - script(type="module" src="/lib/sib-router/src/index.js") - script(type="module" src="/lib/sib-notifications/index.js") - if endpoints.users || (endpoints.get && endpoints.get.users) - script(type="module" src="/lib/sib-chat/sib-chat.js") - if endpoints.events || (endpoints.get && endpoints.get.events) - script(type="module" src="/lib/sib-event/sib-event.js") - if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) - script(type="module" src="/lib/sib-job-board/sib-job-board.js") - script(type="module" src="/lib/sib-conversation/sib-conversation.js") - if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) - script(type="module" src="/lib/sib-directory/sib-directory.js") - else - script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8") - script(type="module" src="https://unpkg.com/@startinblox/core@0.9") - script(type="module" src="https://unpkg.com/@startinblox/router@0.7") - script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.3") - if endpoints.users || (endpoints.get && endpoints.get.users) - script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.5") - if endpoints.events || (endpoints.get && endpoints.get.events) - script(type="module" src="https://unpkg.com/@startinblox/component-event@0.1") - if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) - script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3") - script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3") - if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) - script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3") - script(type="module" src="/lib/sib-dashboard/sib-dashboard.js") +if libLocal + script(type="module" src="/lib/sib-oidc/index.js") + script(type="module" src="/lib/sib-router/src/index.js") + script(type="module" src="/lib/sib-notifications/index.js") + if endpoints.users || (endpoints.get && endpoints.get.users) + script(type="module" src="/lib/sib-chat/sib-chat.js") + if endpoints.events || (endpoints.get && endpoints.get.events) + script(type="module" src="/lib/sib-event/sib-event.js") + if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) + script(type="module" src="/lib/sib-job-board/sib-job-board.js") + script(type="module" src="/lib/sib-conversation/sib-conversation.js") + if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) + script(type="module" src="/lib/sib-directory/sib-directory.js") +else + script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8") + script(type="module" src="https://unpkg.com/@startinblox/core@0.9") + script(type="module" src="https://unpkg.com/@startinblox/router@0.7") + script(type="module" src="https://unpkg.com/@startinblox/component-notifications@0.3") + if endpoints.users || (endpoints.get && endpoints.get.users) + script(type="module" src="https://unpkg.com/@startinblox/component-chat@0.5") + if endpoints.events || (endpoints.get && endpoints.get.events) + script(type="module" src="https://unpkg.com/@startinblox/component-event@0.1") + if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers) + script(type="module" src="https://unpkg.com/@startinblox/component-job-board@0.3") + script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3") + if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users)) + script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3") + +script(type="module" src="/lib/sib-dashboard/sib-dashboard.js") diff --git a/src/styles/layout/circle/circle-admin.scss b/src/styles/layout/circle/circle-admin.scss index d3241dc..79dd808 100644 --- a/src/styles/layout/circle/circle-admin.scss +++ b/src/styles/layout/circle/circle-admin.scss @@ -6,4 +6,36 @@ .admin-header__title { @extend h3; } +} + +#admin-circle-list { + + /* Allow click on the sib-delete instead of only on the button */ + sib-delete { + background: none; + border: none; + position: relative; + background: purple; + border: purple; + width: 122px; + height: 17px; + } + + .patate>button { + display: inline-block; + background: none; + border: none; + position: absolute; + z-index: 1000; + left: 0; + color: white; + width: 100%; + text-align: center; + } +} + +sib-delete::before{ + position: absolute; + z-index: 900; + left: 1rem; } \ No newline at end of file diff --git a/src/views/admin/page-admin-circles.pug b/src/views/admin/page-admin-circles.pug index c4428bd..dfd2c34 100644 --- a/src/views/admin/page-admin-circles.pug +++ b/src/views/admin/page-admin-circles.pug @@ -46,7 +46,7 @@ sib-widget(name='admin-circle-leave-button') template sib-delete( - class='button text-bold text-uppercase reversed button-dark bordered with-icon icon-close' + class='button text-bold text-uppercase reversed button-dark bordered with-icon icon-close patate' data-src="${src}" data-label='Leave circle' )