Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.1:portalcustom [2019/09/05 15:22]
coudot [Password management]
documentation:2.1:portalcustom [2020/04/03 10:49] (current)
cmaudoux [Password Policy]
Line 29: Line 29:
 </​note>​ </​note>​
  
 +==== Custom CSS file ====
 +
 +You can define a custom CSS file, for example ''​custom.css'',​ which will be loaded after default CSS files. This file needs to be created in the static repository (''/​usr/​share/​lemonldap-ng/​portal/​htdocs/​static/​boostrap/​css''​).
 +
 +Then set this value in Custom CSS parameter : ''​bootstrap/​css/​custom.css''​.
 +
 +Sample CSS file, to remove white background of main logo:
 +<file css>
 +#header img {
 +  background-color:​ transparent;​
 +}
 +</​file>​
  
 ===== Skin ===== ===== Skin =====
Line 113: Line 125:
 Then you can add your media to ''​myskin/​images'',​ you will be able to use them in HTML template with this code: Then you can add your media to ''​myskin/​images'',​ you will be able to use them in HTML template with this code:
 <​code>​ <​code>​
-<img src="<​TMPL_VAR NAME="​STATIC_PREFIX">​myskin/​images/​logo.png"​ class="​img-responsive center-block"​ />+<img src="<​TMPL_VAR NAME="​STATIC_PREFIX">​myskin/​images/​logo.png"​ class="​mx-auto d-block"​ />
 </​code>​ </​code>​
  
 To change CSS, two options: To change CSS, two options:
-  * Edit myksin/css/skin.css and myskin/css/skin.min.css+  * Edit myksin/css/styles.css and myskin/css/styles.min.css
   * Create a new CSS file, for example myskin/​css/​myskin.css and load it in customhead.tpl:​   * Create a new CSS file, for example myskin/​css/​myskin.css and load it in customhead.tpl:​
 <​code>​ <​code>​
Line 225: Line 237:
   * **Minimal upper characters**:​ leave 0 to bypass the check   * **Minimal upper characters**:​ leave 0 to bypass the check
   * **Minimal digit characters**:​ leave 0 to bypass the check   * **Minimal digit characters**:​ leave 0 to bypass the check
 +  * **Minimal special characters**:​ leave 0 to bypass the check
 +  * **Allowed special characters**:​ set blanck to forbid special characters (''​_''​ is not a special character)
   * **Display policy in password form**: enable this to display an information message about password policy constraints   * **Display policy in password form**: enable this to display an information message about password policy constraints