Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 882d95a

Browse files
release: improve slide countdown default scss
1 parent c4efd00 commit 882d95a

File tree

7 files changed

+31
-20
lines changed

7 files changed

+31
-20
lines changed

docs/docs/slides/app-slide-countdown/app-slide-countdown.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,15 @@ The following theming options will affect this component if set on its host or p
9696
| --slide-padding-bottom | 16px | Padding bottom of the all slide |
9797
| --slide-padding-start | 32px | Padding left of the all slide |
9898
| --slide-countdown-container-padding-bottom | 64px | The bottom padding of the displayed time container |
99-
| --slide-countdown-digits-width | 16em | The width of two displayed digit (Example: 16:00:00, 16em is the width of a digits 00 or 16) including spacing |
100-
| --slide-countdown-digits-width | 6em | The width of the (two) digits |
101-
| --slide-countdown-digits-height | | The height of the (two) digits |
99+
| --slide-countdown-digits-max-width | 36em | The max width of the container containing all digits |
100+
| --slide-countdown-digits-minmax-width | 12em | The grid minmax value of one of the three columns of digits |
101+
| --slide-countdown-digits-width | 4em | The width of one of the (two) digits |
102+
| --slide-countdown-digits-height | 4m | The height of the (two) digits |
102103
| --slide-countdown-digits-background | | The background color of the (two) digits |
103104
| --slide-countdown-digits-border-radius | | The border-radius of the (two) digits |
104105
| --slide-countdown-digits-box-shadow | 0 3px 4px 0 rgba(0, 0, 0, .2), inset 2px 4px 0 0 rgba(255, 255, 255, .08) | The box-shadow of the (two) digits |
105106
| --slide-countdown-digit-margin-right | 0.625em | The space between two digits |
106-
| --slide-countdown-digits-font-size | 5em | The border-radius of the (two) digits |
107+
| --slide-countdown-digits-font-size | 3em | The border-radius of the (two) digits |
107108
| --slide-countdown-digits-font-weight | | The font-weight of the (two) digits |
108109
| --slide-countdown-digits-color | | The color of the (two) digits |
109110

docs/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deckdeckgo-docs",
3-
"version": "1.0.0-alpha.23",
3+
"version": "1.0.0-alpha.23-1",
44
"description": "The Progressive Web App alternative for simple presentations",
55
"license": "MIT",
66
"files": [

docs/src/app/pages/docs/slides/app-slide-countdown/app-slide-countdown.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,23 @@ export class AppSlideCountdown {
183183
<td>The bottom padding of the displayed time container</td>
184184
</tr>
185185
<tr>
186-
<td>--slide-countdown-digits-width</td>
187-
<td>16em</td>
188-
<td>The width of two displayed digit (Example: 16:00:00, 16em is the width of a digits 00 or 16) including spacing</td>
186+
<td>--slide-countdown-digits-max-width</td>
187+
<td>36em</td>
188+
<td>The max width of the container containing all digits</td>
189+
</tr>
190+
<tr>
191+
<td>--slide-countdown-digits-minmax-width</td>
192+
<td>12em</td>
193+
<td>The grid minmax value of one of the three columns of digits</td>
189194
</tr>
190195
<tr>
191196
<td>--slide-countdown-digits-width</td>
192-
<td>6em</td>
193-
<td>The width of the (two) digits</td>
197+
<td>4em</td>
198+
<td>The width of one of the (two) digits</td>
194199
</tr>
195200
<tr>
196201
<td>--slide-countdown-digits-height</td>
197-
<td></td>
202+
<td>4m</td>
198203
<td>The height of the (two) digits</td>
199204
</tr>
200205
<tr>
@@ -219,7 +224,7 @@ export class AppSlideCountdown {
219224
</tr>
220225
<tr>
221226
<td>--slide-countdown-digits-font-size</td>
222-
<td>5em</td>
227+
<td>3em</td>
223228
<td>The border-radius of the (two) digits</td>
224229
</tr>
225230
<tr>

webcomponents/core/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webcomponents/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deckdeckgo/core",
3-
"version": "1.0.0-beta.45",
3+
"version": "1.0.0-beta.45-1",
44
"description": "Add a presentation to your web application using HTML and Web Components",
55
"module": "dist/index.mjs",
66
"main": "dist/index.js",

webcomponents/core/src/components/slides/deckdeckgo-slide-countdown/deckdeckgo-slide-countdown.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ div.deckgo-countdown-container {
1414
padding-bottom: var(--slide-countdown-container-padding-bottom, 64px);
1515

1616
width: inherit;
17-
max-width: calc(3 * var(--slide-countdown-digits-width, 16em));
17+
max-width: var(--slide-countdown-digits-max-width, 36em);
1818

1919
display: grid;
20-
grid-template-columns: repeat(auto-fit, minmax(var(--slide-countdown-digits-width, 16em), 1fr));
20+
grid-template-columns: repeat(auto-fit, minmax(var(--slide-countdown-digits-minmax-width, 12em), 1fr));
2121

2222
div.time-container {
2323
display: flex;
@@ -30,18 +30,23 @@ div.deckgo-countdown-container {
3030
text-align: center;
3131

3232
div.figure {
33-
width: var(--slide-countdown-digits-width, 6em);
34-
height: var(--slide-countdown-digits-height);
33+
width: var(--slide-countdown-digits-width, 4em);
34+
height: var(--slide-countdown-digits-height, 4em);
3535
background: var(--slide-countdown-digits-background, #fff);
3636
border-radius: var(--slide-countdown-digits-border-radius, 0.5em);
3737
box-shadow: var(--slide-countdown-digits-box-shadow, 0 3px 4px 0 rgba(0, 0, 0, .2), inset 2px 4px 0 0 rgba(255, 255, 255, .08));
3838

39+
display: flex;
40+
justify-content: center;
41+
align-items: center;
42+
flex-direction: column;
43+
3944
&:first-of-type {
4045
margin-right: var(--slide-countdown-digit-margin-right, 0.625em);
4146
}
4247

4348
> span {
44-
font-size: var(--slide-countdown-digits-font-size, 5em);
49+
font-size: var(--slide-countdown-digits-font-size, 3em);
4550
font-weight: var(--slide-countdown-digits-font-weight);
4651
color: var(--slide-countdown-digits-color);
4752
}

0 commit comments

Comments
 (0)