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

时间:2017-01-04 01:33:36

标签: 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类中,是否有推荐的方法来拉伸/扩展/放大代码示例的字体?

1 个答案:

答案 0 :(得分:2)

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

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

.reveal pre {
  width: 120%;
  margin-left: -10%;
}
相关问题