Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: 修改导航栏样式 #636

Merged
merged 2 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions theme/css/f2c-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,31 +117,29 @@ button::-moz-focus-inner{padding:0;border:0;}
.mega-nav-sandbox .mega-nav-icon-outline .mega-nav-icon{display:block;}
.mega-nav-sandbox .mega-nav-body-ct{bottom:0;display:none;left:0;overflow-y:auto;position:fixed;right:0;top:0;z-index:1100;}
.mega-nav-sandbox .mega-nav.open .mega-nav-body-ct{display:block;}
.mega-nav-sandbox .mega-nav-body{background-color:white;box-shadow:0 2px 16px rgba(79,99,122,0.2);color:black;margin:1em;padding:1em;}
.mega-nav-sandbox .mega-nav-body{background-color:white;box-shadow:0 2px 16px rgba(79,99,122,0.2);color:black;margin:1em;padding:1em;border-radius: 6px;}
.mega-nav-sandbox .mega-nav-body-footer{color:#a4b1b2;display:none;}
.mega-nav-sandbox .mega-nav-close{background-color:transparent;border:1px solid currentColor;float:right;margin-left:1em;margin-bottom:1em;padding:0.5em;text-align:center;}
.mega-nav-sandbox .mega-nav-close:hover,.mega-nav-sandbox .mega-nav-close:focus{color:#333333;outline:none;}
.mega-nav-sandbox .mega-nav-close:active{outline:none;}
.mega-nav-sandbox .mega-nav-close .mega-nav-icon{display:block;}
@media (min-width: 570px){
.mega-nav-sandbox .mega-nav-body{padding:2em 2em 1em;}
}
.mega-nav-sandbox .mega-nav-body .mega-nav-ul {list-style: none;margin: 0 !important;padding: 0;min-width: 280px;font-size: 12px;}
.mega-nav-sandbox .mega-nav-body .mega-nav-ul li {padding: 10px 10px;}
.mega-nav-sandbox .mega-nav-body .mega-nav-ul li a {font-weight: 400;color: #3c4858;}
.mega-nav-sandbox .mega-nav-body .mega-nav-ul li a:hover {color: #007bff;}
@media (min-width: 768px){
.mega-nav-sandbox .mega-nav-banner-item:first-child{display:block;}
}
@media (min-width: 992px){
.mega-nav-sandbox .mega-nav{position:relative;}
.mega-nav-sandbox .mega-nav::before{border-bottom:1em solid white;border-left:0.71429em solid transparent;border-right:0.71429em solid transparent;content:' ';display:none;height:0;left:50%;position:absolute;top:100%;transform:translateX(-50%);width:0;z-index:1101;}
.mega-nav-sandbox .mega-nav-body-ct{bottom:auto;left:auto;overflow:visible;position:absolute;right:0;top:100%;width:940px;}
.mega-nav-sandbox .mega-nav-body-ct{bottom:auto;left:auto;overflow:visible;position:absolute;right:0;top:100%;}
.mega-nav-sandbox .mega-nav-body{margin:1em 0 0;}
.mega-nav-sandbox .mega-nav-body-header{text-align:center;}
.mega-nav-sandbox .mega-nav-body-header-item:last-child{margin-left:auto;}
.mega-nav-sandbox .mega-nav-body-footer{display:block;padding-top:1em;}
.mega-nav-sandbox .mega-nav-close{display:none;}
}
@media (min-width: 1200px){
.mega-nav-sandbox .mega-nav-body-ct{width:1140px;}
}
/*! CSS Used from: https://metersphere.io/css/style.css */
.text-muted{color:#8492a6!important;font-weight:600;}
.rounded{border-radius:6px!important;}
Expand All @@ -167,9 +165,6 @@ p{font-family:-apple-system, BlinkMacSystemFont, "Neue Haas Grotesk Text Pro", "
h4,h5{font-family:-apple-system, BlinkMacSystemFont, "Neue Haas Grotesk Text Pro", "Arial Nova", "Segoe UI", "Helvetica Neue", ".PingFang SC", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "Hiragino Sans GB", sans-serif;line-height:1.5;font-weight:300;margin-bottom:0;}
.card{background:none;}
@media (max-width: 768px){
.mega-nav-sandbox .mega-nav-body{background-color:white;box-shadow:0 2px 16px rgba(79,99,122,0.2);color:black;margin:1em;padding:1em!important;}
}
.mega-nav-sandbox .mega-nav-body{background-color:white;box-shadow:0 2px 16px rgba(79,99,122,0.2);color:black;margin-top:1em;padding:1em;padding-left:100px;padding-right:100px;}
.explore-feature .icon-size{height:30px;width:30px;line-height:30px;-webkit-transition:all 0.5s ease;transition:all 0.5s ease;}
.explore-feature .product-text-color{color:#6c757d;}
.explore-feature:hover .bg-js{background-color:#2b937c;color:white!important;}
Expand Down
67 changes: 10 additions & 57 deletions theme/f2c-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,63 +33,16 @@

<div id="mega-nav-body-ct" class="mega-nav-body-ct" aria-labelledby="mega-nav-ctrl" style="display: none;">
<div class="mega-nav-body" style="margin-top: 0.5rem">
<button type="button" id="mega-nav-close" class="mega-nav-close">
<svg class="mega-nav-icon mega-nav-icon-close" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-close"></use></svg>
<span class="visuallyhidden">Close</span>
</button>
<div class="mega-nav-body-header">
<div class="mega-nav-body-header-item">
<h5 class="mt-4 mb-2 text-center title-weight400" style="font-size: 23px">我们基于创新的开源模式,向中国数字化团队交付被广泛验证、可信赖的通用工具软件。</h5>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6 col-6 mt-2 pt-2" style="flex:0 0 33%;max-width:50%">
<div class="card explore-feature border-0 rounded text-center bg-white shadow">
<a href="https://www.jumpserver.org/" target="_blank" class="product-text-color">
<div class="card-body card-item">
<h5 style="color: #000000">运维审计</h5>
<div class="mb-4">
<img src="{{ base_url }}/img/logo/banner-nav-JumpServer.svg" alt="JumpServer Logo">
<p class="text-muted mb-2 pl-0 pr-0" style="font-size: 14px;">
广受欢迎的开源堡垒机</p>
<img alt="GitHub stars" src="https://img.shields.io/github/stars/jumpserver/jumpserver?style=social">
</div>
</div>
</a>
</div>
</div>
<div class="col-lg-4 col-md-6 col-6 mt-2 pt-2" style="flex:0 0 33%;max-width:50%">
<div class="card explore-feature border-0 rounded text-center bg-white shadow">
<a href="https://dataease.io/" target="_blank" class="product-text-color">
<div class="card-body card-item">
<h5 style="color: #000000">BI 分析</h5>
<div class="mb-4">
<img src="{{ base_url }}/img/logo/banner-nav-DataEase.svg" alt="DataEase Logo">
<p class="text-muted mb-2 pl-0 pr-0" style="font-size: 14px;">
人人可用的开源数据可视化分析工具</p>
<img alt="GitHub stars" src="https://img.shields.io/github/stars/dataease/dataease?style=social">
</div>
</div>
</a>
</div>
</div>
<div class="col-lg-4 col-md-6 col-6 mt-2 pt-2" style="flex:0 0 33%;max-width:50%">
<div class="card explore-feature border-0 rounded text-center bg-white shadow">
<a href="https://metersphere.io/" target="_blank" class="product-text-color">
<div class="card-body card-item">
<h5 style="color: #000000">软件测试</h5>
<div class="mb-4">
<img src="{{ base_url }}/img/logo/banner-nav-MeterSphere.svg" alt="MeterSphere Logo">
<p class="text-muted mb-2 pl-0 pr-0" style="font-size: 14px;">
一站式开源持续测试平台</p>
<img alt="GitHub stars" src="https://img.shields.io/github/stars/metersphere/metersphere?style=social">
</div>
</div>
</a>
</div>
</div>
</div>
<div class="mega-nav-body-footer"></div>
<ul class="mega-nav-ul">
<li><a href="https://1panel.cn/" target="_blank">1Panel - 现代化、开源的 Linux 面板</a></li>
<li><a href="https://www.fit2cloud.com/jumpserver/index.html" target="_blank">JumpServer - 广受欢迎的开源堡垒机</a></li>
<li><a href="https://www.fit2cloud.com/dataease/index.html" target="_blank">DataEase - 人人可用的开源 BI 工具</a></li>
<li><a href="https://www.fit2cloud.com/metersphere/index.html" target="_blank">MeterSphere - 开源持续测试平台</a></li>
<li><a href="https://halo.run/" target="_blank">Halo - 强大易用的开源建站工具</a></li>
<li><a href="https://github.com/1Panel-dev/MaxKB" target="_blank">MaxKB - 基于大模型的开源知识库问答系统</a></li>
<li><a href="https://www.fit2cloud.com/cloudexplorer-lite/index.html" target="_blank">CloudExplorer Lite - 开源轻量级云管平台</a></li>
<li><a href="https://www.fit2cloud.com/gitea/index.html" target="_blank">Gitea - 新一代的代码托管平台(By 上海吉谛)</a></li>
</ul>
</div>
</div>
</div>
Expand Down