MediaWiki:Common.css
来自食研百科
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 ,暂时使用了copy自灰机wiki的样式*/
.mw-editsection { display: none; }
ol.carousel-indicators {
display: none;
}
.page-首页 .tab-content{
border: none!important;
padding:12px!important;
}
.page-首页 .nav-tabs > li{
background:transparent!important;
}
.nav-tabs > li{
background:#337ab7;
}
.nav-tabs > li > a{
color:#fff;
}
.nav nav-tabs{
margin-bottom:0px;
}
.hlisthelp li{
display:inline;
margin-left:10px;
}
.hlesthelp li:after{
content: " ·";
font-weight: bold;
}
.prettytable td, th{
padding:8px;
}
.page-error{
height:560px;
background:url("https://huiji-public.huijistatic.com/www/uploads/3/35/Marvin.png") 50% 50% no-repeat;
text-align:center;
position:relative;
font-size:18px;
}
#content .page-error p{
line-height:1.5;
}
.error-info-wrapper{
position:absolute;
bottom:80px;
text-align:center;
width:100%;
}
.page-error .error-info-header{
color:#ff0000;
font-weight:bold;
font-size:30px;
}
.page-error .error-info-header span{
font-size:50px;
}
.page-error .error-back{
color:#428bca;
margin-top:50px;
cursor:pointer
}
.page-error .error-back:hover, .page-error .error-back:focus {
color: #2a6496;
text-decoration: underline;
}
ol.references{
display:none;
}
@media screen and (max-width:1199px){
.page-error{
background-size:100%;
}
}
.nav-tabs{margin-left:0px !important;}
.flow-author a{color: #428bca;}
.mw-headline{
font-weight:bold;
}
/* Make Headlines some decoration */
h3 .mw-headline::before, h3 .mw-headline::after,
h4 .mw-headline::before, h4 .mw-headline::after,
h5 .mw-headline::before, h5 .mw-headline::after{
font-family: 'icomoon';
display: inline-block;
opacity: 0.2;
margin: 0 0.6em;
font-size: 0.5em;
vertical-align: middle;
}
.mw-headline::before{
-webkit-transform: rotate(40deg);
-moz-transform: rotate(40deg);
-o-transform: rotate(40deg);
-ms-transform: rotate(40deg);
transform: rotate(40deg);
}
.mw-headline::after{
-webkit-transform: rotate(220deg);
-moz-transform: rotate(220deg);
-o-transform: rotate(220deg);
-ms-transform: rotate(220deg);
transform: rotate(220deg);
}
h3 .mw-headline::before, h3 .mw-headline::after{
content: "\e609";
}
h4 .mw-headline::before, h4 .mw-headline::after{
content: "\e609\e609";
}
h5 .mw-headline::before, h5 .mw-headline::after{
content: "\e609\e609\e609";
}
/* End of making Headlines some decoration */
table.wikitable{
font-size:14px;
}
kbd{ background-color: #747475;}
.pun, .opn, .clo,.com {
color: #5f5f5f;}
.wikitable>th a{
color:#fff!important;
}
code{
color:#285f8f;
background-color:rgba(214, 232, 243, 0.56);
}
.helpbox:hover{
background-color:#e3e3e3!important;
transition: background-color .25s ease,color .25s ease;
}
@font-face {
font-family: BebasNeue;
src: url('https://fs.huijiwiki.com/www/resources/font/BebasNeue.otf');
}
.enfont{
font-family: BebasNeue;
}
.nolistyle{
list-style:none;
}
/*====== huiji news start ======*/
.ns-230 .page-header {
display: none;
}
.hj-news_main {
padding-top: 32px;
}
/* banner图部分 start */
.hj-news_banner {
position: relative;
}
.hj-news_banner-container {
width: 100%;
height: 300px;
}
.hj-news_banner-container img {
width: 100%;
height: 100%;
object-fit: cover;
}
.hj-news_info {
position: relative;
height: 40px;
padding: 5px 0 0 135px;
}
.hj-news_avatar-container {
width: 80px;
height: 80px;
border: 4px solid #fff;
border-radius: 50%;
position: absolute;
bottom: 0;
left: 30px;
font-size: 12px;
overflow: hidden;
}
.hj-news_avatar-container img,
.hj-news_avatar-container .headimg {
width: 100%;
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-content: center;
align-items: center;
font-size: 50px;
line-height: 50px;
border-radius: 0;
}
.hj-news_info-content {
font-size: 18px;
color: #aaaaaa;
}
/* banner图部分 end */
.hj-news_content {
padding-top: 30px;
}
#content .hj-news_title,
.hj-news_title {
font-size: 36px;
font-weight: normal;
line-height: 1.3;
}
.hj-news_intro {
font-size: 16px;
min-height: 64px;
color: #888;
background-color: #fafafa;
display: flex;
align-content: center;
align-items: center;
justify-content: center;
padding: 16px 32px;
margin: 24px 0;
}
.hj-news_content img {
max-width: 100%;
width: 100%;
height: auto;
max-height: 500px;
object-fit: contain;
}
.huiji-qrcode-container {
display: flex;
justify-content: center;
align-content: center;
align-items: center;
flex-direction: column;
padding: 24px 0;
}
.huiji-qrcode {
width: 256px;
}
/* 右侧栏部分 start */
.hj-news_bar-card {
width: 100%;
min-height: 122px;
box-sizing: border-box;
background-color: #f5f5f5;
position: relative;
padding: 20px;
margin-top: 30px;
}
.hj-news_bar-card + .hj-news_bar-card {
margin-top: 46px;
}
.hj-news_bar-avatar {
width: 60px;
height: 60px;
border: 1px solid #fff;
border-radius: 50%;
position: absolute;
font-size: 12px;
top: -30px;
left: 20px;
overflow: hidden;
}
.hj-news_bar-avatar img,
.hj-news_bar-avatar .headimg {
width: 100%;
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-content: center;
align-items: center;
font-size: 40px;
line-height: 40px;
border-radius: 0;
}
.hj-news_bar-name {
font-size: 24px;
line-height: 31px;
margin: 20px 0 0 5px;
}
.hj-news_bar-profile {
color: #888;
font-size: 14px;
line-height: 18px;
margin: 7px 0 0 5px;
}
.hj-news_bar-relative {
width: 100%;
margin-top: 22px;
}
.hj-news_bar-relative-title {
width: 83px;
font-size: 20px;
line-height: 26px;
font-weight: bold;
border-bottom: 2px solid #00abd0;
padding-bottom: 5px;
}
.hj-news_bar-relative-card-wrapper {
width: 100%;
box-sizing: border-box;
margin-top: 22px;
background-color: #f5f5f5;
}
.hj-news_bar-relative-card {
position: relative;
width: 100%;
height: 64px;
display: flex;
padding: 8px;
}
.hj-news_bar-relative-card:hover {
background-color: #eee;
}
.hj-news_bar-relative-card-thumb-container {
width: 100px;
height: 48px;
border-radius: 2px;
line-height: 48px;
font-size: 12px;
flex: none;
object-fit: ;
}
.hj-news_bar-relative-card-thumb-container img {
width: 100%;
height: 100%;
}
.hj-news_bar-relative-card-title {
flex: 1;
height: 100%;
font-size: 14px;
line-height: 24px;
overflow: hidden;
padding: 0 10px;
}
.hj-news_bar-relative-card a {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
user-select: none;
opacity: 0;
}
/* 右侧栏部分 end */
/*====== huiji news start ======*/
/* ====== huiji home start ====== */
.home-info {
padding: 0;
}
@media screen and (max-width: 768px) {
.home-main {
width: 100%;
}
}
.hj-home-banner {
padding: 0;
min-height: initial;
}
.hj-home-section {
padding: 24px 24px 0 24px;
}
/* home-carousel */
.hj-home-carousel {
position: relative;
width: 100%;
padding-bottom: 25%;
overflow: hidden;
margin-right: ;
}
.hj-home-carousel .hj-home-carousel_inner,
.hj-home-carousel .hj-home-carousel_item,
.hj-home-carousel .hj-home-carousel_item > a {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.hj-home-carousel .hj-home-carousel_item > img {
width: 100%;
height: 100%;
object-fit: cover;
}
.hj-home-carousel .hj-home-carousel_item > a {
opacity: 0;
}
.hj-home-carousel .hj-home-carousel_trigger-wrapper {
display: flex;
justify-content: center;
position: absolute;
width: 100%;
height: 10%;
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
margin: 0 auto !important;
padding: 0 !important;
}
.hj-home-carousel .hj-home-carousel_trigger {
width: 16px;
height: 8px;
margin: 0 8px;
background-color: #eeeeee;
border: none;
border-radius: 2px;
transition: background-color ease-in-out 0.2s;
}
.hj-home-carousel .hj-home-carousel_trigger.active {
background-color: #337ab7;
}
.hj-home-carousel .hj-home-carousel_trigger-previous,
.hj-home-carousel .hj-home-carousel_trigger-next {
display: flex;
justify-content: center;
align-content: center;
align-items: center;
position: absolute;
width: 4%;
top: 0;
bottom: 0;
background: none;
color: white;
font-size: 32px;
opacity: 0.75;
transition: ;
}
.hj-home-carousel .hj-home-carousel_trigger-previous:hover,
.hj-home-carousel .hj-home-carousel_trigger-next:hover {
opacity: 1;
}
.hj-home-carousel .hj-home-carousel_trigger-previous {
left: 0;
}
.hj-home-carousel .hj-home-carousel_trigger-next {
right: 0;
}
/* home news front pair */
.hj-home-newsfrontpair .hj-home-newsfrontpair_item {
padding-bottom: 16px;
}
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-thumb-container {
position: relative;
width: 100%;
padding-bottom: 56.3%;
border-radius: 2px;
overflow: hidden;
}
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-thumb-container a,
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-thumb-container img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
#home-newsfrontpair h1,
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-title {
font-size: 16px;
padding: 12px 0 0 0;
margin: 0;
}
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-info,
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-intro {
padding-top: 4px;
}
.hj-home-newsfrontpair .hj-home-newsfrontpair_item-info {
color: #888;
}
/* home recommend wikis */
.hj-home-recommendwikis-wrapper {
display: flex;
flex-wrap: nowrap;
margin: -16px;
padding: 8px;
}
.hj-home-recommendwikis-wrapper .hj-home-recommendwikis-item {
flex: 0 0 33.3%;
padding: 8px;
}
.hj-home-recommendwikis-wrapper .hj-home-recommendwikis-item_content {
position: relative;
width: 100%;
padding-bottom: 42%;
}
.hj-home-recommendwikis-wrapper .hj-home-recommendwikis-item a,
.hj-home-recommendwikis-wrapper .hj-home-recommendwikis-item img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.hj-home-recommendwikis-carousel {
padding-bottom: 40%;
}
/* home news list */
.hj-home-content .tab-content {
padding: 12px 0 !important;
}
.hj-home-newslist {
width: 100%;
}
.hj-home-newslist-item {
padding: 8px 0;
}
.hj-home-newslist-item .hj-home-newslist-item_thumb {
position: relative;
width: 100%;
padding-bottom: 52%;
}
.hj-home-newslist-item .hj-home-newslist-item_thumb a,
.hj-home-newslist-item .hj-home-newslist-item_thumb img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
#home-newslist h1,
.hj-home-newslist-item .hj-home-newslist-item_title {
width: 100%;
font-size: 16px;
line-height: 1;
margin: 0 0 12px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hj-home-newslist-item .hj-home-newslist-item_info {
font-size: 12px;
line-height: 1;
color: #888;
margin-bottom: 8px;
}
/* ====== huiji home end ====== */