Commit 19433011 authored by Roque's avatar Roque

erp5_web_project_ui: front page and project home page styles

parent c250a0a6
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
</div> </div>
<div> <div>
<div class="project-line"><a link="erp5.com">Project Forum</a></div> <div class="project-line"><a href="erp5.com">Project Forum</a></div>
<div class="project-line">more info...</div> <div class="project-line">more info...</div>
<div class="project-line">more info...</div> <div class="project-line">more info...</div>
<div class="project-line">more info...</div> <div class="project-line">more info...</div>
......
...@@ -14,6 +14,11 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project ...@@ -14,6 +14,11 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
padding-left: 15px; padding-left: 15px;
} }
div[data-gadget-url$="gadget_front_page_info.html"] a {
color: #267B87;
text-decoration: none;
}
div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project-box .project-info { div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project-box .project-info {
display: inline-flex; display: inline-flex;
} }
...@@ -57,6 +62,8 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project ...@@ -57,6 +62,8 @@ div[data-gadget-url$="gadget_front_page_info.html"] .front-project-list .project
} }
/* PROJECT PAGE */
.gadget-content .ui-field-contain .bottom .first-line-buttons { .gadget-content .ui-field-contain .bottom .first-line-buttons {
-webkit-appearance: none; -webkit-appearance: none;
margin-top: 0; margin-top: 0;
...@@ -138,24 +145,35 @@ input[type="submit"] { ...@@ -138,24 +145,35 @@ input[type="submit"] {
} }
/* PROJECT HOME PAGE */
/* for future graphs*/ body.cke_editable h1 {
margin-top: 1.5em;
#wrap1 iframe { font-family: "Roboto", Arial, sans-serif;
height: 100%; color: #19535F;
font-size: 2em;
margin: 0.67em 0;
} }
#wrap2 iframe { body.cke_editable h2 {
height: 100%; font-family: "Roboto", Arial, sans-serif;
font-weight: normal;
font-size: 25px;
line-height: 33px;
color: #19535F;
} }
.gadget-content .ui-field-contain .graph-spinner { body.cke_editable p, body.cke_editable li, body.cke_editable span {
position: relative; font-family: 'Heuristica', 'Helvetica', Times, serif;
top: 100px;
width: 120px;
} }
.gadget-content .ui-field-contain .count-spinner { body.cke_editable ul li, body.cke_editable p {
top: 20px; font-size: 1.25em;
width: 120px; line-height: 1.58em;
letter-spacing: -.003em;
} }
body.cke_editable a {
color: #267B87;
text-decoration: none;
}
\ No newline at end of file
...@@ -14,13 +14,15 @@ ...@@ -14,13 +14,15 @@
function parseHTMLLinks(html, url) { function parseHTMLLinks(html, url) {
var parser = new DOMParser(), i, var parser = new DOMParser(), i,
//TODO create head and link html elements and prepend to doc instead of using text
styles_header = '<head><link rel="stylesheet" type="text/css" href="gadget_project_info.css"></head>',
oSerializer = new XMLSerializer(), oSerializer = new XMLSerializer(),
doc = parser.parseFromString(html, "text/html"), doc = parser.parseFromString(html, "text/html"),
link_list = doc.getElementsByTagName("a"); link_list = doc.getElementsByTagName("a");
for (i = 0; i < link_list.length; i += 1) { for (i = 0; i < link_list.length; i += 1) {
link_list[i].setAttribute('href', addRedirectionToReference(link_list[i].getAttribute('href'), url)); link_list[i].setAttribute('href', addRedirectionToReference(link_list[i].getAttribute('href'), url));
} }
return oSerializer.serializeToString(doc); return styles_header + oSerializer.serializeToString(doc);
} }
function enableLink(link_element, url) { function enableLink(link_element, url) {
...@@ -220,7 +222,7 @@ ...@@ -220,7 +222,7 @@
gadget.getSetting("hateoas_url") gadget.getSetting("hateoas_url")
]; ];
if (modification_dict.publication_section) { if (modification_dict.publication_section) {
promise_list.push(gadget.getDeclaredGadget("editor")), promise_list.push(gadget.getDeclaredGadget("editor"));
promise_list.push(getWebPageInfo(gadget, modification_dict.jio_key, modification_dict.publication_section)); promise_list.push(getWebPageInfo(gadget, modification_dict.jio_key, modification_dict.publication_section));
} }
return RSVP.all(promise_list); return RSVP.all(promise_list);
......
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