pull/3619/head
Alex Aragon 5 years ago
parent 480e103cdf
commit 68ee8f319e
  1. 80
      app/Resources/public/css/custompage.css
  2. 3
      app/Resources/public/css/themes/chamilo/custompage.css
  3. 1
      custompages/index-unlogged-dist.php
  4. 2
      main/inc/lib/template.lib.php

@ -0,0 +1,80 @@
:root {
--primary-color: #486F88;
--success-color: #16D090;
}
body, html {
height: 100%;
}
body {
margin: 0;
line-height: 1.5;
color: #212529;
background-color: #fff;
}
.custompage .limiter {
width: 100%;
margin: 0 auto;
}
.custompage .container-login {
width: 100%;
min-height: 100vh;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
padding: 15px;
background: #f2f2f2;
}
.custompage .wrap-login {
background: #fff;
border-radius: 10px;
padding: 30px 45px;
box-shadow: 0 12px 26px rgba(16, 30, 115, 0.06);
}
.custompage .width-login{
width: 390px;
}
.custompage .width-register{
width: 690px;
}
.custompage h3.title, legend{
font-weight: 900;
font-size: 24px;
color: #486F88;
padding: 1rem 0;
}
.custompage label{
color: #486F88;
font-weight: 400;
}
.custompage .form-control,
.custompage .bootstrap-select .dropdown-toggle.btn-default{
border: 2px solid #B3C8D7;
}
.custompage .last-password{
padding: 2.5rem 0;
text-align: center;
}
.btn-primary {
color: #fff;
background-color: var(--primary-color);
border-color: var(--primary-color);;
text-transform: uppercase;
font-weight: bold;
}
.btn-success {
color: #fff;
background-color: var(--success-color);
border-color: var(--success-color);
text-transform: uppercase;
font-weight: bold;
}
.custompage .software-name{
text-align: center;
padding: 2rem 0;
margin-top: 1rem;
display: inline-block;
width: 100%;
font-size: 12px;
}

@ -1,5 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
:root {
--primary-color: #486F88;
--success-color: #16D090;
@ -13,7 +11,6 @@ body {
line-height: 1.5;
color: #212529;
background-color: #fff;
font-family: 'Lato', sans-serif;
}
.custompage .limiter {
width: 100%;

@ -51,7 +51,6 @@ if (api_get_setting('allow_registration') === 'true') {
$urlLostPassword = api_get_path(WEB_CODE_PATH) . 'auth/lostPassword.php?language=' . api_get_interface_language();
$template->assign('url_lost_password', $urlLostPassword);
$template->assign('mgs_flash', $flash);
$template->assign('section_name', $this_section);
$layout = $template->get_template('custompage/login.tpl');
$content = $template->fetch($layout);

@ -666,6 +666,8 @@ class Template
$cssCustomPage = api_get_path(SYS_CSS_PATH).$this->themeDir."custompage.css";
if (is_file($cssCustomPage)) {
$css[] = api_get_path(WEB_CSS_PATH).$this->themeDir.'custompage.css';
} else {
$css[] = api_get_path(WEB_CSS_PATH).'custompage.css';
}
}

Loading…
Cancel
Save