Merge branch 'front-page' of https://git.xwikisas.com/xwiki-labs/cryptpad into front-page
This commit is contained in:
commit
4d563af045
@ -2,11 +2,11 @@
|
|||||||
font-family: Neuropolitical;
|
font-family: Neuropolitical;
|
||||||
src: url(./customize/fonts/neuropolitical.ttf)
|
src: url(./customize/fonts/neuropolitical.ttf)
|
||||||
}
|
}
|
||||||
div#cp-main.cp-page-index { @import "./pages/page-index.less"; }
|
body.cp-page-index { @import "./pages/page-index.less"; }
|
||||||
div#cp-main.cp-page-contact { @import "./pages/page-contact.less"; }
|
body.cp-page-contact { @import "./pages/page-contact.less"; }
|
||||||
div#cp-main.cp-page-login { @import "./pages/page-login.less"; }
|
body.cp-page-login { @import "./pages/page-login.less"; }
|
||||||
div#cp-main.cp-page-register { @import "./pages/page-register.less"; }
|
body.cp-page-register { @import "./pages/page-register.less"; }
|
||||||
div#cp-main.cp-page-what-is-cryptpad { @import "./pages/page-what-is-cryptpad.less"; }
|
body.cp-page-what-is-cryptpad { @import "./pages/page-what-is-cryptpad.less"; }
|
||||||
div#cp-main.cp-page-about { @import "./pages/page-about.less"; }
|
body.cp-page-about { @import "./pages/page-about.less"; }
|
||||||
div#cp-main.cp-page-privacy { @import "./pages/page-privacy.less"; }
|
body.cp-page-privacy { @import "./pages/page-privacy.less"; }
|
||||||
div#cp-main.cp-page-terms { @import "./pages/page-terms.less"; }
|
body.cp-page-terms { @import "./pages/page-terms.less"; }
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
@background_lighter: rgba(0,0,0,0.1);
|
@background_lighter: rgba(0,0,0,0.1);
|
||||||
@background_darker: rgba(0,0,0,0.4);
|
@background_darker: rgba(0,0,0,0.4);
|
||||||
&#cp-main {
|
#cp-main {
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
background: linear-gradient( @background_darker, @background_lighter ), url('/customize/bg14.jpg');
|
background: linear-gradient( @background_darker, @background_lighter ), url('/customize/bg14.jpg');
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|||||||
@ -78,6 +78,15 @@ $(function () {
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// add class on info-pages
|
||||||
|
var css = location.pathname.replace(/(\/$|^\/|.html$)/gm, "")
|
||||||
|
.replace(/[^a-zA-Z]/gi, "-");
|
||||||
|
if (css === '')
|
||||||
|
{
|
||||||
|
css = 'index';
|
||||||
|
}
|
||||||
|
$('body').addClass('cp-page-' + css);
|
||||||
}
|
}
|
||||||
|
|
||||||
require([
|
require([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user