Custom Toolbar Separators

By Weregoose Weregoose

Description

This simple CSS code will allow site authors to modify the vertical separators inside editor toolbars.

Code

Go to your site manager and publish the following CSS code in a custom theme:

.wd-editor-toolbar-panel li.hseparator {
 width: 22px;
 height: 22px;
 margin: 1px;
}

Here, you may change the background properties, add a border, and so on. If you choose to modify the dimensions already listed, you'll be opting out of having a refreshing grid-like pattern within the toolbar!

In action

dot-in-action.png

The above customized toolbar results from this CSS code:

.wd-editor-toolbar-panel li.hseparator {
 background: #f00 url('http://snippets.wikidot.com/local--files/code:custom-toolbar-separators/dot.png');
 width: 22px;
 height: 22px;
 margin: 1px;
}

Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Weregoose


Rate this solution

If you think this solution is useful — rate it up!

rating: +10
page revision: 4, last edited: 15 Feb 2012 00:41
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /