Fix layout.

This commit is contained in:
BoHung Chiu 2023-02-04 14:45:16 +08:00
parent ca3f2f3a10
commit 5c35c42ed3
1 changed files with 12 additions and 1 deletions

View File

@ -50,10 +50,17 @@
color: <%=current_site.orbit_bar_text_color%>;
height: 100%;
}
@media screen and (max-width: 767px){
.timeman-container{
padding: 0 15px;
float: none;
}
}
.timeman-wrap{
height: 100%;
}
.current_time{
.current_time, .timeman-status{
line-height: 40px;
font-size: 1.3em;
}
.timeman-block {
@ -285,6 +292,10 @@
if($("#timeman_main").hasClass("active_popup") && need_display !== true)
$("#timeman_main").removeClass("active_popup");
else{
var timeman_button = $('#timeman-container');
var timeman_button_offset = timeman_button.offset();
$("#timeman_main").css('top', timeman_button_offset.top + timeman_button.height() + 22);
$("#timeman_main .popup-window-angly-top").css('left', $('#timeman-right').offset().left);
$("#timeman_main").addClass("active_popup");
if($.fn.scrollingTabs)
$('#timeman_main .nav-pills').scrollingTabs('refresh');