Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Is it possible to make the icon responsive? 8 years 10 months ago #3412

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 0
Hi,
Could anybody point me to the code to edit to make the icon responsive?
Many thanks,
Karl

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

Is it possible to make the icon responsive? 8 years 10 months ago #3424

  • Fay
  • Fay's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 229
  • Thank you received: 92
The file that adds the icon to the project is: modules/xerte/parent_templates/Nottingham/common_html5/js/xenith.js (search for x_params.ic to find the line where it's added)

The responsive css file is: modules/xerte/parent_templates/Nottingham/common_html5/css/responsivetext.css

If you get it working then please share the code :)
The following user(s) said Thank You: 0kee

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

Is it possible to make the icon responsive? 8 years 10 months ago #3427

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 852
  • Thank you received: 261
The reason I didn't add anything to the responsive css for the icon is because every icon/logo is likely to be a different shape/size so probably needs author control. If you are using 3.1 the LO icon now has an optional styles property as well as the stylesheet option. In either add something like the following:

#x_headerBlock img.x_floatLeft{
width:10.0vmin;
height:auto;
}

Change those values accordingly and if you want further control add media queries to vary the size accordingly e.g the above example might be too small on a handheld device.

HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
The following user(s) said Thank You: 0kee, isalinas

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

Is it possible to make the icon responsive? 8 years 10 months ago #3433

  • 0kee
  • 0kee's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 73
  • Thank you received: 0
Thanks Ron,
I added that code to the Flatwhite.css (base style I am using), changed the width to 40.0vmin and it worked a treat.
Cheers

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

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.053 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search