为你的hexo博客添加全局吸底并且收入侧边栏的Aplayer

1 篇文章 0 订阅
1 篇文章 0 订阅

最终效果

image-20210429142000885

1.收入侧边栏

找到butterfly配置文件APlayer.min.css把他下载下来,上图第一个

复制代码进入https://tool.oschina.net/codeformat/css格式化

由于.aplayer-body已经开启了fixed定位,只要简单修改一下left并设置最高优先级即可收入侧边栏

我们只需要在css中加入以下代码即可实现收入侧边栏

在代码最后加入即可

.aplayer.aplayer-narrow .aplayer-body {
    left: -66px !important;
}
.aplayer-body:hover {
    left: 0px !important
}

2.歌词颜色修改

.aplayer .aplayer-lrc p.aplayer-lrc-current {
    opacity:1;
    overflow:visible;
    height:auto!important;
    min-height:16px
}

找到如上代码修改如下

.aplayer .aplayer-lrc p.aplayer-lrc-current {
    /* 大小 */
    font-size: 17px;
    /* 颜色 */
    color: #1b82f1;
    opacity: 1;
    overflow: visible;
    height: auto !important;
    min-height: 16px;
}
.aplayer .aplayer-lrc p {
    font-size:12px;
    color:#666;
    line-height:16px!important;
    height:16px!important;
    padding:0!important;
    margin:0!important;
    transition:all .5s ease-out;
    opacity:.4;
    overflow:hidden
}

再修改上面css样式为

.aplayer .aplayer-lrc p {
    font-weight: 700;
    font-size:15px;
    color:#777;
    line-height:16px!important;
    height:16px!important;
    padding:0!important;
    margin:0!important;
    transition:all .5s ease-out;
    opacity:.4;
    overflow:hidden
}

3.最后

保存这个css,替换主题配置文件中的Aplayer.min.css即可

image-20210429134930335

有问题博客联系我

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
Hexo搭建中,你可以通过修改NexT主题的配置文件来自定义侧边样式。具体来说,你可以在NexT主题的配置文件中找到以下几个选项来修改侧边样式: 1. `links_icon`:这个选项用于设置友情链接的图标样式。你可以取消注释并设置为`link`来使用默认的链接图标。 2. `links_title`:这个选项用于设置友情链接的标题。你可以自行修改标题名称。 3. `links_layout`:这个选项用于设置友情链接的布局方式。默认情况下,链接以块的形式显示,你可以将其改为`inline`以内联的方式显示。 4. `links`:这个选项用于添加你的友情链接。你可以按照以下格式添加链接:`Title: http://example.com`。 通过修改这些选项,你可以自定义Hexo的侧边样式。请注意,你需要在NexT主题的配置文件中进行修改,并根据需要取消注释或添加相应的内容。 #### 引用[.reference_title] - *1* *2* [Hexo 搭建个人(八)NexT 侧边配置](https://blog.csdn.net/qq_32767041/article/details/103284345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Hexo 入门指南(四) - 页面、导航、边](https://blog.csdn.net/wizardforcel/article/details/40684953)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值