Explorar o código

fixes issue where italic fonts disappeared when printing to pdf (closes #230)

Hakim El Hattab %!s(int64=13) %!d(string=hai) anos
pai
achega
8e79f8592a
Modificáronse 2 ficheiros con 14 adicións e 10 borrados
  1. 7 9
      css/print/pdf.css
  2. 7 1
      css/reveal.css

+ 7 - 9
css/print/pdf.css

@@ -92,6 +92,7 @@ ul, ol, div, p {
 	display: block;
 
 	text-align: center;
+
 	-webkit-perspective: none;
 	   -moz-perspective: none;
 	    -ms-perspective: none;
@@ -102,8 +103,10 @@ ul, ol, div, p {
 	    -ms-perspective-origin: 50% 50%;
 	        perspective-origin: 50% 50%;
 }
-.reveal .slides>section, .reveal .slides>section>section {
-	
+.reveal .slides section {
+
+	page-break-after: always !important; 
+
 	visibility: visible !important;
 	position: static !important;
 	width: 100% !important;
@@ -112,8 +115,8 @@ ul, ol, div, p {
 	display: block !important;
 	overflow: visible !important;
 
-	left: 0% !important;
-	top: 0% !important;
+	left: 0 !important;
+	top: 0 !important;
 	margin-left: 0px !important;
 	margin-top: 50px !important;
 	padding: 20px 0px !important;
@@ -130,10 +133,6 @@ ul, ol, div, p {
 	    -ms-transform: none !important;
 	        transform: none !important;
 }
-.reveal section {
-	page-break-after: always !important; 
-	display: block !important;
-}
 .reveal section.stack {
 	margin: 0px !important;
 	padding: 0px !important;
@@ -155,7 +154,6 @@ ul, ol, div, p {
 	overflow: visible;
 	line-height: 1em;
 }
-
 .reveal small a {
 	font-size: 16pt !important;
 }

+ 7 - 1
css/reveal.css

@@ -169,8 +169,14 @@ body {
  * DEFAULT ELEMENT STYLES
  *********************************************/
 
+/* Fixes issue in Chrome where italic fonts did not appear when printing to PDF */
+.reveal:after {
+  content: '';
+  font-style: italic;
+}
+
+/* Preserve aspect ratio and scale image so it's bound within the section */
 .reveal img {
-	/* preserve aspect ratio and scale image so it's bound within the section */
 	max-width: 100%;
 	max-height: 100%;
 }

PANIC: session(release): write data/sessions/1/9/1920df09076963c1: no space left on device

PANIC

session(release): write data/sessions/1/9/1920df09076963c1: no space left on device
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/session@v1.0.3/session.go:204 (0xb13e07)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:80 (0x967b75)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:114 (0x967bf6)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/recovery.go:161 (0x15baec4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/logger.go:40 (0x96b257)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:187 (0x972959)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:304 (0x973a01)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/macaron.go:218 (0x96c572)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:3311 (0x85a5cd)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:2073 (0x837f6f)
/my/cache/.heroku/go/go1.26.3/go/src/runtime/asm_amd64.s:1771 (0x493380)