Commit 05403bcf authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

first revision of new default theme #1018

parent ad9e93ea
......@@ -5,12 +5,15 @@
* Copyright (C) 2014 Hakim El Hattab,
section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
color: #222; }
body {
background: #111;
background-color: #111; }
background: #222;
background-color: #222; }
.reveal {
font-family: 'Open Sans', Helvetica, sans-serif;
......@@ -41,13 +44,13 @@ body {
word-wrap: break-word; }
.reveal h1 {
font-size: 2.8em; }
font-size: 2.5em; }
.reveal h2 {
font-size: 1.8em; }
font-size: 1.6em; }
.reveal h3 {
font-size: 1.5em; }
font-size: 1.3em; }
.reveal h4 {
font-size: 1em; }
......@@ -17,7 +17,7 @@
// Override theme settings (see ../template/settings.scss)
$backgroundColor: #111;
$backgroundColor: #222;
$mainColor: #fff;
$headingColor: #fff;
......@@ -32,11 +32,16 @@ $linkColor: #3992fb;
$linkColorHover: lighten( $linkColor, 15% );
$selectionBackgroundColor: lighten( $linkColor, 25% );
$heading1Size: 2.8em;
$heading2Size: 1.8em;
$heading3Size: 1.5em;
$heading1Size: 2.5em;
$heading2Size: 1.6em;
$heading3Size: 1.3em;
$heading4Size: 1.0em;
section.has-light-background {
&, h1, h2, h3, h4, h5, h6 {
color: #222;
// Theme template ------------------------------
......@@ -15,7 +15,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
......@@ -131,11 +131,7 @@
<p>Hit the next arrow...</p>
<p class="fragment">... to step through ...</p>
<li class="fragment"><code>any type</code></li>
<li class="fragment"><em>of view</em></li>
<li class="fragment"><strong>fragments</strong></li>
<p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
<aside class="notes">
This slide has fragments which are also stepped through in the notes window.
......@@ -143,14 +139,14 @@
<h2>Fragment Styles</h2>
<p>There's a few styles of fragments, like:</p>
<p>There's different types of fragments, like:</p>
<p class="fragment grow">grow</p>
<p class="fragment shrink">shrink</p>
<p class="fragment roll-in">roll-in</p>
<p class="fragment fade-out">fade-out</p>
<p class="fragment highlight-red">highlight-red</p>
<p class="fragment current-visible">current-visible</p>
<p class="fragment highlight-current-blue">highlight-current-blue</p>
<p class="fragment highlight-red">highlight-red</p>
<p class="fragment highlight-blue">highlight-blue</p>
......@@ -170,7 +166,7 @@
<section id="themes">
Reveal.js comes with a few themes built in: <br>
reveal.js comes with a few themes built in: <br>
<a href="?#/themes">Default</a> -
<a href="?theme=sky#/themes">Sky</a> -
<a href="?theme=beige#/themes">Beige</a> -
......@@ -209,10 +205,10 @@ Reveal.addEventListener( 'customevent', function() {
<section data-background="#007777">
<section data-background="#dddddd">
<h2>Slide Backgrounds</h2>
Set <code>data-background="#007777"</code> on a slide to change the full page background to the given color. All CSS color formats are supported.
Set <code>data-background="#dddddd"</code> on a slide to change the background color. All CSS color formats are supported.
<a href="#" class="navigate-down">
<img width="178" height="238" data-src="" alt="Down arrow">
......@@ -223,7 +219,7 @@ Reveal.addEventListener( 'customevent', function() {
<pre><code>&lt;section data-background="image.png"&gt;</code></pre>
<section data-background="" data-background-repeat="repeat" data-background-size="100px">
<h2>Tile Backgrounds</h2>
<h2>Tiled Backgrounds</h2>
<pre><code style="word-wrap: break-word;">&lt;section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"&gt;</code></pre>
......@@ -231,15 +227,17 @@ Reveal.addEventListener( 'customevent', function() {
<section data-transition="slide" data-background="#4d7e65" data-background-transition="zoom">
<h2>Background Transitions</h2>
Different background transitions are available via the <code>backgroundTransition</code> option. This one's called "zoom".
Different background transitions are available via the backgroundTransition option. This one's called "zoom".
<pre><code>Reveal.configure({ backgroundTransition: 'zoom' })</code></pre>
<section data-transition="slide" data-background="#8c4738" data-background-transition="zoom">
<section data-transition="slide" data-background="#b5533c" data-background-transition="zoom">
<h2>Background Transitions</h2>
You can override background transitions per slide by using <code>data-background-transition="zoom"</code>.
You can override background transitions per-slide.
<pre><code style="word-wrap: break-word;">&lt;section data-background-transition="zoom"&gt;</code></pre>
......@@ -262,7 +260,7 @@ Reveal.addEventListener( 'customevent', function() {
<h2>Superb Tables</h2>
<h2>Tabular Tables</h2>
......@@ -351,7 +349,7 @@ function linkify( selector ) {
<h2>Take a Moment</h2>
Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen during a presentation.
Press B or . on your keyboard to pause the presentation. This is helpful when you're on stage and want to take distracting slides off the screen.
......@@ -43,7 +43,7 @@
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.0,
maxScale: 1.5,
// Display controls in the bottom right corner
controls: true,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment