跳转到内容

中医百科:首页/styles.css:修订间差异

勤求古训,博采众方
无编辑摘要
无编辑摘要
第37行: 第37行:
  * 分割线
  * 分割线
  ******************************/
  ******************************/
.title{
.title-clip{
     padding: 0 20px 0;
     text-align: center;
     margin: 20px 0;
    font-size: 0.35rem;
     line-height: 1px;
    color: steelblue;
     border-left: 190px solid #ddd;
    overflow: hidden;
     border-right: 190px solid #ddd;
}
     text-align: center;
.title-clip::before,.title-clip::after{
    content: '';
    display: inline-block;
     width: 0;
     height: 1px;
     box-shadow: 0 0 0 249.975rem #ccc;
    vertical-align: middle;
}
.title-clip::before{
     margin-right: 0.25rem;
    clip-path: polygon(0 0, -249.975rem 0, -249.975rem 100%, 0 100%);
}
.title-clip::after{
    margin-left: 0.25rem;
     clip-path: polygon(0 0, 249.975rem 0, 249.975rem 100%, 0 100%);
}
}

2022年7月1日 (五) 17:20的版本

/******************************
 * Styles for mobile main page
 ******************************/

@media all and (min-width: 768px) {
	.wikidata-mainpage-column {
		float: left;
		width: 50%;
	}
	.wikidata-mainpage-column-first {
		padding-right: 5px;
	}
	.wikidata-mainpage-column-second {
		padding-left: 5px;
	}
	.wikidata-mainpage-sister-projects {
		text-align: center;
	}
}

/**
 * Hide title on main pages, village pumps and project chats
 * 
 * @author 
 * @maintainer 
 */

body.action-view .firstHeading {
	display: none;
}

body.action-view #contentSub { 
	display: none;
}

/******************************
 * 分割线
 ******************************/
.title-clip{
    text-align: center;
    font-size: 0.35rem;
    color: steelblue;
    overflow: hidden;
}
.title-clip::before,.title-clip::after{
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    box-shadow: 0 0 0 249.975rem #ccc;
    vertical-align: middle;
}
.title-clip::before{
    margin-right: 0.25rem;
    clip-path: polygon(0 0, -249.975rem 0, -249.975rem 100%, 0 100%);
}
.title-clip::after{
    margin-left: 0.25rem;
    clip-path: polygon(0 0, 249.975rem 0, 249.975rem 100%, 0 100%);
}