PopUp image resize content

  • tag6
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 months ago #12550 by tag6
PopUp image resize content was created by tag6
I used a Zh OpenStreetMap Module with Placemark Group List ID4 but the popUp image is too large. custom-maps.css does not work as in component. (see attachments).
Attachments:

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

More
5 years 2 months ago - 5 years 2 months ago #12551 by Dima
Replied by Dima on topic PopUp image resize content
Hi.
In your case custom-map.css is overriden by my common.css
Try to create your own css file. Add your styles there and in map details on "Advanced options" add line into "Additional CSS style files for loading" with path to your file.
In this case after my styles will be loaded your file and it will override my styles.

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 5 years 2 months ago by Dima.

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

  • tag6
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 months ago - 5 years 2 months ago #12560 by tag6
Replied by tag6 on topic PopUp image resize content
custom-map.css is overriden by common.css !!! why ?

1) load my css in custom-map.css file
menu> single item> in item insert plugin {Zhosmmap: 1; 10}
it works correct

2) load my css in custom-map.css file
menu> contact list category + bottom module OpenStreetMap group id 4 (enabled only for menu list contacts category)
not correct ...

see attachments...
Attachments:
Last edit: 5 years 2 months ago by tag6.

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

More
5 years 2 months ago #12563 by Dima
Replied by Dima on topic PopUp image resize content
I think due to different loading way.
Without link to page I can't explain more.

As I wrote, you can easyly add to load your styles in map in case styles override

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

  • tag6
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 2 months ago #12564 by tag6

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

More
5 years 2 months ago #12565 by Dima
Replied by Dima on topic PopUp image resize content
Hi
I can see the same order of css files, but I can't correct explain why custom-maps.css is not override.
I can see your first map displayed by plugin call, and map div is not "OMapsID" - this div defined in my css file to disable max-width (and you set not default map CSS class), therefore my css is not set img tag.
And the second map displayed by module, and it has div OMapsID, which take my styles and you got wrong style.

I'm not well in CSS overrides, I though it have to be correct work.

I suggest to check
1 - in your custom-maps file add override to definite map div, like
.rcmaps img,
#OMapsID img
{
max-width: 100% !important;
}
Probably in this case direct override (not by class) will do what you want

2 - you can create Custom HTML module, publish it instead map module, and call there plugin

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

Time to create page: 0.192 seconds
Powered by Kunena Forum