Enabling mobile Support for Tippy
-
Hey,
So I noticed that tippy wasn’t re-sizing properly for mobile browsers and some of the popup didn’t look like it “connected” well.
Basically you need to set a max-midth allowed for the header-body and tooltip window for it to resize for mobile devices.
I also resized the default width to be 450 pixels all around.
File modified:
jquery.tippy.css.tippy_tip { max-width: 100%; width: 450px; height: 300px; border-radius: 5px; box-shadow: 0px 0px 3px #888, 4px 4px 6px #888; z-index: 50; } .tippy_header { background-color: #ccc; max-width: 100%; width: 450px; padding: 5px; border-radius: 5px 5px 0 0; font-weight: bold; text-align: left; } .tippy_body { background-color: white; padding: 10px 15px 10px 15px; max-width: 100%; width: 450px; max-height: 275px; border-radius: 0 0 5px 5px; position: relative; overflow: auto; }
- The topic ‘Enabling mobile Support for Tippy’ is closed to new replies.