Commit df606822 authored by Roque's avatar Roque

erp5_web_project_ui: styles for project home pages

parent 3a7055cb
......@@ -216,4 +216,38 @@ input[type="submit"] {
.worklist-title {
color: #777777;
margin-top: 10px;
}
/* PROJECT HOME PAGE */
body.cke_editable h1 {
margin-top: 1.5em;
font-family: "Roboto", Arial, sans-serif;
color: #19535F;
font-size: 2em;
margin: 0.67em 0;
}
body.cke_editable h2 {
font-family: "Roboto", Arial, sans-serif;
font-weight: normal;
font-size: 25px;
line-height: 33px;
color: #19535F;
}
body.cke_editable p, body.cke_editable li, body.cke_editable span {
font-family: 'Heuristica', 'Helvetica', Times, serif;
}
body.cke_editable ul li, body.cke_editable p {
font-size: 1.25em;
line-height: 1.58em;
letter-spacing: -.003em;
}
body.cke_editable a {
color: #267B87;
text-decoration: none;
}
\ No newline at end of file
......@@ -21,7 +21,13 @@ SimpleQuery, ComplexQuery, Query*/
var parser = new DOMParser(), i,
oSerializer = new XMLSerializer(),
doc = parser.parseFromString(html, "text/html"),
link_list = doc.querySelectorAll("a");
link_list = doc.querySelectorAll("a"),
styles_link = document.createElement('link'),
header = doc.querySelector("head");
styles_link.href = "gadget_erp5_page_project.css";
styles_link.type = "text/css";
styles_link.rel = "stylesheet";
header.appendChild(styles_link);
for (i = 0; i < link_list.length; i += 1) {
link_list[i].setAttribute('href',
addRedirectionToReference(link_list[i]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment