Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 395: | Line 395: | ||
function collapseSome() { | function collapseSome() { | ||
$(".mw-collapsible").not('.keep-abierto').addClass("mw-collapsed"); | $(".mw-collapsible").not('.keep-abierto').addClass("mw-collapsed"); | ||
+ | } | ||
+ | |||
+ | function expandSidebar() { | ||
+ | var menuWidth = parseInt(window.getComputedStyle(document.getElementById("menu")).width) | ||
+ | if (menuWidth < 400 ) { | ||
+ | $("#menu").css('width','600px') | ||
+ | $(".titulo1-marco-twolines").addClass("titulo1MarcoTwolines") | ||
+ | $(".titulo1-marco-twolines").addClass("titulo1-marco-oneline") | ||
+ | $(".titulo1MarcoTwolines").removeClass("titulo1-marco-twolines") | ||
+ | $("#sectionPure").css({'margin-bottom': '30px', 'margin-top':'2px'}) | ||
+ | $("#sectionSocial").css({'margin-bottom':'30px', 'margin-top':'2px'}) | ||
+ | $("#space-end-pure").css({'margin-bottom':'85px'}) | ||
+ | $("#space-end-social").css({'margin-bottom':'60px'}) | ||
+ | $("#space-end-music").css({'margin-bottom':'45px'}) | ||
+ | }else{ | ||
+ | $("#menu").css('width','300px') | ||
+ | $(".titulo1MarcoTwolines").addClass("titulo1-marco-twolines") | ||
+ | $(".titulo1-marco-twolines").removeClass("titulo1MarcoTwolines") | ||
+ | $(".titulo1-marco-twolines").removeClass("titulo1-marco-oneline") | ||
+ | $("#sectionPure").css({'margin-bottom': '73px', 'margin-top':'-5px'}) | ||
+ | $("#sectionSocial").css({'margin-bottom':'55px', 'margin-top':' 2px'}) | ||
+ | $("#space-end-pure").css({'margin-bottom':'80px'}) | ||
+ | $("#space-end-social").css({'margin-bottom':'30px'}) | ||
+ | $("#space-end-music").css({'margin-bottom':'40px'}) | ||
+ | } | ||
} | } | ||
Line 468: | Line 493: | ||
// } | // } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Revision as of 21:58, 13 March 2021