ubc / wiki-embed

WordPress plugin that lets you embed mediawiki pages into your site, sites like Wikipedia
19 stars 10 forks source link

Wiki-embed on the new UBC CLF Layout (responsive) #5

Open rienamba opened 10 years ago

rienamba commented 10 years ago

Hi, I am using Wiki-embed with the new UBC CLF Layout, but I found few things that do not work well on the new UBC CLF Layout:

Edited: Mar 4 - It got fixed when I add the CSS: a.external.free { word-break: break-word; } .wiki-embed-source{ word-break:break-word; }

enejb commented 10 years ago

Can you give an example where you are doing this. Cheers

rienamba commented 10 years ago

Hi Enej, an example of the page I am doing this is http://elearning4.sites.olt.ubc.ca/tools/approaches/eportfolios/

The JQuery Code I added for work-around (To force medias in wiki-embed to be responsive) /Makes embedded videos in Wiki Embed responsive/ var $ = jQuery.noConflict(); $( ".wiki-embed iframe" ).wrap( "

" ); $( ".wiki-embed object" ).wrap( "
" ); $(".wiki-embed .thumbinner").css("width", "100%");

The CSS I added for workaround(Special thanks to Loong. To force URL in Wiki-embed to word-break. ) : a.external.free { word-break: break-word; } .wiki-embed-source{ word-break:break-word; }