MediaWiki:Common.css:修订间差异

来自FishPort Wiki
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 这里放置的CSS将应用于所有皮肤 */


a{
p{
   position: relative;
   position: relative;
   cursor: pointer;
   cursor: pointer;
第10行: 第10行:
}
}


a::after{
p::after{
   content: '';
   content: '';
   position: absolute;
   position: absolute;
第21行: 第21行:
     text-decoration: none;
     text-decoration: none;
}
}
a:hover::after{
p:hover::after{
   text-decoration: none;
   text-decoration: none;
   left: 0;
   left: 0;
   right: 0;
   right: 0;
}
}

2024年12月17日 (二) 20:15的版本

/* 这里放置的CSS将应用于所有皮肤 */

p{
  position: relative;
  cursor: pointer;
  text-decoration: none; /* 去除默认的下划线 */
  display: inline-block;
  padding-bottom: 2px; /* 为下划线留出空间 */
  transition: all 0.3s ease-in-out; /* 过渡效果 */
}

p::after{
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px; /* 下划线高度 */
  background: #D3D3D3; /* 灰白色 */
  transition: all 0.3s ease-in-out; /* 过渡效果 */
    text-decoration: none;
}
p:hover::after{
  text-decoration: none;
  left: 0;
  right: 0;
}