css - asciidoctor 增加 toc 宽度
问题描述
我正在用 asciidoc 重写AssertJ的文档,我想增加 TOC 的宽度和内容的整体宽度(以填充空白区域)
我查看了 asciidoctor.css 并发现我可以将此属性从 toc2 宽度从 20 增加到 25em 但它搞砸了
#toc.toc2 {
/* initially 20em */
width: 25em
}
#header,
#content,
#footnotes,
#footer {
width: 100%;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
/* initially 75em, increasing it to 100em does not play with toc when toc is increased */
max-width: 100em;
*zoom: 1;
position: sticky;
padding-left: .9375em;
padding-right: .9375em
}
我很高兴这个新的 TOC 宽度,但问题是当缩小窗口时,内容被 TOC 隐藏,如屏幕截图所示:(
我不是网络开发人员,我尝试了一些没有成功的事情,可以帮助我正确设置或指向好的资源吗?
解决方案
推荐阅读
- python - 通过Django模板中的其他对象值访问对象值?
- xpages - .png icons are not displaying after upgrading to Domino V10 FP4
- ios - Isn't layoutSubviews supposed to get called once per frame only?
- c# - 使用 XML 文档作为 DataTable 的数据源
- android - 导航栏应该在 android 快餐栏的顶部吗?
- python - Cassandra 3.x 读取性能,每行 100 列
- asp.net-core - 无法在 Entity Framework .Net Core 3.1 中插入重复的 Id
- python - 当我尝试使用 python 使用 selenium 输入用户名和密码时出现错误
- react-native - react-native-svg 中 Arc Progress 的圆角
- javascript - 如何使用散列 bcrypt 版本更新数据库中的每个密码?