Add WIP CSS
(cherry picked from commit 6d8d968ec2505159264dd1c406329d8894089fea)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
===============================================================================
|
||||
This file may contain extra CSS rules loaded on all apps page (*if* the app
|
||||
nginx's conf does include the appropriate snippet) for the small YunoHost
|
||||
button in bottom-right corner + portal overlay.
|
||||
|
||||
The yunohost button corresponds to : #ynh-overlay-switch
|
||||
The yunohost portal overlay / iframe corresponds to : #ynh-overlay
|
||||
|
||||
BE CAREFUL that you should *not* add too-general rules that apply to
|
||||
non-yunohost elements (for instance all 'a' or 'p' elements...) as it will
|
||||
likely break app's rendering
|
||||
===============================================================================
|
||||
*/
|
||||
#ynh-overlay-switch {
|
||||
background-image: url("./cloud.png");
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
===============================================================================
|
||||
This file contain extra CSS rules to customize the YunoHost user portal and
|
||||
can be used to customize app tiles, buttons, etc...
|
||||
===============================================================================
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'NotoSans';
|
||||
src: url("typo/NotoSans-Regular.ttf");
|
||||
font-family: 'NotoSansBold';
|
||||
src: url("typo/NotoSans-CondensedBold.ttf");
|
||||
}
|
||||
/* Global Main Setup */
|
||||
* {
|
||||
font-family: 'NotoSans';
|
||||
}
|
||||
.element-invisible {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
#ynh-logo {
|
||||
margin-top: 20%;
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.ynh-user-portal {
|
||||
background-image: url("pictures/background.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position-x: center;
|
||||
}
|
||||
|
||||
|
||||
/* Login Rules */
|
||||
.messages, .login
|
||||
{
|
||||
width: 800px;
|
||||
padding: 4px 20px;
|
||||
}
|
||||
|
||||
.ynh-wrapper
|
||||
{
|
||||
background-image: url("pictures/login-logo.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-position-x: 50px;
|
||||
}
|
||||
|
||||
.messages
|
||||
{
|
||||
float: left;
|
||||
background-color: #5d5446;
|
||||
border-radius: 0px 0px 15px 15px;
|
||||
margin-top: 256px;
|
||||
|
||||
/* height: 312px; */
|
||||
color : #c2a593;
|
||||
|
||||
/* Typo Rules */
|
||||
font-family: 'NotoSansBold';
|
||||
font-size: 1.8em;
|
||||
/*text-transform: capitalize;*/
|
||||
font-variant: small-caps;
|
||||
text-align: center;
|
||||
|
||||
/* Drop Shadow */
|
||||
box-shadow: 8px 8px 8px rgb(16, 28, 22);
|
||||
}
|
||||
|
||||
.login
|
||||
{
|
||||
background-color: #2c2b27;
|
||||
height: 256px;
|
||||
border-radius: 15px 15px 0px 0px;
|
||||
box-shadow: 8px 8px 8px rgb(16, 28, 22);
|
||||
}
|
||||
|
||||
.icon
|
||||
{
|
||||
color: red;
|
||||
}
|
||||
.login-form
|
||||
{
|
||||
float: right;
|
||||
margin-top: -256px;
|
||||
display: grid;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.form-group
|
||||
{
|
||||
display: grid;
|
||||
grid-template-columns: 52px 90%;
|
||||
/* width: 100%; */
|
||||
height: 52px;
|
||||
margin: 7px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.form-text
|
||||
{
|
||||
width: 90%;
|
||||
height: 52px;
|
||||
padding: 0 5%;
|
||||
border: 0;
|
||||
font-family: 'NotoSansBold';
|
||||
background-color: #5d5446;
|
||||
color: #c2a593;
|
||||
}
|
||||
|
||||
.icon-user, .icon-lock
|
||||
{
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
}
|
||||
.icon-user {
|
||||
background-image: url("pictures/picto.jpg");
|
||||
}
|
||||
.icon-lock {
|
||||
background-image: url("pictures/picto.jpg");
|
||||
background-position: 0 -52px;
|
||||
}
|
||||
input[type="submit"] {
|
||||
width: 400px;
|
||||
height: 52px;
|
||||
margin: 7px 0;
|
||||
padding: 0 0 0 70px;
|
||||
border: 0px;
|
||||
background-image: url("pictures/picto.jpg");
|
||||
background-position: 0 52px;
|
||||
background-repeat: repeat-y;
|
||||
background-color: #5d5446;
|
||||
|
||||
/* Typo Setup */
|
||||
font-family: 'NotoSansBold';
|
||||
color: #c2a593;
|
||||
text-align: left;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
===============================================================================
|
||||
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
|
||||
}
|
||||
*/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user