网站的顶部栏有一个不应该出现的下拉阴影。
详情
我已经编辑了这个Jekyll主题的顶部栏,feeling responsive,以便我可以添加在顶部栏的标志,现在它有这个阴影。我可能以某种方式添加了它,但我不知道如何摆脱它。我在下面附上了几张图片,以便你更好地理解我在说什么。看看顶部栏的右下方,你会看到那里有一个阴影。
What It Looks Like Now
文件
存储库可以在here中找到,组件包括:
这是一些top-bar.scss
请记住,在这个文件中有大约530多行代码,我真的不知道我在找什么。
.top-bar {
overflow: hidden;
height: $topbar-height;
line-height: $topbar-height;
position: relative;
background: $topbar-bg;
margin-bottom: $topbar-margin-bottom;
// Topbar Global list Styles
ul {
margin-bottom: 0;
list-style: none;
}
.row { max-width: none; }
form,
input { margin-bottom: 0; }
input {
height: $topbar-input-height;
padding-top: .35rem;
padding-bottom: .35rem;
font-size: $topbar-button-font-size;
这是navigation.html
<div id="navigation" class="sticky">
<nav class="top-bar" role="navigation" data-topbar data-options="scrolltop: false">
<ul class="title-area">
<div id="topbar-logo">
<a href="{{ site.url }}{{ site.baseurl }}">
<img id="topbar-logo-img"
src="{{ site.url }}{{ site.baseurl }}/assets/img/logo-topnav.png"
alt="Technovine Solutions"
style="object-fit:contain"
/>
</a>
</div>
<li class="name">
<h1 class="hide-for-large-up">
<!-- <a href="{{ site.url }}{{ site.baseurl }}" class="icon-tree"> {{ site.title }}</a> -->
<!-- <img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ site.logo }}"
height="3rem" /> -->
</h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar toggle-topbar-click menu-icon"><a><span>Nav</span></a></li>
</ul>
<section class="top-bar-section">
1条答案
按热度按时间pkmbmrz71#
我已经将
max-height: fit-content;
添加到_sass_07_layout.scss的导航中并清理了_includes_navigation. html文件: