适配了牛客首页和讨论区的宽屏
牛客宽屏适配 by naibaowjk
Details
Authornaibaowjk
LicenseNo License
Categorynowcoder.com
Created
Updated
Size2.7 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name nowcoder.com
@version 1.0.0
@namespace userstyles.world/user/naibaowjk
@description ultrawide-nowcoder
@author naibaoofficial
@license No License
==/UserStyle== */
@-moz-document url-prefix("https://www.nowcoder.com/landing") {
/*
#jsCpn_3_component_0,
.js-editor-body code-font,
.CodeMirror {
font-family: Go Mono !important;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: #DEE1E6 !important;
}
*/
/* 页面总宽度*/
div.tw-w-1200.tw-mx-auto
{
width:90%;
}
/* 导航条总宽度 */
div.tw-w-300.tw-h-68.tw-rounded-xl.tw-bg-white.tw-mb-3
{
width:100%;
}
/* 导航条左侧tab栏宽度 */
div.selector-left-tab.tw-w-35.tw-text-lg-pure.tw-font-normal.tw-text-gray-600.tw-z-10
{
width:12%;
}
/* 导航条中间 */
div.result.tw-mt-5.tw-flex.tw-flex-wrap.tw-content-between
{
width:70%;
}
/* 更多条 */
div.tw-flex.tw-items-center.tw-mt-6
{
width:100%;
}
/* 更多按钮 */
div.tw-text-base-pure
{
width:100%!important;
}
/*
div.tw-relative.campus-container
{
width:1000px;
}
*/
/* 导航条右侧 */
div.entrances.tw-absolute.tw-cursor-pointer
{
top:-200px;
left:70%;
position:relative;
}
/* 两侧内容 */
div.left-wrapper
{
width:78%!important;
}
div.right-wrapper
{
width:22%!important;
}
/* 浮动窗口 */
div.el-dialog.feed-dialog.el-dialog--medium.is-no-title
{
width:85%!important;
margin-top:10px!important;
}
div.el-dialog__body
{
width:100%!important;
}
div.tw-z-10
{
width:100%;
}
}
@-moz-document url-prefix("https://www.nowcoder.com/discuss")
{
/* 主宽度 */
div.nk-main.clearfix
{
width:90%!important;
}
/* 左侧导航条 */
div.nav-left-bar
{
width:11%!important;
margin-left:-30px!important;
}
ul.bar-accordion
{
width:100%!important;
}
/* 顶部关注条 */
div.discuss-author.clearfix.js-fixed-title.fixed-author
{
width:100%;
display:inline-block;
left:0%;
}
a.js-post-attention.tag-label.selected
{
left:-5%;
}
/* 内容区 */
div.nk-content
{
position:relative;
width:65%!important;
margin-left:0px!important;
left:13%;
}
/* 右侧 */
div.nk-bar
{
position:relative;
left:13%;
}
}
@-moz-document url-prefix("https://www.nowcoder.com/searching/")
{
/* 总体宽度 */
div.tw-w-1200.tw-mx-auto
{
width:90%!important;
}
/* 搜索条 */
div.search-container.tw-rounded-xl.left-wrapper
{
width:100%!important;
}
}
@-moz-document url-prefix("https://www.nowcoder.com/feed/main/detail/")
{
div.nk-main.clearfix
{
width:90%!important;
}
div.nk-content
{
width:80%!important;
}
div.nk-bar
{
width:19%!important;
}
}