diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-06-09 10:28:01 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-06-09 10:28:01 +0200 |
commit | aa6677911ca0a417aa445149349f8ffbf2ca5c2e (patch) | |
tree | e1347dd6acfc74b1c1c74c6c4c3c91b0172f3b41 /css/layout.scss | |
parent | f231c53b9cc9062b51b8a9a3b4a6a9c19cc25b0b (diff) | |
download | fosdem-2021-minimalism-presentation-aa6677911ca0a417aa445149349f8ffbf2ca5c2e.tar fosdem-2021-minimalism-presentation-aa6677911ca0a417aa445149349f8ffbf2ca5c2e.tar.gz |
fit-text helper now triggers lazyily when slide enters view distance
Diffstat (limited to 'css/layout.scss')
-rw-r--r-- | css/layout.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/css/layout.scss b/css/layout.scss index e50d192..9f4d86d 100644 --- a/css/layout.scss +++ b/css/layout.scss @@ -16,6 +16,12 @@ box-sizing: border-box; } +// Text that auto-fits it's container +.reveal .r-fit-text { + display: inline-block; // https://github.com/rikschennink/fitty#performance + white-space: nowrap; +} + // Stack multiple elements on top of each other .reveal .r-stack { display: grid; |