From 1bead745aee4f23d6edf41a103345cd16e9ec028 Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Mon, 16 Apr 2007 11:05:09 +0000 Subject: [PATCH] Added drop shadow to popup panel (Firefox only) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5495 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../templates/client/summary_panel.ftl | 180 +++++++++--------- source/web/css/main.css | 13 +- source/web/images/parts/drop_shadow_alpha.png | Bin 0 -> 5667 bytes source/web/scripts/ajax/node-info.js | 4 +- 4 files changed, 105 insertions(+), 92 deletions(-) create mode 100644 source/web/images/parts/drop_shadow_alpha.png diff --git a/config/alfresco/templates/client/summary_panel.ftl b/config/alfresco/templates/client/summary_panel.ftl index c2d07f87e4..d613819b9d 100644 --- a/config/alfresco/templates/client/summary_panel.ftl +++ b/config/alfresco/templates/client/summary_panel.ftl @@ -1,89 +1,91 @@ - - - - - - - - - - - - <#if node.isDocument && !isImage && !isVideo> - <#assign c=cropContent(node.properties.content, 512)> - <#if c?length != 0> - - - - - - - - -
- - - - <#if node.isDocument> - <#assign navurl="/navigate/showDocDetails/"> - <#else> - <#assign navurl="/navigate/showSpaceDetails/"> - - <#assign navurl=navurl + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id> - - - -
${node.name}
Details
Close
-
- <#assign isImage=node.isDocument && (node.mimetype = "image/gif" || node.mimetype = "image/jpeg" || node.mimetype = "image/png")> - <#assign isVideo=node.isDocument && node.mimetype?starts_with("video/")> - <#if isImage> - - <#elseif isVideo> - - - - - <#----> - - - <#else> - - - - - - - - -
- -
- -
- - <#if node.properties.title?exists> - - - <#if node.properties.description?exists> - - - - - - - <#if node.properties.owner?exists> - - - <#if node.properties.author?exists> - - - <#if node.isDocument> - - -
 Title:${node.properties.title?html}
 Description:${node.properties.description?html}
 Created:${node.properties.created?datetime}
 Creator:${node.properties.creator}
 Modified:${node.properties.modified?datetime}
 Modifier:${node.properties.modifier}
 Owner:${node.properties.owner}
 Author:${node.properties.author}
 Size:${(node.size / 1000)?string("0.##")} KB
