Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Bugfix: Slide height modified to avoid injecting blank slide per pages
Browse files Browse the repository at this point in the history
- Remove not using element/style on slide
  • Loading branch information
yhatt committed May 22, 2016
1 parent 0dbedde commit eb15f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 3 additions & 13 deletions sass/themes/_slide.sass
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// ===== Slide CSS common =====
$slideWidth: 297mm
$slideHeight: 210mm
$slideHeight: 209.75mm // [Win/Linux] 210mm causes injecting blank slide per pages.
$previewMargin: 20px

html, body
Expand All @@ -30,17 +30,6 @@ html, body
body
margin: 0

#loading
font-family: sans-serif
position: absolute
left: 0
right: 0
top: 50%
font-size: 1rem
margin-top: -0.5rem
color: #666
text-align: center

img.emoji
height: 1em
width: 1em
Expand All @@ -62,6 +51,8 @@ img.emoji
padding: 30px 20px

+body-slide-mode
page-break-inside: avoid

#container
padding: 0

Expand All @@ -72,7 +63,6 @@ img.emoji
width: $slideWidth
height: $slideHeight
overflow: hidden
page-break-inside: avoid
page-break-after: always

> .slide
Expand Down
4 changes: 1 addition & 3 deletions slide.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
</head>
<body class="slide-view screen">
<div id="container">
<div id="markdown" class="markdown-body">
<div id="loading">Loading...</div>
</div>
<div id="markdown" class="markdown-body"></div>
</div>
</body>
</html>

0 comments on commit eb15f8c

Please sign in to comment.