Re: [Xsltforms-support] xsltforms 1.5 xforms-repeat xforms-repeat-item (fwd)
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2020-12-06 08:07:34
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Within XSLTForms 1.5, xsltforms.js is just interacting with HTML elements and attributes, not anymore with CSS classes. </div> <div> <br> </div> <div> So, xsltforms.css is just provided as a possible set of CSS rules for rendering. Yet, xsltforms.css is now in charge of essential behavior such as hiding irrelevant XForms controls and so on... That is why attribute selectors are now present in xsltforms.css. </div> <div> <br> </div> <div> You can edit xsltforms.css at your convenience and change anything without risking to break a form. </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <blockquote type="cite"> <div> Le 05/12/2020 18:52, Habs <<a href="mailto:ge...@us...">ge...@us...</a>> a écrit : </div> <div> <br> </div> <div> <br> </div> <div> Brief followup Alain, please, </div> <div> <br> </div> <div> I located this in the xsltforms.css code file: </div> <div> <br> </div> <div> xforms-repeat[xf-bound]:not([xf-notrelevant]) > xforms-repeat-item { </div> <div> display: table-row; </div> <div> } </div> <div> xforms-repeat-item > * { </div> <div> display: inline-table !important; </div> <div> } </div> <div> <br> </div> <div> <br> </div> <div> This is a change to previous versions ? </div> <div> <br> </div> <div> If a change is made so that 'table-row' and 'inline-table' are set to </div> <div> 'block', then the layout behaviour of the form layouts I use is preserved </div> <div> without any local styling. </div> <div> <br> </div> <div> What are the consequences of setting this to 'block' as a default in </div> <div> xsltforms ? </div> <div> <br> </div> <div> Regards </div> <div> Habs </div> <div> <br> </div> <div> ---------- Forwarded message ---------- </div> <div> Date: Sat, 5 Dec 2020 11:30:25 +0000 (GMT) </div> <div> From: Habs <<a href="mailto:ge...@us...">ge...@us...</a>> </div> <div> To: Alain Couthures <<a href="mailto:ala...@ag...">ala...@ag...</a>> </div> <div> Cc: XSLTForms support <<a href="mailto:xsl...@li...">xsl...@li...</a>> </div> <div> Subject: xsltforms 1.5 xforms-repeat xforms-repeat-item </div> <div> <br> </div> <div> Hello Alain </div> <div> <br> </div> <div> Thank you for the release link for xsltforms1.5.zip </div> <div> <br> </div> <div> Interestingly, I am having to go through my [css] stylesheets and change a few </div> <div> minor things to get form style to be similar to previous versions. </div> <div> <br> </div> <div> This has not been a problem to do, apart from xforms-repeat and </div> <div> xforms-repeat-item, of which I have not had to have a style for in previous </div> <div> versions. </div> <div> <br> </div> <div> Using an inspector, I have noticed that xforms-repeat-items are picking up a </div> <div> style of, display: table-row </div> <div> <br> </div> <div> It does not seem that it is possible to override it in a stylesheet to, for </div> <div> example, display: block </div> <div> <br> </div> <div> It is possible to temporarily override it in using inspector tools, to display: </div> <div> block and indeed this does demonstrate correct behaviour for my form styling. </div> <div> <br> </div> <div> Question: Is it intended that xforms-repeat-item are fixed-styled as display: </div> <div> table-row please, or should it be possible to change it in a style sheet ? </div> <div> <br> </div> <div> I hope this makes sense, if not let me know what I can help with to make the </div> <div> problem more clear. </div> <div> <br> </div> <div> Regards </div> <div> Habs </div> <div> <br> </div> <div> <br> </div> <div> --- Sent using Alpine/Pine, probably the best MUA --- </div> </blockquote> </body> </html> |