Author CSS Stylesheets
Oxygen general issues.
-
- Posts: 10
- Joined: Thu Aug 09, 2012 3:27 pm
Author CSS Stylesheets
It looks like the width property for inline elements is ignored in the Author view? It also looks like the positioning selectors are also disabled? Is there a different way that Author could be extended to support a more flexible layout?
One example is that I am trying to create a table layout look for elements that are not in a complete table structure (no root element to use for the table). Some example XML:
And the CSS:
One example is that I am trying to create a table layout look for elements that are not in a complete table structure (no root element to use for the table). Some example XML:
Code: Select all
<Environments>
<Description>A List of Environments</Description>
<Environment>
<Type>Forest</Type>
<Climate>Shady</Climate>
</Environment>
<Environment>
<Type>Desert</Type>
<Climate>Hot</Climate>
</Environment>
<Environment>
<Type>Sea</Type>
<Climate>Wet</Climate>
</Environment>
</Environments>
Code: Select all
Environments {
display:block;
}
Environments:before {
content:"List of Environments";
border-bottom: 0.1em solid navy;
padding: 0.3em;
font-size:large;
font-weight:bold;
}
Description {
display:block;
}
Environment:before {
content:"Environment: ";
padding-left:1.5em;
}
Environment {
display:block;
}
Environment > Type {
display:inline;
border: 1px solid navy;
width:500px;
}
Environment > Type:before {
content:"Type: ";
padding-left:1.5em;
}
Environment > Climate {
display:inline;
border: 1px solid navy;
}
Environment > Climate:before {
content:"Climate: ";
padding-left:1.5em;
}
*:before{
font-weight:bold;
font-style:normal;
}
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author CSS Stylesheets
Hi,
We are an XML editor, we try to support as much as possible from the CSS spec but we will never have the level of support that a web browser does.
I added a feature request for supporting the width for inline elements.
Your XML seems to look very much like a table, maybe you should use a CSS like:
Regards,
Radu
We are an XML editor, we try to support as much as possible from the CSS spec but we will never have the level of support that a web browser does.
Yes, right now it's supported for block elements but not for inlines.It looks like the width property for inline elements is ignored in the Author view?
I added a feature request for supporting the width for inline elements.
I do not understand what you mean by positioning selectors.It also looks like the positioning selectors are also disabled?
Your XML seems to look very much like a table, maybe you should use a CSS like:
Code: Select all
Environments{
display:table;
}
Environment {
display:table-row;
}
Type, Climate {
display: table-cell;
width:300px;
border-color: #CCCCCC;
border-style:solid;
border-width:1px;
padding:1px;
}
Description {
display:table-caption;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 10
- Joined: Thu Aug 09, 2012 3:27 pm
Re: Author CSS Stylesheets
I mean the position:fixed | relative | absolute selectors. Along with the top:, bottom:, right: ,left: ones.I do not understand what you mean by positioning selectors.
What if the XML had additional tags outside of the Environment tags such as the following?
Code: Select all
<Environments>
<Description>A List of Environments</Description>
<Notes></Notes>
<Reference></Reference>
<Environment>
<Type>Forest</Type>
<Climate>Shady</Climate>
</Environment>
<Environment>
<Type>Desert</Type>
<Climate>Hot</Climate>
</Environment>
<Environment>
<Type>Sea</Type>
<Climate>Wet</Climate>
</Environment>
</Environments>
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author CSS Stylesheets
Hi,
Regards,
Radu
I noted this as an improvement request but this is very hard to achieve using our current internal architecture.I mean the position:fixed | relative | absolute selectors. Along with the top:, bottom:, right: ,left: ones.
Maybe you could declare them all as table captions like:What if the XML had additional tags outside of the Environment tags such as the following?
Code: Select all
Description, Notes, Reference {
display:table-caption;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 10
- Joined: Thu Aug 09, 2012 3:27 pm
Re: Author CSS Stylesheets
It doesn't look like it renders these before selectors when using that css:
Code: Select all
Environments:before {
content:"Editor";
border-bottom: 0.1em solid navy;
padding: 0.3em;
font-size:large;
font-weight:bold;
}
Code: Select all
Environment:before {
content:"Environment: ";
padding-left:1.5em;
}
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Author CSS Stylesheets
Hi,
The before selector for Environments will be rendered if you add the "display:block;" line:
The before selector for Environment element will not be rendered because this element has a "display : table-row;" declared and oXygen does not create any graphic component for table rows.
What you can do is to add the "Environment: " content to Type:before and add some borders to separate this row label from the Type content:
Best regards,
Mihaela
The before selector for Environments will be rendered if you add the "display:block;" line:
Code: Select all
Environments:before {
display: block;
content:"Editor";
border-bottom: 0.1em solid navy;
padding: 0.3em;
font-size:large;
font-weight:bold;
}
What you can do is to add the "Environment: " content to Type:before and add some borders to separate this row label from the Type content:
Code: Select all
Type:before {
content:"Environment: ";
border-right-color: #CCCCCC;
border-right-style:solid;
border-right-width:1px;
padding-left:1.5em;
padding-right:1.5em;
}
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 10
- Joined: Thu Aug 09, 2012 3:27 pm
Re: Author CSS Stylesheets
Code: Select all
Type:before {
content:"Environment: ";
border-right-color: #CCCCCC;
border-right-style:solid;
border-right-width:1px;
padding-left:1.5em;
padding-right:1.5em;
}
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Author CSS Stylesheets
Hi,
Just set the content for the Type element:
Regards,
Mihaela
Just set the content for the Type element:
Code: Select all
Type {
content: "Type: ";
}
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Author CSS Stylesheets
Hi,
Oxygen 14.1 was released and it contains the following improvement: the CSS width property is now taken into account in the Author view for inline elements.
For the list of the most important features read here:
http://www.oxygenxml.com/xml_author.html#tab_Whatisnew
Best Regards,
Mihaela
Oxygen 14.1 was released and it contains the following improvement: the CSS width property is now taken into account in the Author view for inline elements.
For the list of the most important features read here:
http://www.oxygenxml.com/xml_author.html#tab_Whatisnew
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author CSS Stylesheets
Hi,
Just to update this post, Oxygen 17.0 now has support for relative and absolute CSS positioning:
http://blog.oxygenxml.com/2015/05/visua ... ts-in.html
Regards,
Radu
Just to update this post, Oxygen 17.0 now has support for relative and absolute CSS positioning:
http://blog.oxygenxml.com/2015/05/visua ... ts-in.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: Author CSS Stylesheets
Post by Frank Ralf »
Hi Radu,
That's a great enhancement! Thanks.
Frank
That's a great enhancement! Thanks.
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
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