add theme
This commit is contained in:
25
themes/butterfly/source/css/welcome.css
Normal file
25
themes/butterfly/source/css/welcome.css
Normal file
@@ -0,0 +1,25 @@
|
||||
#welcome-info {
|
||||
overflow: hidden;
|
||||
border-radius: 14px;
|
||||
--kouseki-welcome-color: #49B1F5;
|
||||
--kouseki-ip-color: #49B1F5;
|
||||
--kouseki-gl-size: 16px!important;
|
||||
}
|
||||
/* 给 IP 地址的 span 再包一层,便于选择器定位 */
|
||||
/* JS 原文已经生成 <b><span>IP</span></b>,这里我们给这个 span 加类名 ip-mask */
|
||||
/* 如果你不方便改 HTML,可直接用属性选择器:#welcome-info b span:nth-child(1) */
|
||||
#welcome-info b span.ip-mask {
|
||||
display: inline-block;
|
||||
filter: blur(6px);
|
||||
transition: filter .3s ease;
|
||||
cursor: pointer;
|
||||
user-select: none; /* 防止复制到模糊文本 */
|
||||
}
|
||||
|
||||
/* 鼠标悬停或点击时(:active)立即清晰 */
|
||||
#welcome-info b span.ip-mask:hover,
|
||||
#welcome-info b span.ip-mask:active {
|
||||
filter: blur(0);
|
||||
}
|
||||
|
||||
/* 如果想做成「必须点一下才永久清晰」,把 :hover 去掉即可 */
|
||||
Reference in New Issue
Block a user