某个导航栏变红(hot标签)
在theme.scss.liquid末尾空白处
.Header__MainNav .HorizontalList>li:nth-of-type(10)>a{color:red;
font-weight:bold;
position:relative}
.chicv-relative{
position:relative;
}
.hotTag::after {
position: absolute;
top: 95%;
left: 5px;
content: '';
width: 0;
height: 0;
border-style: solid;
border-width: 5px 4px 0 4px;
border-color: #f35b6e transparent transparent transparent;
}
.hotTag {
position: absolute;
padding: 0 6px .5px;
left: 0px;
top: -15px;
color: #fff;
background-color: #f35b6e;
line-height: 15px;
height: 15px;
font-size: 10px;
white-space: nowrap;
}
【某个导航栏变红(hot标签)】在header.liquid搜{{- link.title | escape -}},大概在237行左右。
{%- if forloop.index==2 or forloop.index==11 -%}
hot
{%- endif -%}
推荐阅读
- IDEA|IDEA 创建工程
- Android超简单实现沉浸式状态栏
- www和https://又被Chrome地址栏隐藏了
- Python专栏|数据分析的常规流程
- 复盘学习《通往财富自由之路》专栏——“我们重新理解了付费”
- springboot结合redis实现搜索栏热搜功能及文字过滤
- 短篇恐怖故事
- flutter设置沉浸式状态栏
- 今日头条付费专栏暴利玩法解析,半年收益50万是怎么做到的
- 移动用户体验设计(底部导航)