Setting height and width to oxy_button?
Oxygen general issues.
Setting height and width to oxy_button?
Forgive me for being too pedantic but how can one style an oxy_button in Author View css? At the moment, I have this:
As you can see in the attached image, the button has a different height from the text input it is sitting next to. It is also too wide considering that I'm using an icon.
Adding doesn't solve the problem because the height remains off and I still can't figure out how to control the width.
What am I missing?
Many thanks in advance.
All best,
Toma
Code: Select all
correspAction persName:after {
content: oxy_button(action, oxy_action(
name, '+',
description, 'Insert an element after the current one',
icon, url('add.png'),
operation, 'InsertFragmentOperation',
arg-fragment, '<persName xmlns="http://www.tei-c.org/ns/1.0">${caret}</persName>',
arg-insertLocation, '.',
arg-insertPosition, 'After')
)
}
- Снимок экрана 2022-05-07 в 10.18.47.png (129.5 KiB) Viewed 574 times
Code: Select all
transparent, true
What am I missing?
Many thanks in advance.
All best,
Toma
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Setting height and width to oxy_button?
Post by alex_jitianu »
Hello,
The text field and the button are aligned on baseline.
The result is not great, but I haven't yet succeeded in finding a CSS combination to align it differently....
You mention that making the button transparent didn't help either. For me it looks like it fixes the issue, because there is no border painted anymore.
Does it look differently for you?
Best regards,
Alex
The text field and the button are aligned on baseline.
- image.png (13.62 KiB) Viewed 554 times
You mention that making the button transparent didn't help either. For me it looks like it fixes the issue, because there is no border painted anymore.
- image.png (7.45 KiB) Viewed 554 times
Code: Select all
oxy_button(
transparent, true,
action, oxy_action(
name, '+',
description, 'Insert an element after the current one',
icon, url('add.png'),
operation, 'InsertFragmentOperation',
arg-fragment, '<persName xmlns="http://www.tei-c.org/ns/1.0">${caret}</persName>',
arg-insertLocation, '.',
arg-insertPosition, 'After')
) ;
Best regards,
Alex
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service