Commit e6ac37ae authored by Vadim Makeev's avatar Vadim Makeev

Updates

parents
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shower Presentation Engine</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="shower/themes/ribbon/styles/styles.css">
<style>
.shower {
--slide-ratio: calc(16 / 9);
}
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Shower Presentation Engine</h1>
<p>Yours Truly, Famous Inc.</p>
</header>
<section class="slide" id="cover">
<h2>Shower Presentation Engine</h2>
<p>Brought to you by <a href="http://pepelsbey.net">Vadim Makeev</a></p>
<figure>
<img class="cover" src="pictures/cover.jpg" alt="Hands on the orange typewriter in a park">
<figcaption class="copyright right white">
<a href="http://fiftyfootshadows.net/">© John Carey</a>
</figcaption>
</figure>
<style>
#cover h2 {
margin: 30px 0 0;
color: white;
text-align: center;
font-size: 70px;
}
#cover p {
margin: 10px 0 0;
text-align: center;
color: white;
font-style: italic;
font-size: 20px;
}
#cover p a {
color: white;
}
</style>
</section>
<section class="slide">
<h2>Shower key features</h2>
<ol>
<li>Built on HTML, CSS and JavaScript</li>
<li>Works in all modern browsers</li>
<li>Themes are separated from engine</li>
<li>Fully keyboard accessible</li>
<li>Printable to PDF</li>
</ol>
<p class="note">Shower ['ʃəuə] noun. A person or thing that shows.</p>
</section>
<section class="slide">
<h2>Plain text on your slides</h2>
<p>Lorem ipsum dolor sit amet, consectetur <a href="#4">adipisicing</a> elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <em>quis nostrud</em> exercitation ullamco laboris <strong>nisi ut aliquip</strong> ex ea commodo consequat. Duis aute irure <i>dolor</i> in reprehenderit in voluptate velit esse cillum <b>dolore</b> eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in <code>&lt;culpa&gt;</code> qui officia deserunt mollit anim id est laborum.</p>
</section>
<section class="slide">
<h2>Two columns if you like</h2>
<div class="columns two">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.</p>
</div>
</section>
<section class="slide">
<h2>All kind of lists</h2>
<ol>
<li>Simple lists are marked with bullets</li>
<li>Ordered lists begin with a number</li>
<li>You can even nest lists one inside another
<ul>
<li>Or mix their types</li>
<li>But do not go too far</li>
<li>Otherwise audience will be bored</li>
</ul>
</li>
<li>Look, seven rows exactly!</li>
</ol>
</section>
<section class="slide">
<h2>Serious citations</h2>
<figure>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.</p>
</blockquote>
<figcaption>Marcus Tullius Cicero</figcaption>
</figure>
</section>
<section class="slide">
<h2>Code samples</h2>
<pre>
<code>&lt;!DOCTYPE html&gt;</code>
<code class="mark">&lt;html lang="en"&gt;</code>
<code><mark>&lt;head&gt;</mark> <span class="comment">&lt;!--Comment--&gt;</span></code>
<code> &lt;title&gt;Shower&lt;/title&gt;</code>
<code> &lt;meta charset="<mark class="important">UTF-8</mark>"&gt;</code>
<code> &lt;link rel="stylesheet" href="screen.css"&gt;</code>
<code><mark>&lt;/head&gt;</mark></code>
</pre>
</section>
<section class="slide">
<h2>Even tables</h2>
<table>
<tr>
<th scope="col">Locavore</th>
<th>Umami</th>
<th>Helvetica</th>
<th>Vegan</th>
</tr>
<tr>
<th scope="row">Fingerstache</th>
<td>Kale</td>
<td>Chips</td>
<td>Keytar</td>
</tr>
<tr>
<th scope="row">Sriracha</th>
<td>Gluten-free</td>
<td>Ennui</td>
<td>Keffiyeh</td>
</tr>
<tr>
<th scope="row">Thundercats</th>
<td>Jean</td>
<td>Shorts</td>
<td>Biodiesel</td>
</tr>
<tr>
<th scope="row">Terry</th>
<td>Richardson</td>
<td>Swag</td>
<td>Blog</td>
</tr>
</table>
<p>It’s good to have information organized.</p>
</section>
<section class="slide" id="picture">
<h2>Pictures</h2>
<figure>
<img class="cover" src="pictures/picture.jpg" alt="Orange typewriter on a wooden table close-up">
<figcaption class="copyright right white">
<a href="http://fiftyfootshadows.net/">© John Carey</a>
</figcaption>
</figure>
<style>
#picture h2 {
color: white;
}
</style>
</section>
<section class="slide">
<h2 class="shout shrink">You can even shout this way</h2>
</section>
<section class="slide">
<h2>Inner navigation</h2>
<ol>
<li>Lets you reveal list items one by one</li>
<li class="next">To keep some key points</li>
<li class="next">In secret from audience</li>
<li class="next">But it will work only once</li>
<li class="next">Nobody wants to see the same joke twice</li>
</ol>
</section>
<section class="slide" id="see-more">
<h2 class="shout">
<img src="pictures/logo.svg" alt="Shower logo">
<a href="https://github.com/shower/shower">See more on GitHub</a>
</h2>
<style>
#see-more h2 {
font-size: 100px
}
#see-more img {
width: 0.72em;
height: 0.72em;
}
</style>
</section>
<footer class="badge">
<a href="https://github.com/shower/shower">Fork me on GitHub</a>
</footer>
<div class="progress"></div>
<script src="shower/shower.min.js"></script>
<!-- Copyright © 2018 Yours Truly, Famous Inc. -->
</body>
</html>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><path fill="#4b86c2" d="M327.5 273.5l17.7-17.7L500 410.7v-35.4L362.8 238.1l17.7-17.7L500 339.9v-35.4L398.2 202.8l17.7-17.7 84.1 84.1V50c0-27.6-22.4-50-50-50H50C22.4 0 0 22.4 0 50v400c0 27.6 22.4 50 50 50h214.3c4.9-20.5-.7-42.9-16.7-58.9L186 379.5 124.5 318c-53.9-53.9-54.1-141.1-.4-194.8 53.7-53.7 140.9-53.6 194.8.3l8.5 8.5h106.1L274 291.1v-106l-8.3-8.5c-24.5-24.5-64-24.6-88.4-.2s-24.3 64.1.2 88.5l61.5 61.5 61.5 61.5c30.6 30.6 43.9 72.1 39.8 112H450c27.6 0 50-22.4 50-50v-4L327.5 273.5z"/></svg>
\ No newline at end of file
This diff is collapsed.
# The MIT License
Copyright © 2010–2018 Vadim Makeev, http://pepelsbey.net/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
# Лицензия MIT
Copyright © 2010–2018 Вадим Макеев, http://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
# Material theme for Shower [![Build Status](https://travis-ci.org/shower/material.svg?branch=master)](https://travis-ci.org/shower/material)
![Ribbon screen shot](pictures/canvas.png)
Default theme for the [Shower](https://github.com/shower/shower/) presentation engine. Doesn’t include engine itself. [See it in action](http://shwr.me/shower/themes/material/). Follow [@shower_me](https://twitter.com/shower_me) for support and updates, [file an issue](https://github.com/shower/shower/issues/new) if you have any.
## Usage
Get the Shower template where Material is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package:
npm install shower
If you want to install Material separately you can install the package:
npm install shower-material
## Features
All theme’s features are demonstrated in the [index.html](index.html) file, [see it live](https://shwr.me/shower/themes/material/). Use it as a reference while building your presentation. See more detailed [features overview](https://github.com/shower/shower/blob/master/docs/features.md).
## Ratios
Material theme supports any slide ratio you want. But it’s optimized for the most common ones: 16×9 and 4×3. It’s 16×9 by default, but you can change it by adjusting `--slide-ratio` property for `.shower`, [see example](https://github.com/shower/ribbon/blob/master/index.html#L10) in `index.html`.
## Key color
By default Material theme is green, but you can easily change the key color by adjusting `--color-key` property for `.shower`. You can choose any color you want, just make sure that it’s dark enough for a good contrast. For example, in [Material Color Tool](https://material.io/tools/color/) good colors start at 500 column.
## PDF
Ribbon could be exported to PDF by printing it from the list mode in Chrome or Opera browsers. See [printing documentation](https://github.com/shower/shower/blob/master/docs/pdf.md) for more options.
## Development
If you want to adjust theme for your needs:
1. Fork this repository and clone it to your local machine.
2. Install dependencies: `npm install`.
3. Start a local server with watcher: `npm run dev` or just `gulp` if you have it installed globally.
4. Edit your files and see changes in the opened browser.
To take part in Material development please read [contributing guidelines](CONTRIBUTING.md) first and [file an issue](https://github.com/shower/shower/issues/new) before sending any pull request.
---
Licensed under [MIT License](LICENSE.md).
Copyright 2011 Google Inc. All Rights Reserved.
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="576">
<rect width="1024" height="576" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="0.2"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="0.6"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#9a9a9a" fill-opacity="1"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect width="64" height="64" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="1200">
<rect width="400" height="1200" fill="#9a9a9a"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="400">
<rect width="1200" height="400" fill="#9a9a9a"/>
</svg>
/* Badge */
.badge {
align-content: center;
justify-items: center;
outline:
calc(var(--slide-scale) * 8px)
dashed rgba(0, 0, 0, 0.2);
outline-offset: calc(
-1 * var(--slide-scale) * 8px
);
line-height: 1;
font-size: calc(
var(--slide-scale) * 48px
);
}
/* Elements */
.badge a {
display: inline-block;
margin-left: 4em;
color: var(--color-medium);
text-decoration: none;
}
.badge a:hover,
.badge a:focus {
outline: none;
color: var(--color-key);
}
.badge svg {
position: absolute;
margin: -1.1em 0 0 -4.5em;
width: 4em;
height: 4em;
fill: currentColor;
}
/* List */
.shower.list .badge {
display: grid;
}
/* Full */
.shower.full .badge {
display: none;
}
/* Print */
@media print {
.shower.list .badge,
.shower.full .badge {
display: none;
}
}
/* Caption */
.caption {
grid-column: 1 / -1;
margin-top: calc(
-1 * var(--slide-gap) * var(--slide-scale)
);
margin-left: calc(
-1 * var(--slide-gap) * var(--slide-scale)
);
padding-top: 0.8em;
padding-bottom: 0.9em;
padding-left: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100vw;
background-color: var(--color-key);
background-image: var(--diagonal);
font-size: calc(
var(--slide-scale) * 96px
);
}
/* Elements */
.caption h1 {
margin: 0;
padding-bottom: 0.28em;
color: white;
font: 100 1.17em/1 'Roboto', sans-serif;
}
.caption p {
margin: 0;
color: rgba(255, 255, 255, 0.7);
line-height: 1;
font-size: 0.58em;
}
.caption a {
color: inherit;
text-decoration: none;
}
/* List */
.shower.list .caption {
display: block;
}
/* Full */
.shower.full .caption {
display: none;
}
/* Print */
@media print {
.shower.list .caption,
.shower.full .caption {
display: none;
}
}
/* Progress */
.progress {
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: var(--progress-size);
background-color: var(--color-key);
transition: width 0.2s linear;
box-shadow:
calc(var(--slide-width) / 2) 0 0
calc(var(--slide-width) / 2)
var(--color-light);
clip: rect(0 var(--slide-width) var(--progress-size) 0);
}
/* List */
.shower.list .progress {
display: none;
}
/* Full */
.shower.full .progress {
display: block;
}
/* Print */
@media print {
.shower.list .progress,
.shower.full .progress {
display: none;
}
}
/* Region */
.region {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
}
/* List */
.shower.list .region {
display: none;
}
/* Full */
.shower.full .region {
display: block;
}
/* Print */
@media print {
.shower.list .region,
.shower.full .region {
display: none;
}
}
/* Roboto */
@font-face {
font-family: 'Roboto';
font-weight: 100;
font-display: swap;
src:
local('Roboto Light'),
local('Roboto-Light'),
url('../fonts/roboto-light.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 400;
font-display: swap;
src:
local('Roboto'),
local('Roboto-Regular'),
url('../fonts/roboto-regular.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 400;
font-style: italic;
font-display: swap;
src:
local('Roboto Italic'),
local('Roboto-Italic'),
url('../fonts/roboto-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 700;
font-display: swap;
src:
local('Roboto Bold'),
local('Roboto-Bold'),
url('../fonts/roboto-bold.woff2') format('woff2');
}
@font-face {
font-family: 'Roboto';
font-weight: 700;
font-style: italic;
font-display: swap;
src:
local('Roboto Bold Italic'),
local('Roboto-BoldItalic'),
url('../fonts/roboto-bold-italic.woff2') format('woff2');
}
/* Roboto Mono */
@font-face {
font-family: 'Roboto Mono';
font-display: swap;
src:
local('Roboto Mono'),
local('RobotoMono-Regular'),
url('../fonts/roboto-mono-regular.woff2') format('woff2');
}
<svg width="1024" height="768" xmlns="http://www.w3.org/2000/svg">
<defs>
<style>
.square {
stroke: red;
stroke-opacity: 0.1;
stroke-width: 1;
fill: transparent;
}
.grid {
fill: url(#grid);
}
.line {
stroke: #8af8f9;
}
</style>
<pattern x="0" y="0" width="24" height="24" viewBox="0 0 24 24" patternUnits="userSpaceOnUse" id="grid">
<rect x="0" y="0" width="24" height="24" class="square"/>
</pattern>
</defs>
<rect x="0" y="0" width="1024" height="768" class="grid"/>
<line x1="96" y1="0" x2="96" y2="768" class="line"/>
<line x1="192" x2="192" y1="0" y2="768" class="line"/>
<line x1="288" x2="288" y1="0" y2="768" class="line"/>
<line x1="384" x2="384" y1="0" y2="768" class="line"/>
<line x1="480" x2="480" y1="0" y2="768" class="line"/>
<line x1="528" x2="528" y1="0" y2="768" class="line"/>
<line x1="624" x2="624" y1="0" y2="768" class="line"/>
<line x1="720" x2="720" y1="0" y2="768" class="line"/>
<line x1="816" x2="816" y1="0" y2="768" class="line"/>
<line x1="912" x2="912" y1="0" y2="768" class="line"/>
<line y1="120" y2="120" x1="0" x2="1024" class="line"/>
<line y1="192" y2="192" x1="0" x2="1024" class="line"/>
<line y1="240" y2="240" x1="0" x2="1024" class="line"/>
<line y1="288" y2="288" x1="0" x2="1024" class="line"/>
<line y1="336" y2="336" x1="0" x2="1024" class="line"/>
<line y1="384" y2="384" x1="0" x2="1024" class="line"/>
<line y1="432" y2="432" x1="0" x2="1024" class="line"/>
<line y1="480" y2="480" x1="0" x2="1024" class="line"/>
<line y1="528" y2="528" x1="0" x2="1024" class="line"/>
<line y1="576" y2="576" x1="0" x2="1024" class="line"/>
<line y1="624" y2="624" x1="0" x2="1024" class="line"/>
<line y1="672" y2="672" x1="0" x2="1024" class="line"/>
<line y1="720" y2="720" x1="0" x2="1024" class="line"/>
</svg>
/* Shower Full */
.shower.full {
position: absolute;
top: 50%;
left: 50%;
overflow: hidden;
margin-top: calc(var(--slide-height) / 2 * -1);
margin-left: calc(var(--slide-width) / 2 * -1);
width: var(--slide-width);
height: var(--slide-height);
background: black;
}
/* Shower Grid */
.shower.full.grid::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: '';
pointer-events: none;
background-image: url('grid.svg');
}
/* Shower List */
.shower.list {
padding: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100%;
display: grid;
grid-gap: calc(
var(--slide-gap) * var(--slide-scale)
);
grid-auto-rows: calc(
var(--slide-height) * var(--slide-scale)
);
grid-template-rows: min-content;
grid-template-columns: repeat(
auto-fill,
calc(var(--slide-width) * var(--slide-scale))
);
background: var(--color-back);
}
/* IE & Edge Fix */
.shower.list {
position: absolute;
clip: rect(0, auto, auto, 0);
}
/* Responsive */
.shower.list {
--slide-scale: 0.25;
}
@media (min-width: 1168px) {
.shower.list {
--slide-scale: 0.5;
}
}
@media (min-width: 2336px) {
.shower.list {
--slide-scale: 1;
}
}
/* Print */
@page {
margin: 0;
size: 1024px 576px;
}
.shower {
-webkit-print-color-adjust: exact;
text-rendering: geometricPrecision;
}
/* Shower */
@import 'shower-list.css' screen;
@import 'shower-full.css' screen;
@import 'shower-grid.css' screen;
@import 'shower-print.css' print;
.shower {
--slide-gap: 96px;
--slide-ratio: calc(16 / 9);
--slide-width: 1024px;
--slide-height: calc(
var(--slide-width) / var(--slide-ratio)
);
--color-key: #4caf50;
--color-black: #212121;
--color-dark: #757575;
--color-medium: #9e9e9e;
--color-light: #bdbdbd;
--color-back: #eeeeee;
--color-yellow: #fff59d;
--color-yellow-light: #ffffcf;
--progress-size: 8px;
--diagonal: linear-gradient(
135deg, var(--color-key) 50%,
rgba(0, 0, 0, 0.1) 50%
);
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
margin: 0;
color: black;
counter-reset: slide;
font: 24px/2 'Roboto', sans-serif;
}
/* Basic */
.slide h2 {
margin-top: 0;
margin-bottom: 32px;
color: var(--color-black);
line-height: 1;
font-weight: 100;
font-size: 48px;
}
.slide p {
margin-top: 0;
margin-bottom: 1em;
}
.slide p.note {
color: var(--color-medium);
}
.slide figure {
margin: 0;
}
/* Code */
.slide pre {
margin-top: 0;
margin-bottom: 1em;
counter-reset: code;
white-space: normal;
}
/* Inner */
.slide pre code {
display: block;
margin-left: -96px;
padding: 0 0 0 96px;
width: calc(100% + 96px + 112px);
background: none;
line-height: 2;
white-space: pre;
tab-size: 4;
}
/* Line Numbers */
.slide pre code:not(:only-child)::before {
position: absolute;
margin-left: -2em;
color: var(--color-light);
counter-increment: code;
content: counter(code, decimal-leading-zero) '.';
}
/* Marked */
.slide pre mark {
position: relative;
z-index: -1;
margin: 0 -0.3em;
}
/* Important */
.slide pre mark.important {
background: var(--color-key);
color: white;
}
/* Comment */
.slide pre .comment {
color: var(--color-medium);
}
/* Marked Line */
.slide pre code.mark:not(:only-child) {
background: var(--color-back);
}
/* Next Line */
.slide pre code.mark.next:not(:only-child) {
visibility: visible;
background: none;
}
.slide pre code.mark.next.active:not(:only-child) {
background: var(--color-back);
}
/* Full */
.shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible;
background: none;
}
.shower.full .slide pre code:not(:only-child).mark.next.active {
background: var(--color-back);
}
/* Footer */
.slide > footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 48px 112px 24px 96px;
background: var(--color-yellow-light);
transition: transform 0.3s;
}
/* List */
.shower.list .slide > footer {
transform: translateY(100%);
}
.shower.list .slide.active > footer,
.shower.list .slide:hover > footer {
transform: translateY(0);
}
/* Full */
.shower.full .slide > footer {
display: none;
}
/* Inline */
.slide a {
background-image:
linear-gradient(
to top,
currentColor 0.08em,
transparent 0.08em
);
background-repeat: repeat-x;
color: var(--color-key);
text-decoration: none;
}
.slide code,
.slide kbd,
.slide mark,
.slide samp {
padding: 0.1em 0.3em;
}
.slide code,
.slide kbd,
.slide samp {
background: var(--color-back);
line-height: 1;
font-family: 'Roboto Mono', monospace;
}
.slide mark {
background: var(--color-yellow);
}
.slide sub,
.slide sup {
position: relative;
vertical-align: baseline;
line-height: 0;
font-size: 75%;
}
.slide sub {
bottom: -0.25em;
}
.slide sup {
top: -0.5em;
}
/* Lists */
.slide ol,
.slide ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 1em;
list-style: none;
counter-reset: list;
}
/* Marker */
.slide li::before {
position: absolute;
width: 3em;
color: var(--color-medium);
text-align: right;
transform:
translateX(
calc(-100% - 0.5em)
);
}
.slide li ol,
.slide li ul {
margin-bottom: 0;
margin-left: 2em;
}
/* Markers */
.slide ol > li::before {
counter-increment: list;
content: counter(list) '.';
}
.slide ul > li::before {
content: '•';
}
.slide ul > li:lang(ru)::before {
content: '—';
}
/* Custom */
.slide ol > li[value]::before {
content: attr(value) '.';
}
.slide ul > li[value]::before {
content: attr(value);
}
/* Quote */
.slide blockquote {
margin: 0;
font-style: italic;
}
.slide blockquote::before {
position: absolute;
margin: 0 0 0 -0.45em;
color: var(--color-light);
line-height: 1;
font-style: normal;
font-size: 7em;
content: '\201D';
}
/* Author */
.slide blockquote + figcaption {
margin: -1em 0 1em;
font-style: italic;
font-weight: bold;
}
/* Table */
.slide table {
margin-left: -96px;
margin-bottom: 1em;
width: calc(96px + 100% + 112px);
border-collapse: collapse;
border-spacing: 0;
}
/* Cells */
.slide th,
.slide td {
padding-top: 0;
padding-bottom: 0;
}
.slide th {
text-align: left;
font-weight: bold;
}
.slide th:first-child,
.slide td:first-child {
padding-left: 96px;
}
.slide th:last-child,
.slide td:last-child {
padding-right: 96px;
}
/* Lines */
.slide tr:not(:last-of-type) > * {
background:
linear-gradient(
to top,
var(--color-light) 0.06em,
transparent 0.06em
) repeat-x;
}
/* Stripes */
.slide table.striped tr:nth-child(even) {
background: var(--color-back);
}
.slide table.striped tr > * {
background-image: none;
}
/* Columns */
.columns {
display: grid;
width: 100%;
grid-column-gap: 75px;
}
.columns.two {
grid-template-columns: 1fr 1fr;
}
.columns.three {
grid-template-columns: 1fr 1fr 1fr;
}
.columns.four {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* Copyright */
.copyright {
position: absolute;
bottom: 20px;
right: 10px;
margin: 0;
font-size: 12px;
opacity: 0.7;
transform-origin: 0 100%;
transform: translateX(100%) rotate(-90deg);
}
/* Sides */
.copyright.top {
top: 10px;
right: auto;
bottom: auto;
left: 20px;
transform: none;
}
.copyright.bottom {
top: auto;
right: auto;
bottom: 20px;
left: 20px;
transform: none;
}
/* White */
.copyright.white {
color: white;
}
/* Links */
.copyright a {
color: currentColor;
}
/* Cover */
.cover {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
transform: translate(-50%, -50%);
max-width: 100%;
max-height: 100%;
}
/* Fitting */
.cover.w,
.cover.width {
width: 100%;
max-height: none;
}
.cover.h,
.cover.height {
height: 100%;
max-width: none;
}
/* Next */
.shower.full .next {
visibility: hidden;
}
.shower.full .next.active {
visibility: visible;
}
/* Place */
.place {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
transform: none;
}
.place.t,
.place.top,
.place.b,
.place.bottom {
transform: translate(-50%, 0);
}
.place.l,
.place.left,
.place.r,
.place.right {
transform: translate(0, -50%);
}
.place.t,
.place.top,
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right {
top: 0;
}
.place.r,
.place.right {
right: 0;
left: auto;
}
.place.b,
.place.bottom,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
top: auto;
bottom: 0;
}
.place.l,
.place.left {
left: 0;
}
/* Shout */
.slide .shout {
position: absolute;
top: 50%;
left: 0;
width: 100%;
padding-left: 96px;
color: white;
line-height: 1.1;
font-size: 112px;
transform: translateY(-50%);
}
/* Back */
.slide .shout::after {
position: absolute;
top: -300%;
right: 0;
bottom: -300%;
left: 0;
z-index: -1;
background-color: var(--color-key);
background-image: var(--diagonal);
background-repeat: no-repeat;
content: '';
}
/* Link */
.slide .shout a {
background-image:
linear-gradient(
to top,
currentColor 0.05em,
transparent 0.05em
);
background-position: bottom 0.05em left 0;
background-repeat: repeat-x;
color: inherit;
}
/* Full */
.shower.full .slide .shout::after {
background-position: var(--slide-width) 0;
transition: background-position 0.4s ease-out;
}
.shower.full .slide.active .shout::after {
background-position: 0 0;
}
/* Black */
.slide.black {
background-color: black;
}
/* Progress Off */
.slide.clear.active ~ .progress {
display: none;
}
/* Number Off */
.slide.clear::after {
visibility: hidden;
}
/* White */
.slide.white {
background-color: white;
}
/* Slide Full */
.shower.full .slide {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
visibility: hidden;
}
/* Active */
.shower.full .slide.active {
clip: auto;
visibility: visible;
}
/* Slide List */
.shower.list .slide {
box-shadow:
calc(var(--slide-scale) * 4px)
calc(var(--slide-scale) * 4px) 0
calc(var(--slide-scale) * 4px)
var(--color-light);
transform-origin: 0 0;
transform: scale(
var(--slide-scale)
);
}
.shower.list .slide * {
pointer-events: none;
}
/* Hover */
.shower.list .slide:hover {
box-shadow: 0 0 0 20px var(--color-light);
}
/* Active */
.shower.list .slide.active {
box-shadow: 0 0 0 20px var(--color-key);
}
/* Types */
@import 'slide-list.css' screen;
@import 'slide-full.css' screen;
/* Content */
@import 'content/basic.css';
@import 'content/code.css';
@import 'content/footer.css';
@import 'content/inline.css';
@import 'content/lists.css';
@import 'content/quote.css';
@import 'content/table.css';
/* Elements */
@import 'elements/columns.css';
@import 'elements/copyright.css';
@import 'elements/cover.css';
@import 'elements/next.css';
@import 'elements/place.css';
@import 'elements/shout.css';
/* Modifiers */
@import 'modifiers/clear.css';
@import 'modifiers/white.css';
@import 'modifiers/black.css';
/* Slide */
.slide {
position: relative;
z-index: 0;
overflow: hidden;
box-sizing: border-box;
padding: 80px 112px 0 96px;
width: var(--slide-width);
height: var(--slide-height);
background: white;
}
/* Number */
.slide::after {
position: absolute;
right: 0;
bottom: 38px;
left: 0;
color: var(--color-light);
line-height: 18px;
text-align: center;
counter-increment: slide;
content: counter(slide);
}
/* Styles */
@import 'fonts.css';
@import 'shower/shower.css';
@import 'blocks/badge.css';
@import 'blocks/caption.css';
@import 'blocks/progress.css';
@import 'blocks/region.css';
@import 'slide/slide.css';
# The MIT License
Copyright © 2010–2018 Vadim Makeev, http://pepelsbey.net/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
# Лицензия MIT
Copyright © 2010–2018 Вадим Макеев, http://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
# Ribbon theme for Shower [![Build Status](https://travis-ci.org/shower/ribbon.svg?branch=master)](https://travis-ci.org/shower/ribbon)
![Ribbon screen shot](pictures/canvas.png)
Default theme for the [Shower](https://github.com/shower/shower/) presentation engine. Doesn’t include engine itself. [See it in action](http://shwr.me/shower/themes/ribbon/). Follow [@shower_me](https://twitter.com/shower_me) for support and updates, [file an issue](https://github.com/shower/shower/issues/new) if you have any.
## Usage
Get the Shower template where Ribbon is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package:
npm install shower
If you want to install Ribbon separately you can install the package:
npm install shower-ribbon
## Features
All theme’s features are demonstrated in the [index.html](index.html) file, [see it live](https://shwr.me/shower/themes/ribbon/). Use it as a reference while building your presentation. See more detailed [features overview](https://github.com/shower/shower/blob/master/docs/features.md).
## Ratios
Ribbon theme supports any slide ratio you want. But it’s optimized for the most common ones: 16×9 and 4×3. It’s 16×9 by default, but you can change it by adjusting `--slide-ratio` property for `.shower`, [see example](https://github.com/shower/ribbon/blob/master/index.html#L10) in `index.html`.
## PDF
Ribbon could be exported to PDF by printing it from the list mode in Chrome or Opera browsers. See [printing documentation](https://github.com/shower/shower/blob/master/docs/pdf.md) for more options.
## Development
If you want to adjust theme for your needs:
1. Fork this repository and clone it to your local machine.
2. Install dependencies: `npm install`.
3. Start a local server with watcher: `npm start`.
4. Edit your files and see changes in the opened browser.
To take part in Ribbon development please read [contributing guidelines](CONTRIBUTING.md) first and [file an issue](https://github.com/shower/shower/issues/new) before sending any pull request.
---
Licensed under [MIT License](LICENSE.md).
Copyright (c) 2009, ParaType Ltd. All Rights Reserved.
LICENSING AGREEMENT
for the fonts with Original Name: PT Sans, PT Serif, PT Mono.
Version 1.3 - January 20, 2012
GRANT OF LICENSE
ParaType Ltd grants you the right to use, copy, modify the fonts and distribute
modified and unmodified copies of the fonts by any means, including placing
on Web servers for free downloading, embedding in documents and Web pages,
bundling with commercial and non commercial products, if it does not conflict
with the conditions listed below:
- You may bundle the font with commercial software, but you may not sell the
fonts by themselves. They are free.
- You may distribute the fonts in modified or unmodified version only together
with this Licensing Agreement and with above copyright notice. You have no
right to modify the text of Licensing Agreement. It can be placed in a separate
text file or inserted into the font file, but it must be easily viewed by users.
- You may not distribute modified version of the font under the Original name
or � combination of Original name with any other words without explicit written
permission from ParaType.
TERMINATION & TERRITORY
This license has no limits on time and territory, but it becomes null and void
if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK,
OR OTHER RIGHT. IN NO EVENT SHALL PARATYPE BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.
ParaType Ltd
http://www.paratype.ru
This diff is collapsed.
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="576">
<rect width="1024" height="576" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="0.2"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="0.6"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="342" height="576">
<rect width="342" height="576" fill="#979a9e" fill-opacity="1"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64">
<rect width="64" height="64" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="1200">
<rect width="400" height="1200" fill="#979a9e"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="400">
<rect width="1200" height="400" fill="#979a9e"/>
</svg>
/* Badge */
.badge {
position: absolute;
top: 0;
right: 0;
z-index: 1;
overflow: hidden;
visibility: hidden;
width: 9em;
height: 9em;
font-size: calc(
40px * var(--slide-scale)
);
}
/* Link */
.badge a {
position: absolute;
right: -50%;
bottom: 50%;
left: -50%;
visibility: visible;
background: var(--color-blue);
color: white;
text-decoration: none;
text-align: center;
line-height: 2;
transform-origin: 50% 100%;
transform: rotate(45deg);
}
/* Badge List */
.shower.list .badge {
display: block;
}
/* Badge Full */
.shower.full .badge {
display: none;
}
/* Badge Print */
@media print {
.shower.list .badge,
.shower.full .badge {
display: none;
}
}
/* Caption */
.caption {
margin-top: -0.2em;
margin-bottom: -0.07em;
grid-column: 1 / -1;
width: 100%;
color: #bfbfbf;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
font-size: calc(
var(--slide-gap) * var(--slide-scale)
);
}
/* Elements */
.caption h1 {
margin: 0;
padding-bottom: 0.15em;
font: bold 1em/1 'PT Sans Narrow', sans-serif;
}
.caption p {
margin: 0;
line-height: 1;
font-size: 0.6em;
}
.caption a {
text-decoration: none;
color: var(--color-blue-lighter);
}
/* List */
.shower.list .caption {
display: block;
}
/* Full */
.shower.full .caption {
display: none;
}
/* Print */
@media print {
.shower.list .caption,
.shower.full .caption {
display: none;
}
}
/* Progress */
.progress {
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: var(--progress-size);
overflow: hidden;
transition: all 0.2s linear;
}
.progress::before {
display: block;
width: 100%;
height: var(--progress-size);
background: var(--color-blue);
content: '';
transform-origin: 0 100%;
transform: skewX(45deg);
}
.progress[style*='100%']::before {
transform: none;
}
/* List */
.shower.list .progress {
display: none;
}
/* Full */
.shower.full .progress {
display: block;
}
/* Print */
@media print {
.shower.list .progress,
.shower.full .progress {
display: none;
}
}
/* Region */
.region {
position: absolute;
top: 0;
left: 0;
clip: rect(0 0 0 0);
}
/* List */
.shower.list .region {
display: none;
}
/* Full */
.shower.full .region {
display: block;
}
/* Print */
@media print {
.shower.list .region,
.shower.full .region {
display: none;
}
}
/* PT Sans */
@font-face {
font-family: 'PT Sans';
font-display: swap;
src:
local('PT Sans'),
local('PTSans-Regular'),
url('../fonts/pt-sans-regular.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-weight: bold;
font-display: swap;
src:
local('PT Sans Bold'),
local('PTSans-Bold'),
url('../fonts/pt-sans-bold.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-display: swap;
src:
local('PT Sans Italic'),
local('PTSans-Italic'),
url('../fonts/pt-sans-italic.woff2') format('woff2');
}
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: bold;
font-display: swap;
src:
local('PT Sans Bold Italic'),
local('PTSans-BoldItalic'),
url('../fonts/pt-sans-bold-italic.woff2') format('woff2');
}
/* PT Narrow */
@font-face {
font-family: 'PT Sans Narrow';
font-weight: bold;
font-display: swap;
src:
local('PT Sans Narrow Bold'),
local('PTSans-NarrowBold'),
url('../fonts/pt-sans-narrow-bold.woff2') format('woff2');
}
/* PT Mono */
@font-face {
font-family: 'PT Mono';
font-display: swap;
src:
local('PT Mono'),
local('PTMono-Regular'),
url('../fonts/pt-mono-regular.woff2') format('woff2');
}
<svg width="1024" height="768" xmlns="http://www.w3.org/2000/svg">
<defs>
<style>
.square {
stroke: red;
stroke-opacity: 0.1;
stroke-width: 1;
fill: transparent;
}
.grid {
fill: url(#grid);
}
.line {
stroke: #8af8f9;
}
</style>
<pattern x="0" y="0" width="25" height="25" viewBox="0 0 25 25" patternUnits="userSpaceOnUse" id="grid">
<rect x="0" y="0" width="25" height="25" class="square"/>
</pattern>
</defs>
<rect x="0" y="0" width="1024" height="768" class="grid"/>
<line x1="100" x2="100" y1="0" y2="768" class="line"/>
<line x1="475" x2="475" y1="0" y2="768" class="line"/>
<line x1="550" x2="550" y1="0" y2="768" class="line"/>
<line x1="925" x2="925" y1="0" y2="768" class="line"/>
<line y1="125" y2="125" x1="0" x2="1024" class="line"/>
<line y1="200" y2="200" x1="0" x2="1024" class="line"/>
<line y1="275" y2="275" x1="0" x2="1024" class="line"/>
<line y1="350" y2="350" x1="0" x2="1024" class="line"/>
<line y1="425" y2="425" x1="0" x2="1024" class="line"/>
<line y1="500" y2="500" x1="0" x2="1024" class="line"/>
<line y1="575" y2="575" x1="0" x2="1024" class="line"/>
<line y1="650" y2="650" x1="0" x2="1024" class="line"/>
<line y1="725" y2="725" x1="0" x2="1024" class="line"/>
</svg>
/* Shower Full */
.shower.full {
position: absolute;
top: 50%;
left: 50%;
overflow: hidden;
margin-top: calc(
var(--slide-height) / 2 * -1
);
margin-left: calc(
var(--slide-width) / 2 * -1
);
width: var(--slide-width);
height: var(--slide-height);
background: black;
}
/* Shower Grid */
.shower.full.grid::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
content: '';
pointer-events: none;
background-image: url('grid.svg');
}
/* Shower List */
.shower.list {
padding: calc(
var(--slide-gap) * var(--slide-scale)
);
box-sizing: border-box;
width: 100%;
display: grid;
grid-gap: calc(
var(--slide-gap) * var(--slide-scale)
);
grid-auto-rows: calc(
var(--slide-height) * var(--slide-scale)
);
grid-template-rows: min-content;
grid-template-columns: repeat(
auto-fill,
calc(var(--slide-width) * var(--slide-scale))
);
background: var(--color-grey);
}
/* IE & Edge Fix */
.shower.list {
position: absolute;
clip: rect(0, auto, auto, 0);
}
/* Responsive */
.shower.list {
--slide-scale: 0.25;
}
@media (min-width: 1174px) {
.shower.list {
--slide-scale: 0.5;
}
}
@media (min-width: 2348px) {
.shower.list {
--slide-scale: 1;
}
}
/* Shower Print */
@page {
margin: 0;
size: 1024px 576px;
}
.shower {
-webkit-print-color-adjust: exact;
text-rendering: geometricPrecision;
}
/* Shower */
@import 'shower-list.css' screen;
@import 'shower-full.css' screen;
@import 'shower-grid.css' screen;
@import 'shower-print.css' print;
.shower {
--slide-gap: 100px;
--slide-ratio: calc(16 / 9);
--slide-width: 1024px;
--slide-height: calc(
var(--slide-width) / var(--slide-ratio)
);
--color-blue: #4b86c2;
--color-blue-lighter: #6799cb;
--color-red: #cc0000;
--color-yellow: #fafaa2;
--color-grey: #585a5e;
--color-fill: rgba(88, 90, 94, 0.1);
--color-line: rgba(88, 90, 94, 0.5);
--ribbon-size: 50px;
--progress-size: 10px;
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
margin: 0;
color: black;
counter-reset: slide;
font: 25px/2 'PT Sans', sans-serif;
}
/* Basic */
.slide h2 {
margin-top: 0;
margin-bottom: 34px;
color: var(--color-grey);
font: bold 50px/1 'PT Sans Narrow', sans-serif;
}
.slide p {
margin-top: 0;
margin-bottom: 1em;
}
.slide p.note {
color: var(--color-grey);
}
.slide figure {
margin: 0;
}
/* Code */
.slide pre {
margin-top: 0;
margin-bottom: 1em;
counter-reset: code;
white-space: normal;
}
/* Inner */
.slide pre code {
display: block;
margin-left: -100px;
padding: 0 0 0 100px;
width: calc(100% + 100px + 100px);
border-radius: 0;
background: none;
line-height: 2;
white-space: pre;
tab-size: 4;
}
/* Line Numbers */
.slide pre code:not(:only-child)::before {
position: absolute;
margin-left: -2em;
color: var(--color-grey);
opacity: 0.75;
counter-increment: code;
content: counter(code, decimal-leading-zero) '.';
}
/* Marked */
.slide pre mark {
position: relative;
z-index: -1;
margin: 0 -0.3em;
}
/* Important */
.slide pre mark.important {
background: var(--color-red);
color: #ffffff;
}
/* Comment */
.slide pre .comment {
color: #999999;
}
/* Marked Line */
.slide pre code.mark:not(:only-child) {
background: var(--color-fill);
}
/* Next Line */
.slide pre code.mark.next:not(:only-child) {
visibility: visible;
background: none;
}
.slide pre code.mark.next.active:not(:only-child) {
background: var(--color-fill);
}
/* Full */
.shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible;
background: none;
}
.shower.full .slide pre code:not(:only-child).mark.next.active {
background: var(--color-fill);
}
/* Footer */
.slide > footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 50px 100px 25px;
background: var(--color-yellow);
transition: transform 0.3s linear;
}
/* List */
.shower.list .slide > footer {
transform: translateY(100%);
}
.shower.list .slide.active > footer,
.shower.list .slide:hover > footer {
transform: translateY(0);
}
/* Full */
.shower.full .slide > footer {
display: none;
}
/* Inline */
.slide a {
background-image: linear-gradient(
to top,
currentColor 0.09em,
transparent 0.09em
);
background-repeat: repeat-x;
color: var(--color-blue);
text-decoration: none;
}
.slide code,
.slide kbd,
.slide mark,
.slide samp {
padding: 0.1em 0.3em;
border-radius: 0.2em;
}
.slide code,
.slide kbd,
.slide samp {
background: var(--color-fill);
line-height: 1;
font-family: 'PT Mono', monospace;
}
.slide mark {
background: var(--color-yellow);
}
.slide sub,
.slide sup {
position: relative;
vertical-align: baseline;
line-height: 0;
font-size: 75%;
}
.slide sub {
bottom: -0.25em;
}
.slide sup {
top: -0.5em;
}
/* Lists */
.slide ol,
.slide ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 1em;
list-style: none;
counter-reset: list;
}
/* Marker */
.slide li::before {
position: absolute;
width: 3em;
color: var(--color-grey);
text-align: right;
opacity: 0.75;
transform: translateX(
calc(-100% - 0.5em)
);
}
.slide li ol,
.slide li ul {
margin-bottom: 0;
margin-left: 2em;
}
/* Markers */
.slide ol > li::before {
counter-increment: list;
content: counter(list) '.';
}
.slide ul > li::before {
content: '•';
}
.slide ul > li:lang(ru)::before {
content: '—';
}
/* Custom */
.slide ol > li[value]::before {
content: attr(value) '.';
}
.slide ul > li[value]::before {
content: attr(value);
}
/* Quote */
.slide blockquote {
margin: 0;
font-style: italic;
}
.slide blockquote::before {
position: absolute;
margin: -0.15em 0 0 -0.43em;
color: #cccccc;
line-height: 1;
font-size: 8em;
content: '\201C';
}
/* Author */
.slide blockquote + figcaption {
margin: -1em 0 1em;
font-style: italic;
font-weight: bold;
}
/* Table */
.slide table {
margin-left: -100px;
margin-bottom: 1em;
width: calc(
100% + 100px + 100px
);
border-collapse: collapse;
border-spacing: 0;
}
/* Cells */
.slide th,
.slide td {
padding-top: 0;
padding-bottom: 0;
}
.slide th {
text-align: left;
font-weight: bold;
}
.slide th:first-child,
.slide td:first-child {
padding-left: 96px;
}
.slide th:last-child,
.slide td:last-child {
padding-right: 96px;
}
/* Lines */
.slide tr:not(:last-of-type) > * {
background: linear-gradient(
to top,
var(--color-line) 0.06em,
transparent 0.06em
) repeat-x;
}
/* Stripes */
.slide table.striped tr:nth-child(even) {
background: var(--color-fill);
}
.slide table.striped tr > * {
background-image: none;
}
/* Columns */
.columns {
display: grid;
width: 100%;
grid-column-gap: 75px;
}
.columns.two {
grid-template-columns: 1fr 1fr;
}
.columns.three {
grid-template-columns: 1fr 1fr 1fr;
}
.columns.four {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* Copyright */
.copyright {
position: absolute;
bottom: 20px;
right: 10px;
margin: 0;
font-size: 12px;
opacity: 0.7;
transform-origin: 0 100%;
transform: translateX(100%) rotate(-90deg);
}
/* Sides */
.copyright.top {
top: 10px;
right: auto;
bottom: auto;
left: 20px;
transform: none;
}
.copyright.bottom {
top: auto;
right: auto;
bottom: 20px;
left: 20px;
transform: none;
}
/* White */
.copyright.white {
color: white;
}
/* Links */
.copyright a {
color: currentColor;
}
/* Cover */
.cover {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
transform: translate(-50%, -50%);
max-width: 100%;
max-height: 100%;
}
/* Fitting */
.cover.w,
.cover.width {
width: 100%;
max-height: none;
}
.cover.h,
.cover.height {
height: 100%;
max-width: none;
}
/* Next */
.shower.full .next {
visibility: hidden;
}
.shower.full .next.active {
visibility: visible;
}
/* Place */
.place {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
transform: none;
}
.place.t,
.place.top,
.place.b,
.place.bottom {
transform: translate(-50%, 0);
}
.place.l,
.place.left,
.place.r,
.place.right {
transform: translate(0, -50%);
}
.place.t,
.place.top,
.place.t.l,
.place.top.left,
.place.t.r,
.place.top.right {
top: 0;
}
.place.r,
.place.right {
right: 0;
left: auto;
}
.place.b,
.place.bottom,
.place.b.r,
.place.bottom.right,
.place.b.l,
.place.bottom.left {
top: auto;
bottom: 0;
}
.place.l,
.place.left {
left: 0;
}
/* Shout */
.slide .shout {
position: absolute;
top: 50%;
left: 0;
width: 100%;
text-align: center;
line-height: 1;
font-size: 150px;
transform: translateY(-50%);
}
/* Link */
.slide .shout a {
background-image: linear-gradient(
to top,
rgba(75, 134, 194, 0.4) 0.06em,
transparent 0.06em
);
background-position: bottom 0.13em left 0;
background-repeat: repeat-x;
}
/* Full */
.shower.full .slide .shout.grow {
opacity: 0;
transform: scale(0.1) translateY(-50%);
}
.shower.full .slide .shout.shrink {
opacity: 0;
transform: scale(10) translateY(-50%);
}
/* Active */
@keyframes shout {
to {
opacity: 1;
transform: scale(1) translateY(-50%);
}
}
.shower.full .slide.active .shout.grow,
.shower.full .slide.active .shout.shrink {
animation-name: shout;
animation-duration: 0.4s;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
}
/* Black */
.slide.black {
background-color: black;
}
/* Progress Off */
.slide.clear.active ~ .progress {
display: none;
}
/* Number Off */
.slide.clear::after {
visibility: hidden;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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