Re: [Wikitech-l] Deactivating hyperlink by CSS
A pity. Thank you. Igal On May 11, 2018 10:46, "Derk-Jan Hartman"wrote: > You cannot do this with CSS. You need to remove the href attribute from > such an element if you want it to stop linking to something (which is > what the mw-selflink's do). > > DJ > On Thu, May 10, 2018 at 6:56 PM יגאל חיטרון > wrote: > > > Hi Quiddity. > > I'm working with an old script, that (beyond other things) creates a > > collapsed navigation template below imagemap tags. For better reading, > for > > browser search, for desktop view in mobile etc. So, the links created > using > > javascript, as hlist. And selflink does not get ".mw-selflink .selflink". > I > > can add the styles of course, but I need the behavior too. Thank you. > > Igal > > > > 2018-05-10 19:48 GMT+03:00 Nick Wilson (Quiddity) >: > > > > Igal, For what reason (use-case) are you wanting to deactivate the > link? > > > Are you trying to make an image un-clickable [1], or something else? > > > If you explain that context, then we might be able to help better. I.e. > > > Examples/links always help! > > > > > > [1] If this is your goal, then see this link AND the warning underneath > > > https://www.mediawiki.org/wiki/Help:Images#Altering_the_ > > > default_link_target > > > > > > On Thu, May 10, 2018 at 5:42 AM, יגאל חיטרון > > > wrote: > > > > > > > Thank you. But how can I create this element using css? > > > > Igal > > > > > > > > > > > > 2018-05-10 15:34 GMT+03:00 bawolff : > > > > > > > > > You could force the link to be behind (in a z-index sense) another > > > > > transparent element. > > > > > > > > > > (Not really deactivated because you can still reach it via > keyboard, > > > > > but it would stop people clicking) > > > > > -- > > > > > Brian > > > > > > > > > > On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרון < > khit...@post.bgu.ac.il> > > > > > wrote: > > > > > > Hello. Is there a way to deactivate a hyperlink using CSS? I > tried > > > > > > pointer-events: none, but wiki does not recognize it. Thank you. > > > > > > Igal (User:Ikhitron) > > > > > > ___ > > > > > > Wikitech-l mailing list > > > > > > Wikitech-l@lists.wikimedia.org > > > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > > > > > ___ > > > > > Wikitech-l mailing list > > > > > Wikitech-l@lists.wikimedia.org > > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > ___ > > > > Wikitech-l mailing list > > > > Wikitech-l@lists.wikimedia.org > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > > > > > > > > > > > -- > > > Nick Wilson (Quiddity) > > > Community Liaison, Wikimedia Foundation > > > ___ > > > Wikitech-l mailing list > > > Wikitech-l@lists.wikimedia.org > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > ___ > > Wikitech-l mailing list > > Wikitech-l@lists.wikimedia.org > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Deactivating hyperlink by CSS
You cannot do this with CSS. You need to remove the href attribute from such an element if you want it to stop linking to something (which is what the mw-selflink's do). DJ On Thu, May 10, 2018 at 6:56 PM יגאל חיטרוןwrote: > Hi Quiddity. > I'm working with an old script, that (beyond other things) creates a > collapsed navigation template below imagemap tags. For better reading, for > browser search, for desktop view in mobile etc. So, the links created using > javascript, as hlist. And selflink does not get ".mw-selflink .selflink". I > can add the styles of course, but I need the behavior too. Thank you. > Igal > 2018-05-10 19:48 GMT+03:00 Nick Wilson (Quiddity) : > > Igal, For what reason (use-case) are you wanting to deactivate the link? > > Are you trying to make an image un-clickable [1], or something else? > > If you explain that context, then we might be able to help better. I.e. > > Examples/links always help! > > > > [1] If this is your goal, then see this link AND the warning underneath > > https://www.mediawiki.org/wiki/Help:Images#Altering_the_ > > default_link_target > > > > On Thu, May 10, 2018 at 5:42 AM, יגאל חיטרון > > wrote: > > > > > Thank you. But how can I create this element using css? > > > Igal > > > > > > > > > 2018-05-10 15:34 GMT+03:00 bawolff : > > > > > > > You could force the link to be behind (in a z-index sense) another > > > > transparent element. > > > > > > > > (Not really deactivated because you can still reach it via keyboard, > > > > but it would stop people clicking) > > > > -- > > > > Brian > > > > > > > > On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרון < khit...@post.bgu.ac.il> > > > > wrote: > > > > > Hello. Is there a way to deactivate a hyperlink using CSS? I tried > > > > > pointer-events: none, but wiki does not recognize it. Thank you. > > > > > Igal (User:Ikhitron) > > > > > ___ > > > > > Wikitech-l mailing list > > > > > Wikitech-l@lists.wikimedia.org > > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > > > ___ > > > > Wikitech-l mailing list > > > > Wikitech-l@lists.wikimedia.org > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > ___ > > > Wikitech-l mailing list > > > Wikitech-l@lists.wikimedia.org > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > > > > > > -- > > Nick Wilson (Quiddity) > > Community Liaison, Wikimedia Foundation > > ___ > > Wikitech-l mailing list > > Wikitech-l@lists.wikimedia.org > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Deactivating hyperlink by CSS
Hi Quiddity. I'm working with an old script, that (beyond other things) creates a collapsed navigation template below imagemap tags. For better reading, for browser search, for desktop view in mobile etc. So, the links created using javascript, as hlist. And selflink does not get ".mw-selflink .selflink". I can add the styles of course, but I need the behavior too. Thank you. Igal 2018-05-10 19:48 GMT+03:00 Nick Wilson (Quiddity): > Igal, For what reason (use-case) are you wanting to deactivate the link? > Are you trying to make an image un-clickable [1], or something else? > If you explain that context, then we might be able to help better. I.e. > Examples/links always help! > > [1] If this is your goal, then see this link AND the warning underneath > https://www.mediawiki.org/wiki/Help:Images#Altering_the_ > default_link_target > > On Thu, May 10, 2018 at 5:42 AM, יגאל חיטרון > wrote: > > > Thank you. But how can I create this element using css? > > Igal > > > > > > 2018-05-10 15:34 GMT+03:00 bawolff : > > > > > You could force the link to be behind (in a z-index sense) another > > > transparent element. > > > > > > (Not really deactivated because you can still reach it via keyboard, > > > but it would stop people clicking) > > > -- > > > Brian > > > > > > On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרון > > > wrote: > > > > Hello. Is there a way to deactivate a hyperlink using CSS? I tried > > > > pointer-events: none, but wiki does not recognize it. Thank you. > > > > Igal (User:Ikhitron) > > > > ___ > > > > Wikitech-l mailing list > > > > Wikitech-l@lists.wikimedia.org > > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > ___ > > > Wikitech-l mailing list > > > Wikitech-l@lists.wikimedia.org > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > ___ > > Wikitech-l mailing list > > Wikitech-l@lists.wikimedia.org > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > > > -- > Nick Wilson (Quiddity) > Community Liaison, Wikimedia Foundation > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Deactivating hyperlink by CSS
Igal, For what reason (use-case) are you wanting to deactivate the link? Are you trying to make an image un-clickable [1], or something else? If you explain that context, then we might be able to help better. I.e. Examples/links always help! [1] If this is your goal, then see this link AND the warning underneath https://www.mediawiki.org/wiki/Help:Images#Altering_the_default_link_target On Thu, May 10, 2018 at 5:42 AM, יגאל חיטרוןwrote: > Thank you. But how can I create this element using css? > Igal > > > 2018-05-10 15:34 GMT+03:00 bawolff : > > > You could force the link to be behind (in a z-index sense) another > > transparent element. > > > > (Not really deactivated because you can still reach it via keyboard, > > but it would stop people clicking) > > -- > > Brian > > > > On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרון > > wrote: > > > Hello. Is there a way to deactivate a hyperlink using CSS? I tried > > > pointer-events: none, but wiki does not recognize it. Thank you. > > > Igal (User:Ikhitron) > > > ___ > > > Wikitech-l mailing list > > > Wikitech-l@lists.wikimedia.org > > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > ___ > > Wikitech-l mailing list > > Wikitech-l@lists.wikimedia.org > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Nick Wilson (Quiddity) Community Liaison, Wikimedia Foundation ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Deactivating hyperlink by CSS
Thank you. But how can I create this element using css? Igal 2018-05-10 15:34 GMT+03:00 bawolff: > You could force the link to be behind (in a z-index sense) another > transparent element. > > (Not really deactivated because you can still reach it via keyboard, > but it would stop people clicking) > -- > Brian > > On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרון > wrote: > > Hello. Is there a way to deactivate a hyperlink using CSS? I tried > > pointer-events: none, but wiki does not recognize it. Thank you. > > Igal (User:Ikhitron) > > ___ > > Wikitech-l mailing list > > Wikitech-l@lists.wikimedia.org > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Deactivating hyperlink by CSS
You could force the link to be behind (in a z-index sense) another transparent element. (Not really deactivated because you can still reach it via keyboard, but it would stop people clicking) -- Brian On Thu, May 10, 2018 at 12:15 PM, יגאל חיטרוןwrote: > Hello. Is there a way to deactivate a hyperlink using CSS? I tried > pointer-events: none, but wiki does not recognize it. Thank you. > Igal (User:Ikhitron) > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] Deactivating hyperlink by CSS
Hello. Is there a way to deactivate a hyperlink using CSS? I tried pointer-events: none, but wiki does not recognize it. Thank you. Igal (User:Ikhitron) ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l