Commit 6841741a authored by Vadim Makeev's avatar Vadim Makeev

Updates

parent bf0e773c
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
<div class="progress"></div> <div class="progress"></div>
<script src="shower/shower.min.js"></script> <script src="shower/shower.js"></script>
<!-- Copyright © 3000 Yours Truly, Famous Inc. --> <!-- Copyright © 3000 Yours Truly, Famous Inc. -->
</body> </body>
......
This diff is collapsed.
This diff is collapsed.
...@@ -12,7 +12,7 @@ Get the Shower template where Material is already included. Download the [templa ...@@ -12,7 +12,7 @@ Get the Shower template where Material is already included. Download the [templa
If you want to install Material separately you can install the package: If you want to install Material separately you can install the package:
npm install shower-material npm install @shower/material
## Features ## Features
...@@ -36,7 +36,7 @@ If you want to adjust theme for your needs: ...@@ -36,7 +36,7 @@ If you want to adjust theme for your needs:
1. Fork this repository and clone it to your local machine. 1. Fork this repository and clone it to your local machine.
2. Install dependencies: `npm install`. 2. Install dependencies: `npm install`.
3. Start a local server with watcher: `npm run dev` or just `gulp` if you have it installed globally. 3. Start a local server with watcher: `npm start`.
4. Edit your files and see changes in the opened browser. 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. 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.
......
This diff is collapsed.
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
--slide-height: calc( --slide-height: calc(
var(--slide-width) / var(--slide-ratio) var(--slide-width) / var(--slide-ratio)
); );
--slide-left-side: 96px;
--slide-right-side: 112px;
--color-key: #4caf50; --color-key: #4caf50;
--color-black: #212121; --color-black: #212121;
...@@ -20,7 +22,6 @@ ...@@ -20,7 +22,6 @@
--color-light: #bdbdbd; --color-light: #bdbdbd;
--color-back: #eeeeee; --color-back: #eeeeee;
--color-yellow: #fff59d; --color-yellow: #fff59d;
--color-yellow-light: #ffffcf;
--progress-size: 8px; --progress-size: 8px;
......
...@@ -11,12 +11,19 @@ ...@@ -11,12 +11,19 @@
.slide pre code { .slide pre code {
display: block; display: block;
margin-left: -96px; margin-left: calc(
padding: 0 0 0 96px; var(--slide-left-side) * -1
width: calc(100% + 96px + 112px); );
padding: 0 0 0 var(--slide-left-side);
width: calc(
100% +
var(--slide-left-side) +
var(--slide-right-side)
);
background-color: transparent; background-color: transparent;
line-height: 2; line-height: 2;
white-space: pre; white-space: pre;
-moz-tab-size: 4;
tab-size: 4; tab-size: 4;
} }
...@@ -53,19 +60,20 @@ ...@@ -53,19 +60,20 @@
/* Marked Line */ /* Marked Line */
.slide pre code.mark:not(:only-child) { .slide pre code:not(:only-child).mark {
background-color: var(--color-back); background-color: var(--color-yellow);
} }
/* Next Line */ /* Next Line */
.slide pre code.mark.next:not(:only-child) { .slide pre code:not(:only-child).mark.next {
visibility: visible; visibility: visible;
background-color: transparent; background-color: transparent;
} }
.slide pre code.mark.next.active:not(:only-child) { .slide pre code:not(:only-child).mark.next.active,
background-color: var(--color-back); .slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
} }
/* Full */ /* Full */
...@@ -75,6 +83,7 @@ ...@@ -75,6 +83,7 @@
background-color: transparent; background-color: transparent;
} }
.shower.full .slide pre code:not(:only-child).mark.next.active { .shower.full .slide pre code:not(:only-child).mark.next.active,
background-color: var(--color-back); .shower.full .slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
} }
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: 1; z-index: 1;
padding: 48px 112px 24px 96px; padding:
background-color: var(--color-yellow-light); 48px var(--slide-right-side)
24px var(--slide-left-side);
background-color: var(--color-yellow);
transition: transform 0.3s; transition: transform 0.3s;
} }
......
/* Table */ /* Table */
.slide table { .slide table {
margin-left: -96px; margin-left: calc(
var(--slide-left-side) * -1
);
margin-bottom: 1em; margin-bottom: 1em;
width: calc(96px + 100% + 112px); width: calc(
100% +
var(--slide-left-side) +
var(--slide-right-side)
);
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }
...@@ -23,12 +29,12 @@ ...@@ -23,12 +29,12 @@
.slide th:first-child, .slide th:first-child,
.slide td:first-child { .slide td:first-child {
padding-left: 96px; padding-left: var(--slide-left-side);
} }
.slide th:last-child, .slide th:last-child,
.slide td:last-child { .slide td:last-child {
padding-right: 96px; padding-right: var(--slide-left-side);
} }
/* Lines */ /* Lines */
...@@ -66,6 +72,7 @@ ...@@ -66,6 +72,7 @@
background-color: transparent; background-color: transparent;
} }
.slide tr.mark.next.active { .slide tr.mark.next.active,
.slide tr.mark.next.visited {
background-color: var(--color-yellow); background-color: var(--color-yellow);
} }
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
visibility: hidden; visibility: hidden;
} }
.shower.full .next.active { .shower.full .next.active,
.shower.full .next.visited {
visibility: visible; visibility: visible;
} }
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
top: 50%; top: 50%;
left: 0; left: 0;
width: 100%; width: 100%;
padding-left: 96px; padding-left: var(--slide-left-side);
box-sizing: border-box;
color: white; color: white;
line-height: 1.1; line-height: 1.1;
font-size: 112px; font-size: 112px;
......
/* 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;
}
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
@import 'elements/next.css'; @import 'elements/next.css';
@import 'elements/place.css'; @import 'elements/place.css';
@import 'elements/shout.css'; @import 'elements/shout.css';
@import 'elements/spotlight.css';
/* Modifiers */ /* Modifiers */
...@@ -35,7 +36,9 @@ ...@@ -35,7 +36,9 @@
z-index: 0; z-index: 0;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 79px 112px 0 96px; padding:
79px var(--slide-right-side)
0 var(--slide-left-side);
width: var(--slide-width); width: var(--slide-width);
height: var(--slide-height); height: var(--slide-height);
background-color: white; background-color: white;
......
# The MIT License # The MIT License
Copyright © 2010–2019 Vadim Makeev, http://pepelsbey.net/ 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: 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:
...@@ -12,7 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ...@@ -12,7 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
# Лицензия MIT # Лицензия MIT
Copyright © 2010–2019 Вадим Макеев, http://pepelsbey.net/ Copyright © 2010–2019 Вадим Макеев, https://pepelsbey.net/
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий: Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
![Ribbon screen shot](pictures/canvas.png) ![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. 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 ## Usage
Get the Shower template where Ribbon is already included. Download the [template archive](http://shwr.me/shower.zip) or install the package: Get the Shower template where Ribbon is already included. Download the [template archive](https://shwr.me/shower.zip) or install the package:
npm install shower npm install shower
If you want to install Ribbon separately you can install the package: If you want to install Ribbon separately you can install the package:
npm install shower-ribbon npm install @shower/ribbon
## Features ## Features
......
...@@ -40,5 +40,4 @@ OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER ...@@ -40,5 +40,4 @@ OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE. DEALINGS IN THE FONT SOFTWARE.
ParaType Ltd ParaType Ltd
http://www.paratype.ru https://www.paratype.ru/
This diff is collapsed.
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
bottom: 50%; bottom: 50%;
left: -50%; left: -50%;
visibility: visible; visibility: visible;
background: var(--color-blue); background-color: var(--color-blue);
color: white; color: white;
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
display: block; display: block;
width: 100%; width: 100%;
height: var(--progress-size); height: var(--progress-size);
background: var(--color-blue); background-color: var(--color-blue);
content: ''; content: '';
transform-origin: 0 100%; transform-origin: 0 100%;
transform: skewX(45deg); transform: skewX(45deg);
......
...@@ -13,5 +13,5 @@ ...@@ -13,5 +13,5 @@
); );
width: var(--slide-width); width: var(--slide-width);
height: var(--slide-height); height: var(--slide-height);
background: black; background-color: black;
} }
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
auto-fill, auto-fill,
calc(var(--slide-width) * var(--slide-scale)) calc(var(--slide-width) * var(--slide-scale))
); );
background: var(--color-grey); background-color: var(--color-grey);
} }
/* IE & Edge Fix */ /* IE & Edge Fix */
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
--slide-height: calc( --slide-height: calc(
var(--slide-width) / var(--slide-ratio) var(--slide-width) / var(--slide-ratio)
); );
--slide-side: 100px;
--color-blue: #4b86c2; --color-blue: #4b86c2;
--color-blue-lighter: #6799cb; --color-blue-lighter: #6799cb;
......
...@@ -11,13 +11,18 @@ ...@@ -11,13 +11,18 @@
.slide pre code { .slide pre code {
display: block; display: block;
margin-left: -100px; margin-left: calc(
padding: 0 0 0 100px; var(--slide-side) * -1
width: calc(100% + 100px + 100px); );
padding: 0 0 0 var(--slide-side);
width: calc(
100% + var(--slide-side) * 2
);
border-radius: 0; border-radius: 0;
background: none; background-color: transparent;
line-height: 2; line-height: 2;
white-space: pre; white-space: pre;
-moz-tab-size: 4;
tab-size: 4; tab-size: 4;
} }
...@@ -43,8 +48,8 @@ ...@@ -43,8 +48,8 @@
/* Important */ /* Important */
.slide pre mark.important { .slide pre mark.important {
background: var(--color-red); background-color: var(--color-red);
color: #ffffff; color: white;
} }
/* Comment */ /* Comment */
...@@ -55,28 +60,30 @@ ...@@ -55,28 +60,30 @@
/* Marked Line */ /* Marked Line */
.slide pre code.mark:not(:only-child) { .slide pre code:not(:only-child).mark {
background: var(--color-fill); background-color: var(--color-yellow);
} }
/* Next Line */ /* Next Line */
.slide pre code.mark.next:not(:only-child) { .slide pre code:not(:only-child).mark.next {
visibility: visible; visibility: visible;
background: none; background-color: transparent;
} }
.slide pre code.mark.next.active:not(:only-child) { .slide pre code:not(:only-child).mark.next.active,
background: var(--color-fill); .slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
} }
/* Full */ /* Full */
.shower.full .slide pre code:not(:only-child).mark.next { .shower.full .slide pre code:not(:only-child).mark.next {
visibility: visible; visibility: visible;
background: none; background-color: transparent;
} }
.shower.full .slide pre code:not(:only-child).mark.next.active { .shower.full .slide pre code:not(:only-child).mark.next.active,
background: var(--color-fill); .shower.full .slide pre code:not(:only-child).mark.next.visited {
background-color: var(--color-yellow);
} }
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: 1; z-index: 1;
padding: 50px 100px 25px; padding: 50px var(--slide-side) 25px;
background: var(--color-yellow); background-color: var(--color-yellow);
transition: transform 0.3s linear; transition: transform 0.3s linear;
} }
......
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
.slide code, .slide code,
.slide kbd, .slide kbd,
.slide samp { .slide samp {
background: var(--color-fill); background-color: var(--color-fill);
line-height: 1; line-height: 1;
font-family: 'PT Mono', monospace; font-family: 'PT Mono', monospace;
} }
.slide mark { .slide mark {
background: var(--color-yellow); background-color: var(--color-yellow);
} }
.slide sub, .slide sub,
......
/* Table */ /* Table */
.slide table { .slide table {
margin-left: -100px; margin-left: calc(var(--slide-side) * -1);
margin-bottom: 1em; margin-bottom: 1em;
width: calc( width: calc(
100% + 100px + 100px 100% + var(--slide-side) * 2
); );
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
background-color: transparent; background-color: transparent;
} }
.slide tr.mark.next.active { .slide tr.mark.next.active,
.slide tr.mark.next.visited {
background-color: var(--color-yellow); background-color: var(--color-yellow);
} }
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
visibility: hidden; visibility: hidden;
} }
.shower.full .next.active { .shower.full .next.active,
.shower.full .next.visited {
visibility: visible; visibility: visible;
} }
/* 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;
}
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
@import 'elements/next.css'; @import 'elements/next.css';
@import 'elements/place.css'; @import 'elements/place.css';
@import 'elements/shout.css'; @import 'elements/shout.css';
@import 'elements/spotlight.css';
/* Modifiers */ /* Modifiers */
...@@ -35,10 +36,10 @@ ...@@ -35,10 +36,10 @@
z-index: 0; z-index: 0;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 75px 100px 0; padding: 75px var(--slide-side) 0;
width: var(--slide-width); width: var(--slide-width);
height: var(--slide-height); height: var(--slide-height);
background: #ffffff; background-color: white;
} }
/* Number */ /* Number */
...@@ -53,7 +54,7 @@ ...@@ -53,7 +54,7 @@
height: calc(var(--ribbon-size) * 2); height: calc(var(--ribbon-size) * 2);
background-image: url('ribbon.svg'); background-image: url('ribbon.svg');
background-size: cover; background-size: cover;
color: #ffffff; color: white;
counter-increment: slide; counter-increment: slide;
content: counter(slide); content: counter(slide);
text-align: center; text-align: center;
......
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