Bladeren bron

adjust how global height is styled

Hakim El Hattab 5 jaren geleden
bovenliggende
commit
41858b91d5
2 gewijzigde bestanden met toevoegingen van 6 en 4 verwijderingen
  1. 3 2
      css/reveal.css
  2. 3 2
      css/reveal.scss

+ 3 - 2
css/reveal.css

@@ -8,14 +8,15 @@
 /*********************************************
  * GLOBAL STYLES
  *********************************************/
-html,
-body {
+html {
   width: 100%;
   height: 100%;
+  height: 100vh;
   height: calc( var(--vh, 1vh) * 100);
   overflow: hidden; }
 
 body {
+  height: 100%;
   position: relative;
   line-height: 1;
   margin: 0;

+ 3 - 2
css/reveal.scss

@@ -11,15 +11,16 @@
  * GLOBAL STYLES
  *********************************************/
 
-html,
-body {
+html {
 	width: 100%;
 	height: 100%;
+	height: 100vh;
 	height: calc( var(--vh, 1vh) * 100 );
 	overflow: hidden;
 }
 
 body {
+	height: 100%;
 	position: relative;
 	line-height: 1;
 	margin: 0;