You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I've used {style} and {div} macros to make some custom sections on a Confluence page. And as a part of these sections, I've added a ::before selector with some content and styles to act as a label.
The CSS I've used follows:
div.section-wip { margin-left:20px; margin-bottom:20px; padding:10px; background-color:#ebeff5; border:1px dashed blue; border-radius:5px; } div.section-wip::before { content:"Work in Progress:"; display:block; font-weight:bold; color:#606098; } div.section-planned { margin-left:20px; margin-bottom:20px; padding:10px; background-color:#eaf3ea; border:1px dashed green; border-radius:5px; } div.section-planned::before { content:"Planned Feature:"; display:block; font-weight:bold; color:#4f884f; }
Interestingly, it works perfectly in the Edit Preview, however it looks like the ::before selectors are ignored after saving the page, as this screenshot illustrates:
stupidconfluence.jpg
Does ::before show up in the storage format? If not, what happens if you use something like the Source Editor add on?
Not sure exactly what you mean by "storage format," but if I use Confluence's "View Source" option, the ::before selectors are all there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ben Vezzani I cannot open your screen shot anymore but what I can add to your post is that using both ::after & ::before works perfectly fine only if you define styles directly in the page. If the styles are defined in another page, which is only included in the page on which you want to apply them, neither ::after or ::before would work -- although all other styles work fine in this scenario.
Any idea how to add content before/after to a table of contents throughout the whole space (made with the Confluence macro) that has a specific class?
Confluence Server 7.4.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.