Changes for page InfoboxStyles
Last modified by Mads Pedersen on 2026/07/28 06:53
From version 8.26
edited by Mads Pedersen
on 2026/01/20 16:30
on 2026/01/20 16:30
Change comment:
There is no comment for this version
To version 8.22
edited by Mads Pedersen
on 2026/01/20 16:23
on 2026/01/20 16:23
Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,31 +1,6 @@ 1 1 {{velocity}} 2 2 {{html clean="false"}} 3 - 4 -<style> 5 - /* Standard Wiki View */ 6 - .custom-infobox { 7 - float: right; 8 - margin: 0 0 1em 1em; 9 - border: 1px solid #aaa; 10 - background: #f8f9fa; 11 - font-size: 0.9em; 12 - font-family: sans-serif; 13 - line-height: 1.5; 14 - box-shadow: 0 2px 4px rgba(0,0,0,0.1); 15 - } 16 - 17 - /* Export / Print View Fix */ 18 - @media print { 19 - .custom-infobox { 20 - float: none !important; 21 - width: 100% !important; 22 - margin: 1em 0 !important; 23 - box-shadow: none !important; 24 - } 25 - } 26 -</style> 27 - 28 -<div style="float:right; width:$xcontext.macro.params.width\rem; margin:0 0 1em 1em; border:1px solid #aaa; background:#f8f9fa; font-size:0.9em; font-family: sans-serif; line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> 3 +<div style="float:right; width:$xcontext.macro.params.widthrem; margin:0 0 1em 1em; border:1px solid #aaa; background:#f8f9fa; font-size:0.9em; font-family: sans-serif; line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"> 29 29 <table style="width:100%; border-collapse:collapse;"> 30 30 ## Header 31 31 #if($xcontext.macro.params.title && "$!xcontext.macro.params.title" != "")
- XWiki.WikiMacroParameterClass[3]
-
- Parameter default value
-
... ... @@ -1,1 +1,1 @@ 1 - 201 +18 - Parameter description
-
... ... @@ -1,1 +1,1 @@ 1 -The width of the box. Default 201 +The width of the box. Default 18