reveal.js - 在 GitPitch 演示文稿中,如何增加代码块的字体大小?

标签 reveal.js gitpitch

我正在使用 GitPitch 创建代码幻灯片:https://github.com/gitpitch/gitpitch/wiki/Code-Slides

对于我的代码幻灯片,我希望文本尽可能大。

我看到 GitPitch 服务使用了 Reveal.js。
https://github.com/gitpitch/gitpitch/wiki/Slideshow-Custom-CSS

在 Reveal.js CSS 类中,是否有推荐的方法来拉伸(stretch)/扩展/放大代码示例的字体?

最佳答案

以下 CSS 似乎在全屏模式下运行良好。

.reveal pre code {
  font-size: 1.3em;
  line-height: 1.2;
}

.reveal pre {
  width: 120%;
  margin-left: -10%;
}

关于reveal.js - 在 GitPitch 演示文稿中,如何增加代码块的字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41454902/

相关文章:

css - 带div的动态CSS

reveal.js - 在出现后隐藏reveal.js 片段

ipython - 将 ipython 笔记本转换为隐藏单元格内容的演示文稿

css - 如何增加幻灯片内容的宽度?

github - gitpitch 如何与私有(private) github 存储库一起工作?

html - 如何防止标题处的 reveal.js 换行

pdf - 在Reveal.js打印输出中显示幻灯片编号

gitpitch - 我可以在不提交和推送的情况下使用 GitPitch 预览 PICHME.md 文件吗?

gitpitch - 隐藏整个代码块并仅显示片段或跳转到第一个片段