Giter Site home page Giter Site logo

Comments (5)

attakei avatar attakei commented on August 22, 2024 1

複数のスライドで恒久的に text-transform: none にしたいのであれば、source/_static配下にCSSファイルを用意した上で、revealjs_css_files で指定するのが楽だと思います。

from 2021_slides.

attakei avatar attakei commented on August 22, 2024 1

sphinx-revealjsの方へのフィードバックありがとうございました。
先程PR取り込んでv1.0.1をPyPIに公開しました。手元のビルドでもテーマ用のCSSが先に出るようになっているため、問題の解消が出来たかと思います。

from 2021_slides.

ftnext avatar ftnext commented on August 22, 2024

Workaround

make revealjs してできるHTMLファイルのheadタグ内に以下を書き込んだ

  <head>
  <style>
    .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
      text-transform: none;
    }
  </style>

  </head>

ref: hakimel/reveal.js#2226 (comment)

ビルドするたびに手動で追加が必要になっている。
恒久対応として、conf.pyの設定からビルドしたHTMLのheadタグの中にstyleが書かれたらよさそう

from 2021_slides.

ftnext avatar ftnext commented on August 22, 2024

@attakei 教えてくださりありがとうございます。
教わった方法でsource/_static配下のCSS(☆)をスライドのHTMLのlinkタグに加えられました。
ところが、(☆)のCSSの後に、テーマのCSSが適用されるという順番のために、スライドにtext-transform: noneが適用されませんでした

    <link rel="stylesheet" type="text/css" href="../_static/css/common.css" />
    <link rel="stylesheet" href="../_static/revealjs4/dist/theme/black.css" type="text/css" />

HTMLを編集して、この2つの順番を逆にすると、(☆)のCSSのtext-transform: noneが適用されます。

この件についてIssueとPull requestを上げますので、ご確認いただけますとありがたいです。

from 2021_slides.

ftnext avatar ftnext commented on August 22, 2024

@attakei PR取り込んでいただきありがとうございます。
v1.0.1にupgradeしてビルドしたところ、テーマ用のCSSが先に出て、問題は解消されました😃

from 2021_slides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.