-
Preview:
- ${c?html?replace('$', '
', 'rm')}<#if (c?length >= 512)>... -
+
+ + + + + + + + + + + + <#if node.isDocument && !isImage && !isVideo> + <#assign c=cropContent(node.properties.content, 512)> + <#if c?length != 0> + + + + + + + + +
+ + + + <#if node.isDocument> + <#assign navurl="/navigate/showDocDetails/"> + <#else> + <#assign navurl="/navigate/showSpaceDetails/"> + + <#assign navurl=navurl + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id> + + + +
${node.name}
Details
Close
+
+ <#assign isImage=node.isDocument && (node.mimetype = "image/gif" || node.mimetype = "image/jpeg" || node.mimetype = "image/png")> + <#assign isVideo=node.isDocument && node.mimetype?starts_with("video/")> + <#if isImage> + + <#elseif isVideo> + + + + + <#----> + + + <#else> + + + + + + + + +
+ +
+ +
+ + <#if node.properties.title?exists> + + + <#if node.properties.description?exists> + + + + + + + <#if node.properties.owner?exists> + + + <#if node.properties.author?exists> + + + <#if node.isDocument> + + +
 Title:${node.properties.title?html}
 Description:${node.properties.description?html}
 Created:${node.properties.created?datetime}
 Creator:${node.properties.creator}
 Modified:${node.properties.modified?datetime}
 Modifier:${node.properties.modifier}
 Owner:${node.properties.owner}
 Author:${node.properties.author}
 Size:${(node.size / 1000)?string("0.##")} KB
+
Preview:
+ ${c?html?replace('$', '
', 'rm')}<#if (c?length >= 512)>... +
+
\ No newline at end of file diff --git a/source/web/css/main.css b/source/web/css/main.css index 2452686f79..c760c6971e 100644 --- a/source/web/css/main.css +++ b/source/web/css/main.css @@ -486,9 +486,10 @@ a.topToolbarLinkHighlight, a.topToolbarLinkHighlight:link, a.topToolbarLinkHighl background-image: url(../images/parts/popup_bg.gif); background-repeat: repeat-x; background-color: #ffffff; - border: 1px solid #cacfd3; + border: 1px solid #a9b2b9; padding: 4px; max-width: 700px; + margin: 0px 0px 0px 0px; } .popupImage @@ -666,3 +667,13 @@ a.sidebarButtonLink, a.sidebarButtonLink:link, a.sidebarButtonLink:visited font-weight: bold; padding-bottom: 2px; } + +.summaryDropShadow +{ + background: url(../images/parts/drop_shadow_alpha.png) no-repeat bottom right !important; + background-color: transparent; + padding: 0px 11px 11px 0px; + + _background: url(../images/parts/spacer.gif) no-repeat bottom right !important; + _padding: 0px 10px 10px 0px; +} diff --git a/source/web/images/parts/drop_shadow_alpha.png b/source/web/images/parts/drop_shadow_alpha.png new file mode 100644 index 0000000000000000000000000000000000000000..1519ea2d19024f3b39fcfcd64f839843533bad0a GIT binary patch literal 5667 zcmeHLXHZn@mi-VU=NyDfk|a4w4o!}dBXguU3;y)_WI7*)zKI9HAn~<2>}2kTAHdx z0Gt}YTpswim?sm%m%d|e1U{M;R{wy#2hdx_SGsYC#~Z zK3BY5-7mQSaAP>r7;0j?Kr6pFwyvTBhuzolHlo32HByO%Q73Zou@R7K!`U7W(HPcI zsHx#FwPeGwIo_h9IZ_ah>y&6!MFIvm2=)$YT zCr;KBGn9Z4=c}+#OoTNzHcie5Duohq`T%nL3TL*fyBt_xD@0E29D6O^TYz<=mk1x! z>SfdlpNT?~EvlqhW5L3)YW)(=>)^wvfl^?+%5$Kkjs?q1DiYLKTcKSzMUc-jlN{IBvE?+1EB>UCYUoUV-d|VY4-#eQnep z-$f1$&CbjWYB#D_IkcJu??LPBYRz^p{RolU+1!|TJH;6)Y7?q~vo%rQzOI{drt2O- zxZ}uNg2v8kBJ>V(FMFewBhs9YdfJfEH(oV8ZcQ|YJzC`+@B6boXy>VM{%vf9aS2fB zp@0>XD3E94g#BHIo7~*5c4`xV)hh40Pdxb8Ft@PDE`Rh_#a)f;vjFC*bxb#!JG2O${n# z=lKbeoZ8CRi--%G7)vh}VOK?OICYiz<4}gG)e=bJ_^YrwuqbPq>zeBiYUZ(?;S{GB zCXgb)4mYglW>3n~dC65t@uQL6QB)+#T$7)ppE7|;h&%`mX_VrmjE0DEBk!KlD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)0Pg4|tD;Aa-i!lfl>Kc~ zmoQtThjqfaQ0Acb8`btNOZSM^`Y~H+gB)Q`GvvB7vIJpoC)bdVSw`kRYAF94x#q<@ z5L{>bC-Mzu%`|KX3>XjQcV32K%3Sq9-!l!w{Dq5{(2M#{cTL>-fqAu{(byoy#`BH! TpGLNrl^AHL>8qBg*x&vS=ZNL5 literal 0 HcmV?d00001 diff --git a/source/web/scripts/ajax/node-info.js b/source/web/scripts/ajax/node-info.js index 30670cc8cf..0198d21ecf 100644 --- a/source/web/scripts/ajax/node-info.js +++ b/source/web/scripts/ajax/node-info.js @@ -141,9 +141,9 @@ Alfresco.NodeInfoPanel.prototype = // setup the div with the correct appearance div.innerHTML = response.responseText; - div.setAttribute("class", "summaryPopupPanel"); + div.setAttribute("class", "summaryDropShadow"); // NOTE: use className for IE - div.setAttribute("className", "summaryPopupPanel"); + div.setAttribute("className", "summaryDropShadow"); div.style.position = "absolute"; div.style.display = "none"; div.style.left = 0;