mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Use a more explicit id for overlay toggle button.
This commit is contained in:
parent
c8b6d1b9ac
commit
05c7f8f47c
2 changed files with 9 additions and 9 deletions
|
@ -16,8 +16,8 @@ html.ynh-panel-active {
|
||||||
|
|
||||||
body {/*overflow-y: scroll;*/}
|
body {/*overflow-y: scroll;*/}
|
||||||
|
|
||||||
#ynhportal,
|
#ynh-overlay-switch,
|
||||||
#ynhportal *,
|
#ynh-overlay-switch *,
|
||||||
#ynh-overlay,
|
#ynh-overlay,
|
||||||
#ynh-overlay * {
|
#ynh-overlay * {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
|
@ -152,7 +152,7 @@ body {/*overflow-y: scroll;*/}
|
||||||
/* ******************************************************************
|
/* ******************************************************************
|
||||||
Button
|
Button
|
||||||
******************************************************************* */
|
******************************************************************* */
|
||||||
#ynhportal {
|
#ynh-overlay-switch {
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 10000000;
|
z-index: 10000000;
|
||||||
|
@ -170,14 +170,14 @@ body {/*overflow-y: scroll;*/}
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
/*#ynhportal.visible,*/
|
/*#ynh-overlay-switch.visible,*/
|
||||||
#ynhportal:hover {
|
#ynh-overlay-switch:hover {
|
||||||
background-color: #41444f;
|
background-color: #41444f;
|
||||||
border-color: #41444f;
|
border-color: #41444f;
|
||||||
background-color: #111;
|
background-color: #111;
|
||||||
border-color: #111;
|
border-color: #111;
|
||||||
}
|
}
|
||||||
/*html.ynh-panel-active #ynhportal {right: 47px;}*/
|
/*html.ynh-panel-active #ynh-overlay-switch {right: 47px;}*/
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
#ynh-overlay {
|
#ynh-overlay {
|
||||||
|
@ -730,7 +730,7 @@ body {/*overflow-y: scroll;*/}
|
||||||
#ynh-user > * { display: block!important; }
|
#ynh-user > * { display: block!important; }
|
||||||
#ynh-user * { }
|
#ynh-user * { }
|
||||||
#ynh-overlay .user-info { margin-left: 0; }
|
#ynh-overlay .user-info { margin-left: 0; }
|
||||||
#ynhportal {
|
#ynh-overlay-switch {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 75px;
|
height: 75px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,13 +202,13 @@ domReady(function(){
|
||||||
|
|
||||||
// Create portal link
|
// Create portal link
|
||||||
var portal = document.createElement('a');
|
var portal = document.createElement('a');
|
||||||
portal.setAttribute('id', 'ynhportal');
|
portal.setAttribute('id', '#ynh-overlay-switch');
|
||||||
portal.setAttribute('href', '/yunohost/sso/');
|
portal.setAttribute('href', '/yunohost/sso/');
|
||||||
portal.setAttribute('class', 'disableAjax');
|
portal.setAttribute('class', 'disableAjax');
|
||||||
document.body.insertBefore(portal, null);
|
document.body.insertBefore(portal, null);
|
||||||
|
|
||||||
// Portal link is draggable, for user convenience
|
// Portal link is draggable, for user convenience
|
||||||
dragg('ynhportal');
|
dragg('ynh-overlay-switch');
|
||||||
|
|
||||||
|
|
||||||
// Create overlay element
|
// Create overlay element
|
||||||
|
|
Loading…
Reference in a new issue