Commit bbc8f8ba authored by vrnnncl's avatar vrnnncl

Updates

parent 71ce0474
This diff is collapsed.
<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
# The MIT License
Copyright © 2010–2019 Vadim Makeev, https://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–2019 Вадим Макеев, https://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
# Ribbon theme for Shower
[![Test status](https://github.com/shower/ribbon/workflows/Test/badge.svg)](https://github.com/shower/ribbon/actions/workflows/test.yml)
![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](https://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](https://shwr.me/shower.zip) or create a slide deck via [CLI tool](https://github.com/shower/cli). It requires [Node.js](https://nodejs.org/) installed.
npx @shower/cli create
Wait for the installation and choose the **ribbon** option in the wizard and you’re all set.
## 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/main/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/main/index.html#L10) in `index.html`.
## PDF
You can export slides to PDF by printing it via built-in dialog in Chromium-based browsers or via CLI tool. See [printing documentation](https://github.com/shower/shower/blob/main/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
https://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-color: 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-color: 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"/>
</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-color: black;
transform: scale(var(--shower-full-scale));
}
/* 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 {
--shower-list-block: calc(
var(--slide-gap) *
var(--slide-scale)
);
--shower-list-inline: calc(
var(--slide-gap) *
var(--slide-scale) +
env(safe-area-inset-left)
);
padding:
var(--shower-list-block)
var(--shower-list-inline);
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-color: 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 Pontless */
.shower.pointless {
cursor: none;
}
/* 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-pointless.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)
);
--slide-side: 100px;
--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: 9px;
margin-bottom: 33px;
color: var(--color-grey);
font: bold 50px/1 'PT Sans Narrow', sans-serif;
}
.slide * + h2 {
margin-top: 41px;
}
.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: calc(
var(--slide-side) * -1
);
padding: 0 0 0 var(--slide-side);
width: calc(
100% + var(--slide-side) * 2
);
border-radius: 0;
background-color: transparent;
line-height: 2;
white-space: pre;
-moz-tab-size: 4;
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-color: var(--color-red);
color: white;
}
/* Comment */
.slide pre .comment {
color: #999999;
}
/* Marked Line */
.slide pre code:not(:only-child).mark {
background-color: var(--color-yellow);
}
/* Next Line */
.slide pre code:not(:only-child).mark.next {
visibility: visible;
background-color: transparent;
}
.slide pre code:not(:only-child).mark.next.active,
.slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
}
/* Full */
.shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible;
background-color: transparent;
}
.shower.full .slide pre code:not(:only-child).mark.next.active,
.shower.full .slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
}
/* Footer */
.slide > footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 50px var(--slide-side) 25px;
background-color: 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-color: var(--color-fill);
line-height: 1;
font-family: 'PT Mono', monospace;
}
.slide mark {
background-color: 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: calc(var(--slide-side) * -1);
margin-bottom: 1em;
width: calc(
100% + var(--slide-side) * 2
);
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-image: linear-gradient(
to top,
var(--color-line) 0.06em,
transparent 0.06em
);
background-repeat: repeat-x;
}
/* Stripes */
.slide table.striped tr:nth-child(even) {
background-color: var(--color-fill);
}
.slide table.striped tr > * {
background-image: none;
}
/* Marked Row */
.slide tr.mark {
background-color: var(--color-yellow);
}
/* Next Marked Row */
.slide tr.mark.next {
visibility: visible;
background-color: transparent;
}
.slide tr.mark.next.active,
.slide tr.mark.next.visited {
background-color: var(--color-yellow);
}
/* 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,
.shower.full .next.visited {
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;
}
/* Spotlight */
.spotlight {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin-top: var(--spotlight-top, 0);
margin-left: var(--spotlight-left, 0);
width: var(--spotlight-size, var(--spotlight-width, 256px));
height: var(--spotlight-size, var(--spotlight-height, 256px));
border-radius: var(--spotlight-radius, 50%);
box-shadow:
0 0 0 var(--slide-width)
rgba(
0, 0, 0,
var(--spotlight-opacity, 0.2)
);
pointer-events: none;
}
/* Black */
.slide.black {
background-color: black;
}
/* Progress Off */
.slide.clear.active ~ .progress {
display: none;
}
/* Number Off */
.slide.clear::after {
visibility: hidden;
}
/* Gray */
.slide.gray {
background-color: #979a9e;
}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 100"><path fill="#c00" d="M0 0h50v100L25 80 0 100"/></svg>
\ No newline at end of file
/* 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 {
border-radius: 2px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
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 rgba(0, 0, 0, 0.1),
0 20px 50px rgba(0, 0, 0, 0.3);
}
/* Active */
.shower.list .slide.active {
box-shadow:
0 0 0 1px #376da3,
0 0 0 20px #4b86c2,
0 20px 50px rgba(0, 0, 0, 0.3);
}
/* 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';
@import 'elements/spotlight.css';
/* Modifiers */
@import 'modifiers/clear.css';
@import 'modifiers/gray.css';
@import 'modifiers/black.css';
/* Slide */
.slide {
position: relative;
z-index: 0;
overflow: hidden;
box-sizing: border-box;
padding: 75px var(--slide-side) 0;
width: var(--slide-width);
height: var(--slide-height);
background-color: white;
}
/* Number */
.slide::after {
position: absolute;
top: 0;
left: 875px;
box-sizing: border-box;
padding-top: 15px;
width: var(--ribbon-size);
height: calc(var(--ribbon-size) * 2);
background-image: url('ribbon.svg');
background-size: cover;
color: white;
counter-increment: slide;
content: counter(slide);
text-align: center;
}
/* 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';
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