The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Moving the optional properties icon

Plus d'informations
il y a 12 ans 7 mois - il y a 12 ans 7 mois #1052 par Mark7801
Moving the optional properties icon a été créé par Mark7801
Hi all,
I've been looking for a way to move the optional properties icon to the right side of the headerbar in the LO display. I don't see it in themeStyle.css file where changes are recommended but I do see it in mainStyles.css.
After some playing around, It seems by changing "#x_headerBlock .x_floatLeft" to "#x_headerBlock .x_floatRight" using mainStyles.css line 82 should work although only changes to line 68 effects the position by changing ".xfloatLeft{float:left;}" to ".xfloatLeft{float:right;}", that doesn't seem right to me (and I barely know what I'm doing). If it's possible, can you give me a hint or suggestion how to move this feature?
Many thanks again

Mark G
Dernière édition: il y a 12 ans 7 mois par Mark7801. Raison: Clearity

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 12 ans 7 mois - il y a 12 ans 7 mois #1055 par JohnSmith
Réponse de JohnSmith sur le sujet Moving the optional properties icon
Hi,

Having a look at the Xenith (HTML5) code and we have this (at around line 391 ):
Code:
if (x_params.ic != undefined && x_params.ic != "") { $x_headerBlock.prepend('<img src="' + eval(x_params.ic) + '" class="x_floatLeft" />'); }

Thinking about it I think that just sticking in an image with a hardwired class like that is a mistake...

You might want to try changing these lines to something like:
Code:
if (x_params.ic != undefined && x_params.ic != "") { $x_headerBlock.prepend('<img src="' + eval(x_params.ic) + '"/>'); }

And then using something like this in the css to control the positioning:
Code:
#x_headerBlock img {float:right}

You don't want to change the actual class definition for .xfloatLeft as that will affect EVERYTHING that has that class...

If you feedback your findings then i'll make the necessary updates to the software so that others can benefit...

John
Dernière édition: il y a 12 ans 7 mois par JohnSmith.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.132 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo