dokuwiki_plugin_wrap icon indicating copy to clipboard operation
dokuwiki_plugin_wrap copied to clipboard

Suggestion: CSS background-image icons reworked

Open fjf2002 opened this issue 2 years ago • 2 comments

The WRAPs with icons are quite nice, we use them a lot.

In my opinion background-image is a problematic solution for applying the icon; it won't print by default, for example. Also dw2pdf seems to have its problems with loading the icons(?)

Would anybody prefer

  • converting for example .wrap_info { background-image: url(xyz); } to something like .wrap_info:before { content: url(xyz); }
  • thus enabling printing the icons
  • (some more css stuff needed here...)

?

fjf2002 avatar Jun 19 '23 15:06 fjf2002

general note about dw2pdf: dw2pdf uses a very limited css set as default, so probably the dw2pdf needs in all cases specific css, which should be explictly be tested with the mPDF library used by dw2pdf.

Klap-in avatar Jun 19 '23 16:06 Klap-in

Ah I now understand: The default browser settings won't print background-images, and background-colors neither. So my suggested solution would still leave the background-color issue open.

fjf2002 avatar Jun 19 '23 16:06 fjf2002