This commit is contained in:
ken 2026-09-21 15:22:34 +08:00
parent 549528b6a3
commit db7353151c
11 changed files with 75 additions and 38 deletions

View File

@ -2546,7 +2546,7 @@ $(function() {
if ($(window).width() <769) {
$('.modules-menu-level-0').after($('.header-nav'));
}else{
$('.navbar-header').before($('.header-nav'));
$('.outdropdowns').before($('.header-nav'));
};
$('.sitemenu-vertical .sitemenu-dropdown-toggle').click(function(){
$('.sitemenu-vertical .dropdown-menu').slideToggle();
@ -2613,7 +2613,7 @@ $(function() {
if ($(window).width() <769) {
$('.modules-menu-level-0').after($('.header-nav'));
}else{
$('.navbar-header').before($('.header-nav'));
$('.outdropdowns').before($('.header-nav'));
};
if ($(window).width() > 821) {
@ -3072,26 +3072,26 @@ $(function() {
});
//選單高度
$(document).ready(function() {
function adjustNavMargin() {
if ($(window).width() > 769) {
var headerHeight = $('.navbar-header').outerHeight(); // 抓高度(含padding)
$('#layout-navigation').css('margin-top', headerHeight + 'px');
} else {
// 螢幕小於等於 769px 時,還原 margin-top
$('#layout-navigation').css('margin-top', '');
}
}
// //選單高度
// $(document).ready(function() {
// function adjustNavMargin() {
// if ($(window).width() > 769) {
// var headerHeight = $('.navbar-header').outerHeight(); // 抓高度(含padding)
// $('#layout-navigation').css('margin-top', headerHeight + 'px');
// } else {
// // 螢幕小於等於 769px 時,還原 margin-top
// $('#layout-navigation').css('margin-top', '');
// }
// }
// 初始化執行一次
adjustNavMargin();
// // 初始化執行一次
// adjustNavMargin();
// 視窗縮放時也更新
$(window).resize(function() {
adjustNavMargin();
});
});
// // 視窗縮放時也更新
// $(window).resize(function() {
// adjustNavMargin();
// });
// });
// //選單樣式2
// $(document).ready(function() {
// "use strict";
@ -4176,6 +4176,28 @@ $(function() {
});
}, 500);
});
$(document).ready(function() {
var $movebox = $('.move-box');
var $wrapper = $('.move-box-wrapper');
function handleMovebox() {
if ($(window).width() > 768) {
// 大螢幕:移到 .modules-menu 裡面
$('.modules-menu').append($movebox);
} else {
// 小螢幕:移回 .move-box-wrapper 裡面
$wrapper.append($movebox);
}
}
setTimeout(handleMovebox, 300);
var resizeTimer;
$(window).on('resize', function() {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(handleMovebox, 150);
});
});
//ai須新增的function

View File

@ -1,13 +1,14 @@
@charset "utf-8";
a[accesskey] {
position: absolute;
position: absolute!important;
margin-left: 0;
z-index: 1000!important;
color:#333;
}
#orbit-bar a[accesskey] {
color: #525252;
color: #333;
margin-left: 0;
position: relative!important;
&:hover {

View File

@ -82,7 +82,7 @@ a[href="/en/sitemap"]{
}
blockquote{
color: #525252;
color: #333;
padding: 0;
margin: 0;
font-size: unset;
@ -97,7 +97,7 @@ a[href="/en/sitemap"]{
display: none;
}
a{
color: #525252;
color: #333;
text-decoration: none;
display: inline-block;
height: 40px;
@ -197,7 +197,7 @@ body {
width: 80%!important;
margin: auto;
}
margin: 4.5em auto 0;
margin: 2.5em auto 0;
&:before{
content: '';

View File

@ -131,7 +131,7 @@
transform: rotate(45deg);
float: left;
i{
color: #525252;
color: #333;
font-size: 1em!important;
padding: 0!important;
}

View File

@ -84,7 +84,7 @@
}
@media (min-width: 769px) {
.navbar-header {
float: left;
// float: left;
}
.navbar-nav{
flex-direction: row;

View File

@ -4,6 +4,14 @@
#orbit-bar .orbit-bar-title a {
color: #333 !important;
}
sup {
line-height: 0;
font-size: 0.6em;
}
sup {
line-height: 0;
font-size: 0.6em;
}
.outdropdowns{
width: 100%;
z-index: 1;
@ -90,8 +98,9 @@
}
}
.navbar-header h1.default_site_h1, .navbar-header h2.default_site_h1{
display: flex;
align-items: center;
// display: flex;
// align-items: center;
white-space: normal;
}
.navbar-header {
z-index: 10;

View File

@ -398,6 +398,7 @@ ul.button-mid{
// Widget 11
.ad-banner-widget-11 {
overflow: hidden;
border-radius: 2em;
.prev-button,.next-button{
background-color: $theme-color-second!important;
&:hover{

View File

@ -410,10 +410,10 @@
display: block;
font-family: $main-font;
font-weight: 600;
color: #525252;
color: #333;
font-size: 1em;
@media(max-width: 768px){
color: #525252;
color: #333;
}
}
@ -463,7 +463,7 @@
& > a {
display: block;
font-family: $main-font;
color:#525252;
color:#333;
font-weight: 500;
font-weight: bold;
}

View File

@ -18,13 +18,12 @@
<div class="cover"></div>
</div>
<header class="navbar layout-header no-print" role="navigation">
<div class="header-nav no-print">
<a id="accesskey_top" accesskey="U" title="accesskey top" href="#" title="Toolbar">:::</a>
{{header-data}}
</div>
<div class="outdropdowns kenjohn">
<div class="container dropdowns">
<div class="header-nav no-print">
<a id="accesskey_top" accesskey="U" title="accesskey top" href="#" title="Toolbar">:::</a>
{{header-data}}
</div>
<div class="navbar-header">
<a title="{{site_title_1}}" class="navbar-brand" href="{{home_link_1}}"><img class="site-logo" src="{{logo_url_1}}" alt="site-logo"></a>
<script>$(document).ready(function(){var url =$('.site-logo').eq(0).attr('src');if(url == "/assets/default-site-logo.png"){$('.navbar-brand').eq(0).remove();};if($('.navbar-brand').length == 2){$('.site-logo').css('height','auto')};$('.site-logo').eq(0).css('margin-right',0);$('.navbar-brand').css('padding-right',0)})</script>

View File

@ -106,6 +106,11 @@
<section class="layout-content-box col-sm-4" data-pp="34"></section>
<section class="layout-content-box col-sm-12" data-pp="233"></section>
</div>
<div class="container ">
<div class="move-box-wrapper row">
<div class="move-box col-sm-12" data-pp="100000"></div>
</div>
</div>
</div>
</div>

View File

@ -20,7 +20,7 @@
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<span class="w-annc__title">{{title}}</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<p class="w-annc__subtitle">{{subtitle}}</p>
<div class="hashtagswrapper">{{orbithashtags}}</div>