mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Unsplash theme: Adding doc + delete unnecessary JS file.
This commit is contained in:
parent
c4ec12116a
commit
5428b7fd4b
2 changed files with 5 additions and 35 deletions
|
@ -1,7 +1,9 @@
|
||||||
/*
|
/*
|
||||||
===============================================================================
|
===============================================================================
|
||||||
This file contain extra CSS rules to customize the YunoHost user portal and
|
Unsplash themes for SSOWat's backgrounds
|
||||||
can be used to customize app tiles, buttons, etc...
|
|
||||||
|
WARNING: external images are queried from Unsplash API every time, which
|
||||||
|
makes this theme not suitable for off-the-internet clients...
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -22,6 +24,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.ynh-user-portal {
|
.ynh-user-portal {
|
||||||
|
/* If image is not yielded, fall back on traditional grey 'normal' background*/
|
||||||
background-image: url('https://source.unsplash.com/random/featured/?nature') !important;
|
background-image: url('https://source.unsplash.com/random/featured/?nature') !important;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
===============================================================================
|
|
||||||
This JS file may be used to customize the YunoHost user portal *and* also
|
|
||||||
will be loaded in all app pages if the app nginx's conf does include the
|
|
||||||
appropriate snippet.
|
|
||||||
|
|
||||||
You can monkeypatch init_portal (loading of the user portal) and
|
|
||||||
init_portal_button_and_overlay (loading of the button and overlay...) to do
|
|
||||||
custom stuff
|
|
||||||
===============================================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Monkeypatch init_portal to customize the app tile style
|
|
||||||
*
|
|
||||||
init_portal_original = init_portal;
|
|
||||||
init_portal = function()
|
|
||||||
{
|
|
||||||
init_portal_original();
|
|
||||||
// Some stuff here
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Monkey patching example to do custom stuff when loading inside an app
|
|
||||||
*
|
|
||||||
init_portal_button_and_overlay_original = init_portal_button_and_overlay;
|
|
||||||
init_portal_button_and_overlay = function()
|
|
||||||
{
|
|
||||||
init_portal_button_and_overlay_original();
|
|
||||||
// Custom stuff to do when loading inside an app
|
|
||||||
}
|
|
||||||
*/
|
|
Loading…
Reference in a new issue