Commit 12d4e12d authored by Romain Courteaud's avatar Romain Courteaud

erp5_no_style: wip

parent 6f381445
...@@ -437,7 +437,7 @@ body { ...@@ -437,7 +437,7 @@ body {
} }
.fdl-landing-background { .fdl-landing-background {
background: url("FDL-Website.Background.Image.Chang.Qing?format=") no-repeat center center; /* background: url("FDL-Website.Background.Image.Chang.Qing?format=") no-repeat center center; */
min-height: 50em; min-height: 50em;
background-size: cover; background-size: cover;
background-color: #fff; background-color: #fff;
...@@ -1334,11 +1334,11 @@ span:first-of-type .material-icons { ...@@ -1334,11 +1334,11 @@ span:first-of-type .material-icons {
vertical-align: top; vertical-align: top;
} }
} }
/*
.rjs-card .mdl-card__title-text { .rjs-card .mdl-card__title-text {
color: #eff1f3; color: #eff1f3;
} }
*/
.rjs-card .mdl-card__title-text { .rjs-card .mdl-card__title-text {
position: absolute; position: absolute;
} }
......
...@@ -107,12 +107,11 @@ ...@@ -107,12 +107,11 @@
} }
function handleClick(evt) { function handleClick(evt) {
var target_element = evt.target, var target_element = evt.target.closest('a'),
target_tag = target_element.tagName,
base_uri = document.baseURI, base_uri = document.baseURI,
link_url; link_url;
if (target_tag !== 'A') { if (!target_element) {
// Only handle link // Only handle link
return; return;
} }
...@@ -146,7 +145,7 @@ ...@@ -146,7 +145,7 @@
// to ensure popstate listener is correctly working // to ensure popstate listener is correctly working
// when the user will click on back/forward browser buttons // when the user will click on back/forward browser buttons
history.pushState(null, null, target_element.href); history.pushState(null, null, target_element.href);
}, function () { }, function (error) {
// Implement support for managed error // Implement support for managed error
// (like URL is not an HTML document parsable) // (like URL is not an HTML document parsable)
// and redirect in such case // and redirect in such case
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
return RSVP.all([ return RSVP.all([
loopEventListener(window, 'popstate', false, handlePopState, false), loopEventListener(window, 'popstate', false, handlePopState, false),
loopEventListener(document.documentElement, 'click', false, handleClick, loopEventListener(gadget.element, 'click', false, handleClick,
false) false)
]); ]);
} }
......
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