LoginSignup
3
3

More than 5 years have passed since last update.

Marp でページ番号の大きさを変える

Posted at

ファイルの最初に以下を記述する。

<style>
.slide_page {font-weight:bold;transform:scale(2);margin:12px;}
</style>

.slide_page がページ番号のスタイルなので、そのサイズやマージンを変更している。font-size を直接変えてもダメだった(おそらく Marp 側で上書きしている)ので、transform を使って無理やり。ちなみにページ番号以外にも、このディレクトリで設定されているクラスのスタイルをいじれば色々悪さできる。

これで質問する人もページを確認しやすくてハッピー。

Before After

Marp は作者の方が正式版を作っている間、永遠に古い版が放置されているので、古い版で自分の作りたいスライドを作るために黒魔術が発達していて趣がある。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3