Skip to content

Commit

Permalink
Fix issue#8 print to pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
szaghi committed Jul 22, 2015
1 parent b859378 commit 79103ac
Show file tree
Hide file tree
Showing 320 changed files with 17,220 additions and 141 deletions.
Binary file modified .coverage
Binary file not shown.
92 changes: 68 additions & 24 deletions examples/getting-started/getting_started/css/matisse_defaults.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
/* CSS theme generated by MaTiSSe.py */
/* MaTiSSe.py default styles*/

/* box-sizing is necessary */
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}

/* paragraph */
p {
padding: 1% 0;
}

/* link */
a {
color: inherit;
text-decoration: none;
transition: 0.5s;
padding: 0 0.1em;

-webkit-transition: 0.2s;
-moz-transition: 0.2s;
-ms-transition: 0.2s;
-o-transition: 0.2s;
transition: 0.2s;
}
a:hover, a:focus {
background: rgba(255,255,255,1);
text-shadow: -1px -1px 2px rgba(100,100,100,0.5);
text-transform: uppercase;
font-size: 150%;
padding: 5%;
}

/* lists */
ol {
list-style: none;
counter-reset: item;
Expand All @@ -42,17 +60,56 @@ ol li:before {
li {
padding-left: 0.8em;
}

/* codes */
pre {
display:flex;
padding: 1% 0;
font-size: 90%;
}

.columns:after {
visibility: hidden;
content:" ";
clear: both;
display: block;
display: block;
}

/* main default body */
body {
font-family: 'PT Sans', sans-serif;
min-height: 740px;

background: rgb(215, 215, 215);
background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from(rgb(240, 240, 240)), to(rgb(190, 190, 190)));
background: -webkit-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -moz-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -ms-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -o-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
}

/* impress.js specific tags */
.step {
position: relative;
}
.impress-enabled .step {
margin: 0;
opacity: 0.3;

-webkit-transition: opacity 1s;
-moz-transition: opacity 1s;
-ms-transition: opacity 1s;
-o-transition: opacity 1s;
transition: opacity 1s;
}
.impress-enabled .step.active {
opacity: 1;
}

/* MaTiSSe.py specific tags */

/* timer tags */
input[type=button] {
padding:0;
margin:0;
Expand All @@ -71,23 +128,10 @@ input[type=button] {
display:table-row;
}
.timercontainer {
padding: 0% 1%;
}
.step {
position: relative;
}
.impress-enabled .step.active {
opacity: 1;
}
.impress-enabled .step {
margin: 0;
opacity: 0.3;
-webkit-transition: opacity 1s;
-moz-transition: opacity 1s;
-ms-transition: opacity 1s;
-o-transition: opacity 1s;
transition: opacity 1s;
padding: 0 1%;
}

/* timer entities */
.toc {
display: block;
}
Expand All @@ -103,6 +147,6 @@ input[type=button] {
}
.centering {
display: block;
width: 0px;
width: 0;
margin: 0 auto;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* MaTiSSe.py default printing styles*/
@media print {
* {
box-shadow: none !important;
text-shadow: none !important;
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
-ms-box-sizing: border-box !important;
-o-box-sizing: border-box !important;
box-sizing: border-box !important;
}
header nav, footer {
display: none;
}
@page {
size: A4 !important;
margin: 0 !important;
}
body {
background: white !important;
width: 210mm !important;
height: 148.5mm !important;
margin: 0 !important;
padding: 0 !important;
}
.step, .slide {
position: relative !important;
width: 900px !important;
height: 700px !important;
display: block !important;
padding: 0 !important;
margin: 0 !important;
page-break-inside: avoid !important;
page-break-after: always !important;
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
-ms-box-sizing: border-box !important;
-o-box-sizing: border-box !important;
box-sizing: border-box !important;
}
}
176 changes: 88 additions & 88 deletions examples/getting-started/getting_started/index.html

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions release/MaTiSSe-1.3.0/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# How to contribute

This project is open source, therefore, anyone interested to use, to develop or to contribute to it is welcome.

The project must remain KISS (Keep It Simple and Stupid) thus a few guidelines for contributing are provided.

## Issues Handling

If you find issues (bugs or new features requests) you are kindly requested to highlight them on the GitHub repository.

+ Make sure you have a [GitHub account](https://github.com/signup/free);
+ submit a ticket for your issue, assuming one does not already exist;
+ clearly describe the issue including steps to reproduce when it is a bug;
+ make sure you fill in the earliest version that you know has the issue.

Alternatively, you can signal issues directly to the main developer at stefano.zaghi@gmail.com.

## Collaborative Development

If you like to directly contribute to the project you are welcome. To improve the collaborative development of the project you are kindly requested to respect the following guidelines.

+ Fork the repository on GitHub;
+ create a topic branch from where you want to base your work;
+ this is usually the master branch:
+ only target release branches if you are certain your fix must be on that branch;
+ to quickly create a topic branch based on master; `git branch fix/master/my_contribution master` then checkout the new branch with `git checkout fix/master/my_contribution`; please avoid working directly on the `master` branch;
+ check for unnecessary whitespace with `git diff --check` before committing;
+ make sure your commit messages are clear;
+ make sure you have properly tested for your changes.

As long as possible, contributors are kindly requested to follow the current coding style of the project (two white spaces instead of tabs, no trailing white spaces, blank lines should not have any space). In general, it is strongly recommended to avoid Microsoft-Windows-like carriage-return symbols in order to not pollute the source files with unnecessary symbols.

0 comments on commit 79103ac

Please sign in to comment.