EPrints Technical Mailing List Archive
Message: #08328
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] icons for form button "new item"
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] icons for form button "new item"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Date: Fri, 18 Sep 2020 21:34:59 +0000
Thank you David, that approach worked! I added an SVG icon to the button. My CSS ended up like this: input[name="_action_create"] { background-position-x: 4px; background-position-y: 3px; background-size: 15px; background-image: url(/style/images/Iconnewitem.svg); background-repeat: no-repeat; padding-left: 26px; } Tomasz From: David R Newman <drn@ecs.soton.ac.uk>
Hi Tomasz, You could try something like this is the CSS: input[name="_action_create"] { There are a couple of potential issues. That CSS will apply to any other buttons with the name "_action_create" but I don't think there are many iif any other places where this is used. The other problem os that as this icon is in the background and the
text is set via the phrase the text may overlap the icon so you may need to hack around with the width of the input button to fix this and/or make it look more aesthetically pleasing. Regards David Newman On 17/09/2020 23:09, Tomasz Neugebauer via Eprints-tech wrote:
|
- Follow-Ups:
- Re: [EP-tech] icons for form button "new item"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] icons for form button "new item"
- References:
- [EP-tech] icons for form button "new item"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] icons for form button "new item"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- [EP-tech] icons for form button "new item"
- Prev by Date: Re: [EP-tech] TrendTerms in eprints 3.4 Screen::EPrint::Box
- Next by Date: [EP-tech] Plan-S compliance and IDs IDs IDs plugin
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):