feature(header): Issue#106 - add a logout button

This commit is contained in:
Gaëlle Morin 2019-04-04 16:41:23 +02:00
parent 43825c7606
commit bdf71bc3fb
4 changed files with 7 additions and 9 deletions

View File

@ -22,7 +22,7 @@ details#user-controls
#user-controls__panel #user-controls__panel
include page-user-panel.pug include page-user-panel.pug
button#login(onclick="document.querySelector('sib-auth').login();") login button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
sib-auth sib-auth

View File

@ -10,5 +10,4 @@ nav(role="user's functionalities menu")
sib-route(name='') sib-route(name='')
li li
a Admin a Admin
sib-route button(role='log out' onclick="document.querySelector('sib-auth').logout();") Log out
button(role='log out') Log out

View File

@ -194,7 +194,9 @@ details#user-controls {
button { button {
color: $color-text-base; color: $color-text-base;
margin: 1.6rem 1.3rem; padding: 1.6rem 1.3rem;
text-align: left;
width: 100%;
} }
} }
} }

View File

@ -4,10 +4,8 @@
display: none !important; display: none !important;
} }
*, * {
*::after, box-sizing: border-box;
*::before {
// box-sizing: inherit;
} }
:root { :root {
@ -16,7 +14,6 @@
--sib-notifications-theme: #{$color-46-100-50}; --sib-notifications-theme: #{$color-46-100-50};
body { body {
//box-sizing: border-box;
background-color: $color-anti-flash-white; background-color: $color-anti-flash-white;
color: $color-text-base; color: $color-text-base;
font-size: 1.6rem; font-size: 1.6rem;