diff options
author | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
commit | add331408b0f207b82f3ec1b76251c700197e807 (patch) | |
tree | efee398fbd8811adbad16dbe98b1b0506dddc363 /slides/final/README.html | |
parent | c59a0f4780502c949c0d19287bea51a4c40fb109 (diff) | |
download | labviewplayer-master.tar.gz |
Diffstat (limited to 'slides/final/README.html')
-rw-r--r-- | slides/final/README.html | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/slides/final/README.html b/slides/final/README.html new file mode 100644 index 0000000..20276de --- /dev/null +++ b/slides/final/README.html | |||
@@ -0,0 +1,105 @@ | |||
1 | <style> | ||
2 | @import "http://fonts.googleapis.com/css?family=Open Sans:regular,semibold,italic,italicsemibold|Inconsolata&v2"; | ||
3 | body { | ||
4 | font-family: "Open Sans"; | ||
5 | margin: 6em 2em 2em 2em; | ||
6 | } | ||
7 | body:before { | ||
8 | content: ''; | ||
9 | position: fixed; | ||
10 | top: 2%; | ||
11 | right: 3%; | ||
12 | height: 100px; | ||
13 | width: 100px; | ||
14 | background: url(http://www.html5rocks.com/static/images/identity/HTML5_Badge_128.png) no-repeat 50% 50%; | ||
15 | background-size: contain; | ||
16 | z-index: 10; | ||
17 | opacity: 0.1; | ||
18 | } | ||
19 | h1, h2, h3, h4 { | ||
20 | font-weight: 600; | ||
21 | } | ||
22 | h1 { | ||
23 | position: fixed; | ||
24 | background: -webkit-linear-gradient(top, white 65%, rgba(255,255,255,0)); | ||
25 | background: -moz-linear-gradient(top, white 65%, rgba(255,255,255,0)); | ||
26 | background: -ms-linear-gradient(top, white 65%, rgba(255,255,255,0)); | ||
27 | background: -o-linear-gradient(top, white 65%, rgba(255,255,255,0)); | ||
28 | width: 100%; | ||
29 | height: 80px; | ||
30 | padding: 10px 10px 10px 1em; | ||
31 | left: 0; | ||
32 | top: 0; | ||
33 | margin: 0; | ||
34 | } | ||
35 | h1 img { | ||
36 | height: 30px; | ||
37 | vertical-align: middle; | ||
38 | margin-bottom: 8px; | ||
39 | } | ||
40 | a { color: navy; } | ||
41 | pre { | ||
42 | background: #eee; | ||
43 | margin-left: 2em; | ||
44 | padding: 5px; | ||
45 | border-left: 3px solid #ccc; | ||
46 | } | ||
47 | </style> | ||
48 | |||
49 | <h1><img src="images/io2012_logo.png"> HTML5 Slide Template</h1> | ||
50 | |||
51 | <h2>Configuring the slides</h2> | ||
52 | <p>Much of the deck is customized by changing the settings in <a href="slide_config.js"><code>slide_config.js</code></a>. | ||
53 | Some of the customizations include the title, Analytics tracking ID, speaker | ||
54 | information (name, social urls, blog), web fonts to load, themes, and other | ||
55 | general behavior.</p> | ||
56 | <h3>Customizing the <code>#io12</code> hash</h3> | ||
57 | <p>The bottom of the slides include <code>#io12</code> by default. If you'd like to change | ||
58 | this, please update the variable <code>$social-tags: '#io12';</code> in | ||
59 | <a href="theme/scss/default.scss"><code>/theme/scss/default.scss</code></a>.</p> | ||
60 | <p>See the next section on "Editing CSS" before you go editing things.</p> | ||
61 | <h2>Editing CSS</h2> | ||
62 | <p><a href="http://compass-style.org/install/">Compass</a> is a CSS preprocessor used to compile | ||
63 | SCSS/SASS into CSS. We chose SCSS for the new slide deck for maintainability, | ||
64 | easier browser compatibility, and because...it's the future!</p> | ||
65 | <p>That said, if not comfortable working with SCSS or don't want to learn something | ||
66 | new, not a problem. The generated .css files can already be found in | ||
67 | (see <a href="theme/css"><code>/theme/css</code></a>). You can just edit those and bypass SCSS altogether. | ||
68 | However, our recommendation is to use Compass. It's super easy to install and use.</p> | ||
69 | <h3>Installing Compass and making changes</h3> | ||
70 | <p>First, install compass:</p> | ||
71 | <pre><code>sudo gem update --system | ||
72 | sudo gem install compass | ||
73 | </code></pre> | ||
74 | <p>Next, you'll want to watch for changes to the exiting .scss files in <a href="theme/scss"><code>/theme/scss</code></a> | ||
75 | and any new one you add:</p> | ||
76 | <pre><code>$ cd io-2012-slides | ||
77 | $ compass watch | ||
78 | </code></pre> | ||
79 | <p>This command automatically recompiles the .scss file when you make a change. | ||
80 | Its corresponding .css file is output to <a href="theme/css"><code>/theme/css</code></a>. Slick.</p> | ||
81 | <p>By default, <a href="config.rb"><code>config.rb</code></a> in the main project folder outputs minified | ||
82 | .css. It's a best practice after all! However, if you want unminified files, | ||
83 | run watch with the style output flag:</p> | ||
84 | <pre><code>compass watch -s expanded | ||
85 | </code></pre> | ||
86 | <p><em>Note:</em> You should not need to edit <a href="theme/scss/_base.scss"><code>_base.scss</code></a>.</p> | ||
87 | <h2>Running the slides</h2> | ||
88 | <p>The slides can be run locally from <code>file://</code> making development easy :)</p> | ||
89 | <h3>Running from a web server</h3> | ||
90 | <p>If at some point you should need a web server, use <a href="serve.sh"><code>serve.sh</code></a>. It will | ||
91 | launch a simple one and point your default browser to <a href="http://localhost:8000/template.html"><code>http://localhost:8000/template.html</code></a>:</p> | ||
92 | <pre><code>$ cd io-2012-slides | ||
93 | $ ./serve.sh | ||
94 | </code></pre> | ||
95 | <p>You can also specify a custom port:</p> | ||
96 | <pre><code>$ ./serve.sh 8080 | ||
97 | </code></pre> | ||
98 | <h3>Presenter mode</h3> | ||
99 | <p>The slides contain a presenter mode feature (beta) to view + control the slides | ||
100 | from a popup window.</p> | ||
101 | <p>To enable presenter mode, add <code>presentme=true</code> to the URL: <a href="http://localhost:8000/template.html?presentme=true">http://localhost:8000/template.html?presentme=true</a></p> | ||
102 | <p>To disable presenter mode, hit <a href="http://localhost:8000/template.html?presentme=false">http://localhost:8000/template.html?presentme=false</a></p> | ||
103 | <p>Presenter mode is sticky, so refreshing the page will persist your settings.</p> | ||
104 | <hr /> | ||
105 | <p>That's all she wrote!</p> | ||