Example style pages: Striped Text, Instagram Filters
See also Category.Add CSS Style
Note: Compat Styles contains a few style adjustments which more closely match the previous default template.
%%add-css <css snippet> /%You can add any css snippet to a wiki-page, defining new styles or modifying the So, be careful not to make your site unaccessible or unreadable ! styles of your jspwiki site.
Notes:
%%add-css /* add a new %%marker style */ .marker { display:block; background: gold; width:50%; padding:1em; transition: all .2s ease-in-out; } .marker:hover { transform: scale(1.5) rotate(5deg); } /* change existing style of header & footer */ .header, .footer { background-image:url([Textures/dotted-dark-pink-canvas-1200x1093.jpg]); } /% %%marker This text should be a dynamic yellow box (try hovering your mouse over it). If it is not, the __%~%add-css__ is not supported in your wiki engine. Too bad! /%
When using %%add-css in the LeftMenu, the additional styles will be available to all the pages of your wiki-site. So now you can change any of the styles including colours, background, borders, fonts, etc. of the default JSPWiki template stylesheet to your needs.
You do protect your LeftMenu with [{ALLOW edit Admin}], do you ?
When using %%add-css inside your [<username>Favorites] page, the additional styles will become available as soon as your are authenticated.
%%add-css [some-page-with-additional-styles] /%Reuse the styles defined in another wiki page by linking to that page.
Example:
%%add-css [Animated Text Color] /% These styles where defined [elsewhere | Animated Text Color] !\\ %%animatedText Colourful Animated Text /%
These styles where defined
elsewhere !
Colourful Animated Text