Skip to content

Instantly share code, notes, and snippets.

@Clarence-pan
Last active August 29, 2017 08:09
Show Gist options
  • Save Clarence-pan/cc67e116837f188ce8b6b463a8b0ba92 to your computer and use it in GitHub Desktop.
Save Clarence-pan/cc67e116837f188ce8b6b463a8b0ba92 to your computer and use it in GitHub Desktop.
Fix the style of zhihu in my opinion
.AppHeader-inner,
.Footer,
.Card.AppBanner,
.Card[data-za-module=RelatedLives]{
display: none !important;
}
.Card{
position: relative;
z-index: 1;
}
.Card:hover{
z-index: 999999;
}
.QuestionHeader-title{
font-size: 16px;
}
.QuestionAnswers-answers > .Card{
overflow: visible!important;
}
.Button--primary{
background: #fff !important;
color: #333!important;
border: 1px solid #aaa;
}
.RichText p {
line-height: 1.5;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
}
.ContentItem-meta{
position: absolute;
right: -212px;
width: 200px;
overflow: hidden;
background: #fff;
padding: 10px;
margin-top: -10px;
box-shadow: 1px 2px 10px #aaa;
z-index: 2;
}
.VoteButton {
color: #aaa;
background: #fff;
}
.zhi>.zu-top,
.zhi .zu-top-nav-li.current,
.zhi .zu-top-add-question,
.zhi .zu-top-search-button{
background: #fff!important;
color: #333!important;
}
.zhi .zu-top-nav-link,
.zhi .zu-top-nav-link:visited,
.zhi .zu-top-nav-link:active{
color: #000!important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment