Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 311: | Line 311: | ||
<div style="text-align:right; margin-top:-35px; margin-bottom: 15px; padding-right: 5px"> | <div style="text-align:right; margin-top:-35px; margin-bottom: 15px; padding-right: 5px"> | ||
− | <button onclick="" style="border-width:0px"> <i style="color: #999191; font-size:20px" class="fa fa-arrow-right" aria-hidden="true"></i> </button> | + | <button onclick="expandSidebar()" style="border-width:0px"> <i style="color: #999191; font-size:20px" class="fa fa-arrow-right" aria-hidden="true"></i> </button> |
</div> | </div> | ||
Line 470: | Line 470: | ||
} | } | ||
+ | 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'}) | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
if ( event.ctrlKey ) { | if ( event.ctrlKey ) { | ||
if ( event.which === 89 ) { | if ( event.which === 89 ) { |
Revision as of 21:55, 13 March 2021