_sass/docgen-latex.scss in jekyll-theme-docgen-1.1.1 vs _sass/docgen-latex.scss in jekyll-theme-docgen-1.1.2
- old
+ new
@@ -12,23 +12,22 @@
src: url('../fonts/computer-modern/cmunti.ttf');
font-style: italic;
}
$base-font-family: "Computer Modern", sans-serif;
+$code-block-background-color: white !default;
+$syntax-highlighting-background-color: white !default;
@import "docgen-default";
// Set page margins for printer
@page {
- margin-top: 25mm;
- margin-bottom: 25mm;
- margin-left: 25mm;
- margin-right: 25mm;
+ margin: 20mm 20mm;
}
// For when the file is just a list of things (e.g. a problem set!)
-main > {ol, ul {> li > {
- p, div.highlighter-rouge, table {
+main > ol > li > {
+ * {
margin-left: -$spacing-unit / 2;
margin-right: -$spacing-unit / 2;
&:first-child {
text-indent: $spacing-unit / 2;
@@ -36,14 +35,35 @@
}
ol, ul {
margin-left: $spacing-unit / 2;
}
-}}}
+}
+pre {
+ $offset: 15px;
+ $blur-radius: 15px;
+ $spread-radius: -10px;
+ $type: inset;
+ $shadow-color: $code-block-border-color;
+ @include shadow(
+ $type
+ $offset*-1 $offset
+ $blur-radius $spread-radius $shadow-color,
+
+ $type
+ $offset $offset*-1
+ $blur-radius $spread-radius $shadow-color
+ );
+}
+
@media print {
main > {
ol, ul {
margin-left: -$spacing-unit / 2;
}
+ }
+
+ .page-content {
+ margin: 0 auto;
}
}