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
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

View File

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

View File

@ -194,7 +194,9 @@ details#user-controls {
button {
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;
}
*,
*::after,
*::before {
// box-sizing: inherit;
* {
box-sizing: border-box;
}
:root {
@ -16,7 +14,6 @@
--sib-notifications-theme: #{$color-46-100-50};
body {
//box-sizing: border-box;
background-color: $color-anti-flash-white;
color: $color-text-base;
font-size: 1.6rem;