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

Moving the optional properties icon

  • Mark7801
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 7 months ago - 12 years 7 months ago #1052 by Mark7801
Moving the optional properties icon was created by 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
Last edit: 12 years 7 months ago by Mark7801. Reason: Clearity

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago - 12 years 7 months ago #1055 by JohnSmith
Replied by JohnSmith on topic 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
Last edit: 12 years 7 months ago by JohnSmith.

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.129 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo