优化“百度百科”的阅读体验!
baidu baike modification.
百度百科-屏蔽和优化 by runningcheese
Details
Authorrunningcheese
LicenseMIT
Categoryuserstyles
Created
Updated
Size5.9 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
forked form: https://userstyles.org/styles/130739,by 浮生未歇
Source code
/* ==UserStyle==
@name 百度百科-屏蔽和优化
@version 1.0.0
@description 优化“百度百科”的阅读体验!
@author RunningCheese
@namespace https://userstyles.world/user/runningcheese
@homepageURL https://www.runningcheese.com
@supportURL https://www.runningcheese.com/userstyles
==/UserStyle== */
@-moz-document url-prefix("https://baike.baidu.com/item") {
/* 对不需要的内容屏蔽 */
.declare-wrap,
.posterFlag,
.after-content,
.help,
.right-ad,
.wgt-footer-main,
.promotion_viewport,
.userbar_message,
.userbar_mall,
.layout > a,
.pinzhuanWrap,
.wiki-lemma .lemmaWgt-secondsKnow,
.lemmaWgt-promotion-slide .promotion_viewport,
.lemmaWgt-promotion-vbaike,
.professional-con,
.pc-header-new .topbar,
.zhidao-diversion,
.configModuleDown,
.navbar-wrapper,
#lemmaWgt-secondsKnow,
#tashuo_bottom,
#tashuo_right,
#side-auth,
#side-share,
#hotspotmining_s,
#side_box_unionAd {
display: none!important;
}
/****************** 全局设置 ******************/
body {
background: #333;
}
.body-wrapper .content-wrapper .content {
font-family: Microsoft YaHei, WenQuanYi Micro Hei, sans-serif!important;
}
/****************** 导航栏 ******************/
.header-wrapper .header .layout {
width: 100%;
}
.lemmaWgt-searchHeader {
border: none;
}
.lemmaWgt-searchHeader,
.header-wrapper .header {
background-color: #4F9CEE;
}
.pc-header-new .wgt-searchbar-main {
width: 930px;
margin: auto;
}
/* 百度图标 */
.cmn-icons_logo-du {
color: rgba(254, 254, 254, 1);
}
.cmn-icons_logo-bai,
.cmn-icons_logo-baike {
color: rgba(255, 255, 255, 0.54);
}
/* 下拉选项 */
.wgt-searchbar-new.wgt-searchbar .search .form .suggestion li {
padding: 0 8px;
height: 30px;
line-height: 30px;
font-size: 16px;
cursor: pointer;
}
/* 搜索栏 */
.wgt-searchbar-new.wgt-searchbar .search .form input {
height: 30px;
line-height: 1.5;
font-size: 16px;
border: none;
border-radius: 5px;
background: hsla(0, 0%, 100%, .2);
color: #fff;
transition: background .3s;
}
.wgt-searchbar-new.wgt-searchbar .search .form input:focus {
box-shadow: 0 0 5px rgba(255, 255, 255, .5);
background: hsla(0, 0%, 100%, .9);
color: #222;
transition: background .3s, box-shadow .5s;
}
#searchForm > button {
height: 40px;
line-height: 1.5;
border-radius: 5px;
margin-left: 5px;
border: none!important;
box-shadow: 0 0 0 transparent;
color: #fff!important;
background: hsla(0, 50%, 100%, .2)!important;
}
#searchForm > button:hover {
background: hsla(0, 50%, 100%, .9)!important;
box-shadow: 0 0 10px rgba(255, 255, 255, .5);
color: #222!important;
transition: box-shadow .5s, background .5s;
}
.wgt-navbar .navbar-bg .navbar-bg-top {
height: 43px;
border-top: none;
border-bottom: none;
background: #7c9b9e;
}
.wgt-searchbar-new.wgt-searchbar .logo-container {
padding: 12px 0 15px;
}
.tool-buttons {
margin-top: 30px;
}
.tool-buttons .button {
color: #fff;
font-size: 16px;
}
.lemmaWgt-searchHeader .user-info {
margin-top: 13px;
}
.lemmaWgt-searchHeader .user-info a.user-link {
text-decoration: none;
font-size: 16px;
color: #fff;
}
.wgt-searchbar-new.wgt-searchbar-large .search {
padding: 15px 0px;
}
.wgt-searchbar-new.wgt-searchbar-large .logo-container {
padding: 10px 0px;
}
/****************** 正文 ******************/
.body-wrapper .content-wrapper {
margin: 20px 0 30px;
}
.main-content table.table-view,
.body-wrapper .para {
font-size: 14px;
line-height: 1.8;
}
.page-background {
background: #f5f5f5!important;
}
.content {
margin-bottom: 30px;
}
.after-science-page-background {
margin-top: 0!important;
}
.polysemant-list-normal .polysemantList-header {
border-bottom: 1px solid #fff!important;
}
.before-content {
width: 1140px;
margin: 10px auto 0px;
}
.before-content .pinzhuanWrap {
padding: 5px 0;
}
.polysemant-list-normal .polysemantList-wrapper {
background: white;
}
.lemma-picture,
.side-box,
.zhidao-diversion,
.lemmaWgt-sideRecommend,
.wiki-lemma #authEdit,
.wiki-lemma #authResource,
.wiki-lemma .summary-pic {
border: none;
box-shadow: 0 0 0 transparent;
}
.lemmaWgt-lemmaCatalog .lemma-catalog .catalog-list ol li.level1 .text,
.lemmaWgt-lemmaCatalog .lemma-catalog .catalog-list,
.lemmaWgt-lemmaCatalog .lemma-catalog {
background: #fcfcfc;
border: none;
}
.lemmaWgt-lemmaCatalog .lemma-catalog {
border-radius: 5px;
}
.lemmaWgt-lemmaCatalog .lemma-catalog .catalog-list ol li.level2 .text {
font-size: 14px;
}
.polysemant-list .polysemantList-header .polysemantList-header-title .toggle.expand,
.polysemant-list .polysemantList-header .polysemantList-header-title .toggle.collapse,
.polysemant-list .polysemantList-header .polysemantList-addButton {
width: auto;
}
/* 底栏排版 */
.wgt-footer-main {
width: 1140px;
margin: 10px auto 0px;
}
/************************* 加入动画效果 ****************************/
.body-wrapper {
animation-name: left_logoR;
-webkit-animation-duration: .5s;
-moz-animation-duration: .5s;
animation-duration: .5s;
-webkit-animation-timing-function: ease;
-moz-animation-timing-function: ease;
animation-timing-function: ease;
}
@-webkit-keyframes left_logoR {
0% {
-webkit-transform: translateY(64px);
-moz-transform: translateY(64px);
transform: translateY(64px);
opacity: 0;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
}