icons customization conflicts with icons:font

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
jmb
Reply | Threaded
Open this post in threaded view
|

icons customization conflicts with icons:font

jmb
I have a problem with this :

:status: {images}/icons/personal.png

.Réponse
[icon="{status}"]
[NOTE]
====
blabla
====

Don’t know if it comes from the (great) icons:font option that I use, but
whatever icon I use, I got the NOTE one, not the dedicated one.

Thanks in advance for your help,
Reply | Threaded
Open this post in threaded view
|

Re: icons customization conflicts with icons:font

Robert.Panzer
Hi!

You're right the :icons: font attribute is really awesome!

Unfortunately this option takes control over the admonition icons and converts it to the fixed element:
<i class="fa icon-note"...

As far as I can see to get your own icon into the admonition you have to set the icons attribute to anything but font and set all icons yourself:
= Test document
:icons:
:status: {images}/icons/personal.png 

.Réponse 
[icon="{status}"] 
[NOTE] 
==== 
blabla 
==== 

@mojavelinux: Would it make sense to prioritize the node attribute `icon`over the document level attribute `:icons: font`?

Cheers, Robert
Reply | Threaded
Open this post in threaded view
|

Re: icons customization conflicts with icons:font

mojavelinux
Administrator
I suppose that is a reasonable change. Could you file an issue to allow the icon attribute to be honored even when font-based icons are in use?

In the meantime, you can work around it by setting the icons attribute around the block like so:

:icons:

[icon=personal.png]
[NOTE]
====
blabla
====

:icons: font

That temporarily changes the behavior from font-based icons to image-based icons, which allows you to set the icon. If you site this example in the issue, it will be clear what we need to do to support the override without this hack.

Cheers,

-Dan

On Wed, Nov 25, 2015 at 4:08 AM, Robert.Panzer [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi!

You're right the :icons: font attribute is really awesome!

Unfortunately this option takes control over the admonition icons and converts it to the fixed element:
<i class="fa icon-note"...

As far as I can see to get your own icon into the admonition you have to set the icons attribute to anything but font and set all icons yourself:
= Test document
:icons:
:status: {images}/icons/personal.png 

.Réponse 
[icon="{status}"] 
[NOTE] 
==== 
blabla 
==== 

@mojavelinux: Would it make sense to prioritize the node attribute `icon`over the document level attribute `:icons: font`?

Cheers, Robert



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/icons-customization-conflicts-with-icons-font-tp3973p3975.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen