Align menu icons on prod view

This commit is contained in:
Xavier Rousset
2016-10-26 12:09:24 +02:00
parent 73de45f0f9
commit f9d496f6c5
2 changed files with 13 additions and 13 deletions

View File

@@ -347,7 +347,7 @@ function resize() {
if ($('#idFrameC').data('ui-resizable')) { if ($('#idFrameC').data('ui-resizable')) {
$('#idFrameC').resizable('option', 'maxWidth', (480)); $('#idFrameC').resizable('option', 'maxWidth', (480));
$('#idFrameC').resizable('option', 'minWidth', 300); $('#idFrameC').resizable('option', 'minWidth', 360);
} }
answerSizer(); answerSizer();
@@ -1166,7 +1166,7 @@ $(document).ready(function () {
$('#idFrameC').stop().animate({ $('#idFrameC').stop().animate({
width: nwidth width: nwidth
}, },
300, 360,
'linear', 'linear',
function () { function () {
answerSizer(); answerSizer();
@@ -1178,9 +1178,9 @@ $(document).ready(function () {
$('#idFrameC .ui-tabs-nav li').on('click', function (event) { $('#idFrameC .ui-tabs-nav li').on('click', function (event) {
if($('#idFrameC').attr('data-status') == 'closed'){ if($('#idFrameC').attr('data-status') == 'closed'){
$('#idFrameC').width(300); $('#idFrameC').width(360);
$('#rightFrame').css('left', 300); $('#rightFrame').css('left', 360);
$('#rightFrame').width($(window).width()-300); $('#rightFrame').width($(window).width()-360);
$('#baskets, #proposals, #thesaurus_tab').hide(); $('#baskets, #proposals, #thesaurus_tab').hide();
$('.ui-resizable-handle, #basket_menu_trigger').show(); $('.ui-resizable-handle, #basket_menu_trigger').show();
var IDname = $(this).attr('aria-controls'); var IDname = $(this).attr('aria-controls');
@@ -1188,7 +1188,7 @@ $(document).ready(function () {
} }
$('#idFrameC').attr('data-status', 'open'); $('#idFrameC').attr('data-status', 'open');
$('.WZbasketTab').css('background-position', '9px 21px'); $('.WZbasketTab').css('background-position', '9px 25px');
$('#idFrameC').removeClass('closed'); $('#idFrameC').removeClass('closed');
}); });
@@ -1204,17 +1204,17 @@ $(document).ready(function () {
$('#idFrameC').attr('data-status', 'closed'); $('#idFrameC').attr('data-status', 'closed');
$('#baskets, #proposals, #thesaurus_tab, .ui-resizable-handle, #basket_menu_trigger').hide(); $('#baskets, #proposals, #thesaurus_tab, .ui-resizable-handle, #basket_menu_trigger').hide();
$('#idFrameC .ui-tabs-nav li').removeClass('ui-state-active'); $('#idFrameC .ui-tabs-nav li').removeClass('ui-state-active');
$('.WZbasketTab').css('background-position', '15px 16px'); $('.WZbasketTab').css('background-position', '15px 25px');
$('#idFrameC').addClass('closed'); $('#idFrameC').addClass('closed');
previousTab = $('#idFrameC .icon-menu').find('li.ui-tabs-active'); previousTab = $('#idFrameC .icon-menu').find('li.ui-tabs-active');
}else{ }else{
$(this).find('i').removeClass('icon-double-angle-right').addClass('icon-double-angle-left') $(this).find('i').removeClass('icon-double-angle-right').addClass('icon-double-angle-left')
$('#idFrameC').width(300); $('#idFrameC').width(360);
$('#rightFrame').css('left', 300); $('#rightFrame').css('left', 360);
$('#rightFrame').width($(window).width()-300); $('#rightFrame').width($(window).width()-360);
$('#idFrameC').attr('data-status', 'open'); $('#idFrameC').attr('data-status', 'open');
$('.ui-resizable-handle, #basket_menu_trigger').show(); $('.ui-resizable-handle, #basket_menu_trigger').show();
$('.WZbasketTab').css('background-position', '9px 16px'); $('.WZbasketTab').css('background-position', '9px 25px');
$('#idFrameC').removeClass('closed'); $('#idFrameC').removeClass('closed');
$('#idFrameC .icon-menu li').last().find('a').trigger('click'); $('#idFrameC .icon-menu li').last().find('a').trigger('click');
$('#idFrameC .icon-menu li').first().find('a').trigger('click'); $('#idFrameC .icon-menu li').first().find('a').trigger('click');

View File

@@ -23,7 +23,7 @@ $workzoneTabDisabledTextColor: $mediumTextActiveColor !default;
*/ */
#idFrameC { #idFrameC {
top: 0 !important; top: 0 !important;
min-width: 300px; min-width: 360px;
bottom: 0 !important; bottom: 0 !important;
&.closed { &.closed {
min-width: 0; min-width: 0;
@@ -153,7 +153,7 @@ $workzoneTabDisabledTextColor: $mediumTextActiveColor !default;
display: block; display: block;
background-image: url('#{$iconsPath}workzone32.png'); background-image: url('#{$iconsPath}workzone32.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 9px 21px; background-position: 9px 25px;
width: 70px; width: 70px;
height: 82px; height: 82px;
} }