Skip to content

zhihu for mobile by lhb5883

Details

Authorlhb5883

LicenseCC BY - Creative Commons Attribution

Categoryzhihu

Created

Updated

Size1.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

修改删除侧边栏,修改知乎回答内容宽度适配移动设备

Notes

0.0.1
修改内容宽度
0.0.2
修改问题部分,隐藏部分功能
0.0.3
左对齐
0.0.4
主页关注
0.0.5
修改宽度
0.0.6
问题也左对齐

Source code

/* ==UserStyle==
@name           zhihu for mobile
@namespace      zhihu.com
@version        0.0.6
@description    A zhihu for mobile userstyle
@author         lhb5883
==/UserStyle== */
@-moz-document url-prefix("https://www.zhihu.com/")
{
 
div.QuestionHeader {
    width:350px;
    margin-left:0px;
    margin-right:0px;
    padding-left: 0px;
}

div.Question-main {
    width:350px;
    margin-left:0px;
    margin-right:0px;
    padding-left: 0px;
}
div.QuestionHeader-content {
    width:350px;
    margin-left:0px;
    margin-right:0px;
    padding-left: 0px;
}

div.Question-mainColumn{
  	width:350px;
  	margin-left:5px;
  	margin-right:5px;
}


div.QuestionHeader-main{
  	width:350px;
  	margin-left:5px;
  	margin-right:5px;
}



div.QuestionHeader-footer{
  	width:350px;
  	margin-left:5px;
  	margin-right:5px;
}
/*自动隐藏顶部导航栏*/
.AppHeader{
	    top: -41px !important;/*41px是为了把搜索框整个隐藏,40px会露出一条线*/
}

.ContentItem-actions{
	bottom:-41px !important;
}
.ContentItem-actions:hover{
	bottom:0px !important;
}
/*鼠标滑过显示导航栏*/
.AppHeader:hover
{

  top: 0 !important;

}

.Question-sideColumn,.Question-sideColumn--sticky,.QuestionHeader-footer,.Button.VoteButton.VoteButton--up,.Popover.VoteDownReasonMenu,.Button.ContentItem-action.ContentItem-rightButton.Button--plain{
  display:none
}



div.Topstory Topstory--old {
    width:350px;
    margin-left:5px;
    margin-right:5px;
}

div.Topstory-container {
    width:350px;
    margin-left:5px;
    margin-right:5px;
}

div.Topstory-mainColumn {
    width:350px;
    margin-left:5px;
    margin-right:5px;
}

}

Reviews

No reviews yet.