You can change the output of Panel macros by modifying the Scroll Web Help Theme or your own template.
Before you begin: To change the output of Panel macros, a template must exist.
To change the output of Panel macros in the exported HTML file:
The styles you set are applied to all exported Panel macros not just individual ones
-
Open your template folder.
-
Go to src > main > resources > com.k15t.scroll.scroll-webhelp-theme > scroll-html > css in your template directory.
-
Open the content-style.css file with your favorite text editor.
-
Find the Panels and Admonitions Section:
-
To modify the look of the panel header change the styles of .wiki-content div.panel div.title.panel-header
-
To modify the look of the panel content change the styles of .wiki-content div.panel div.panel-content
-
To modify the look of the whole panel create the selector .wiki-content div.confbox.panel and add your styles there
-
-
Save the content-style.css file and rebuild the template by executing the atlas-package command in the terminal.
/* Panels, Admonitions ***************************************************************************/
.wiki-content div.confbox {
margin-bottom: 1.5em;
margin-top: 1.5em;
border: 1px solid #BBBBBB;
border-radius: 5px;
}
.wiki-content div.confbox .title {
font-weight: bold;
}
.wiki-content div.panel div.title.panel-header {
padding: 0.5em 1em;
border-bottom: 1px solid #BBBBBB;
background-color: #F5F5F5;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.wiki-content div.panel div.panel-content {
padding: 1em;
}