MediaWiki:Common.css

来自McZoo红石站
Xm讨论 | 贡献2024年3月2日 (六) 21:27的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* infobox 样式开始 */
/* 响应式布局 */
@media (min-width:0px) and (max-width:768px){
    .vcard{
        width:100%;
        max-width:768;
        border-radius:10px;
        margin:5px auto;
        float:none;
    }
}
@media (min-width:768px) and (max-width:992px){
    .vcard{
        width:100%;
        max-width:992;
        border-radius:10px;
        margin:5px auto;
        float:none;
    }
}
@media (min-width:992px) {
    .vcard{
        width:293px;
        min-width:293px;
        float:right;
        border-radius:10px;
        margin:1px auto;
        margin-left:1em;
        margin-right:1em;
    }
}
/* 移动端显示相关类(.nomobile, .mobileonly, .onlymobile) */
@media screen and (max-width: 768px) {
	.nomobile {
		display: none;
	}
		.clubbanner-content{
		display: none;
}
}
@media screen and (min-width: 768px) {
	.mobileonly,
	.onlymobile {
		display: none;
	}
}


/* 链接颜色 */
a.new, #p-personal a.new {
    color: #4591FF;
}





/* 模糊样式开始 */
.blur-text {
  filter: blur(5px); /* 设置默认模糊效果 */
  transition: filter 0.2s ease-in-out; /* 添加过渡效果 */
  cursor: pointer; /* 鼠标样式为手型 */
}

.blur-text:hover, .blur-text.touched {
  filter: none; /* 鼠标悬停或已点击时取消模糊效果 */
}
/* 模糊样式结束 */



/* 轮播图显示文字 */
.image-container {
  position: relative;
  width: 50%;
}

.image-container img {
  width: 100%;
  height: auto;
}

.image-container .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #008CBA;
}

.image-container:hover .overlay {
  opacity: 0.8;
}

.image-container .text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.image-container .description {
  color: white;
  font-size: 16px;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}



/*通知栏*/
#siteNoticeScroll {
    width: 100%;
    height: 40px;
    line-height: 25px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 0.25em;
}

#siteNoticeScroll ul {
    height: 25px;
    line-height: 25px;
    -webkit-transition: margin .73s ease-in-out;
    -moz-transition: margin .73s ease-in-out;
    transition: margin .73s ease-in-out;
}

#siteNoticeScroll li {
    height: 25px;
    list-style: none;
    float: left;
    width: 100%;
}