luci-theme-rosy: Fixed bug with rounded corners and drop down boxes
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
This commit is contained in:
parent
6cb25970b8
commit
c7bd4397fb
2 changed files with 16 additions and 16 deletions
|
@ -528,7 +528,6 @@ td>table>tbody>tr>td,
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-bottom-left-radius: 10px;
|
border-bottom-left-radius: 10px;
|
||||||
border-bottom-right-radius: 10px;
|
border-bottom-right-radius: 10px;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.tabs {
|
.tabs {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
@ -654,11 +653,6 @@ td>table>tbody>tr>td,
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cbi-rowstyle-2 .cbi-button-up,
|
|
||||||
.cbi-rowstyle-2 .cbi-button-down {
|
|
||||||
background-color: #468ea4 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
|
.cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
@ -2475,4 +2469,4 @@ footer {
|
||||||
.cbi-value-field .cbi-dropdown {
|
.cbi-value-field .cbi-dropdown {
|
||||||
min-width: 25rem;
|
min-width: 25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,15 +270,20 @@
|
||||||
if( $(window).width() > 992 ){
|
if( $(window).width() > 992 ){
|
||||||
$('.logged-in .main-right').outerWidth( $(window).width() - $('.logged-in .main-left').width() - 50 );
|
$('.logged-in .main-right').outerWidth( $(window).width() - $('.logged-in .main-left').width() - 50 );
|
||||||
}
|
}
|
||||||
var a = window.getComputedStyle($(".cbi-section .table .tr:first-child")[0], ':before').getPropertyValue('content');
|
|
||||||
var b = window.getComputedStyle($('.cbi-section .table .tr:last-child')[0], ':before').getPropertyValue('content');
|
$('.cbi-section .table').each(function(){
|
||||||
|
var thisTr = $(this).children('.tr').get(0);
|
||||||
if( a != 'none' || b != 'none' ){
|
var td = $(thisTr).children('.td').get(0);
|
||||||
$('.cbi-section .table .tr:first-child .td:first-child').css('border-top-left-radius', '0');
|
var th = $(thisTr).children('.th').get(0)
|
||||||
$('.cbi-section .table .tr:last-child .td:first-child').css('border-bottom-left-radius', '0');
|
var a = window.getComputedStyle(thisTr, ':before').getPropertyValue('content');
|
||||||
$('.cbi-section .table .tr:first-child .th:first-child').css('border-top-left-radius', '0');
|
console.log(td, th);
|
||||||
|
|
||||||
}
|
if( th && a != 'none' ){
|
||||||
|
$(th).css('border-top-left-radius', '0');
|
||||||
|
}else if( td && a != 'none' ){
|
||||||
|
$(td).css('border-top-left-radius', '0');
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('<samll>').text($('.cbi-progressbar').attr('title')).appendTo('.cbi-progressbar');
|
$('<samll>').text($('.cbi-progressbar').attr('title')).appendTo('.cbi-progressbar');
|
||||||
|
@ -288,5 +293,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Reference in a new issue