精品广告位

B2主题美化-创建圈子按钮

创建圈子按钮美化了一下,加了一个蓝色背景和动态边框效果

操作如下:

B2PRO主题版本:版本:3.5.6

再主题css或者子主题css添加如下代码

.circle-widget-button .text {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 3vh;
}
.circle-widget-button .text {
  border: 0px;
  background: #2d79fc;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
  position: relative;
  outline: none;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: none;
}
button::before, button::after {
  box-sizing: inherit;
  position: absolute;
  content: '';
  border: 2px solid transparent;
  width: 0;
  height: 0;
}
button::after {
  bottom: 0;
  right: 0;
}
button::before {
  top: 0;
  left: 0;
}
.circle-widget-button .text:hover::before, button:hover::after {
  width: 100%;
  height: 100%;
}
.circle-widget-button .text:hover::before {
  border-top-color: #1E90FF;
  border-right-color: #2d79fc;
  transition: width 0.3s ease-out, height 0.3s ease-out 0.3s;
}
.circle-widget-button .text:hover::after {
  border-bottom-color: #1E90FF;
  border-left-color: #2d79fc;
  transition: border-color 0s ease-out 0.6s, width 0.3s ease-out 0.6s, height 0.3s ease-out 1s;
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
b2主题

为B2主题增加文章发布后更新邮件通知注册用户

2023-12-20 19:50:06

Autojs

Autojs - 触摸监听

2023-11-16 19:25:44

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 68107808@qq.com 或点击右侧 私信:老猫 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索