-
Notifications
You must be signed in to change notification settings - Fork 3.6k
感觉浏览器留白太多,代码块看起来比较麻烦 #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
什么意思? |
@ledisthebest |
试试增加 |
@iissnan 我试了增加 content-desktop 的值,这样会覆盖侧边栏 如何设置覆盖浏览器宽度?我觉得这样阅读体验会好一些 |
对于 Pisces Scheme,需要同时修改 header{ width: 90%; }
.container .main-inner { width: 90%; }
.content-wrap { width: calc(100% - 260px); } 我并未对这个布局进行测试,自定义修改需要自己进行测试。另外,我觉得超过一定宽度后(一行内文字太多导致换行跨度太大),阅读体验都不怎么样。 |
@iissnan 确实如此,需要在代码行和文字内容之间取个平衡 |
谢谢 @iissnan ,亲测有效 |
感谢 |
感谢,我要遇到这个问题。 |
我发现修改样式后本地有效果,部署上去就没效果了,这是为啥呢 |
@iissnan 建议这块做到自适应好些吧 |
@renzhaozhao 你可以先进行hexo clean一下,我也是遇到你这个问题了,然后我clean了一下就好了。 |
请问一下,我现在按照上面的代码修改了使用百分比来显示宽度。但是这种情况下屏幕较小的话,width 会比较小体验不好,如果我想在百分比的前提下,让 width 有一个最小 960px 的宽度,要怎么设置呢? |
感谢 @iissnan 的方法,很有效!确实纠结代码阅读有段时间了! 建议使用 80%,阅读代码完全 ok,正常段落也不会留白太多,阅读体验更好! .header{ width: 80%; } /* 80% */
.container .main-inner { width: 80%; } /* 80% */
.content-wrap { width: calc(100% - 260px); } |
感谢@iTofu,按照你的比例来设之后,确实效果好了很多!!!! |
修正下楼上少了个点‘.’,且要放到最下面 |
这样设置在桌面端可以,但是在移动端不适应啊,要怎么修改? @iissnan |
把字体改小一点,比如12, 代码看起来更好. |
楼主推荐的这种方式在桌面端没问题, 但是在手机平板等响应式布局会有问题. .header{ width: 80%; } /* 80% */
.container .main-inner { width: 80%; } /* 80% */
.content-wrap { width: calc(100% - 260px); } 我尝试了以下修改: |
Pisces Scheme 直接在source/css/_variables/custom.styl文件中添加
可以避免直接修改源码,可以解决内容宽度问题,而且在移动设备上显示正常。 |
http://www.aidansu.com/2017/github-pages-build-blog/
修改方法如以上博客 3.NexT
效果如本博客,希望能帮到你
发自网易邮箱大师
在2017年06月30日 15:03,寒江蓑笠 写道:
Pisces Scheme 直接在source/css/_variables/custom.styl文件中添加
$main-desktop = 1200px
$content-desktop = 900px
可以避免直接修改源码,可以解决内容宽度问题,而且在移动设备上显示正常。
可以看 http://www.heqiangfly.com 改动效果
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
這個方法才是正解
或是統一一下 css 變數,可以避免文檔和實際的配置不一致 |
我修改之后本地是可以的,但是push上去之后没反应是怎么回事?已经执行了hexo clean了。 |
感谢 |
@XingwenZhang 我本来也是push没反应,hexo clean之后 |
我想问一下,我的主页第一个文章与上边框的距离有点大,应该更改哪个配置? |
直接在
|
@xiao-fang 最佳解决办法 👍✔ |
*** 简短说明干了什么** What: iissnan/hexo-theme-next#759 (comment) --------------------------------------- *** 为什么这么做?** Why: ***怎么解决的** How: --------------------------------------- `` ---------------------------------------
@chuxubank The best solution 👍 |
NexT is rebased into organization repo. There is instructions on English or Chinese how to update from v5.1.x to v 6.x You also may read this for details. |
因为大部分用户还是写技术文档,代码块使用的比例还是很高的,如果经常需要拖动查看代码,体验非常差。
如果我重置了Post的宽度,侧边栏就会显示不完整。
请问有什么方法可以解决吗?
thx
The text was updated successfully, but these errors were encountered: