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

Commit

Permalink
feat: add hidden title for navigation information
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 14, 2018
1 parent a5ec098 commit d2dae9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/slides/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ The "Split" slide's Web Component could be integrated using the tag `<deckgo-sli

Both slots `title` and `content` are optional. Without providing one of them, the page will remain empty.

Note: The slot `title` is per default hidden.

### Attributes

This component offers the following options which could be set using attributes:
Expand Down Expand Up @@ -204,6 +206,7 @@ The following theming options will affect this component if set on its host or p
| --slide-padding-start | 32px | Modify slotted ul and ol padding-inline-start |
| --slide-split-align | inherit | Modify for example to center if you want to align the content in the middle |
| --slide-split-text-align | inherit | Modify for example to center if you want to align the text in the middle |
| --slide-split-title-display | none | Modify this attribute if you wish to display a title |

## Slide: Code

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ div.deckgo-slide-author {
}
}
}

::slotted([slot="title"]) {
display: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class DeckdeckgoSlideAuthor implements DeckdeckgoSlide {

render() {
return <div class="deckgo-slide">
<slot name="title"></slot>
<div class="deckgo-slide-author deckgo-slide-author-start">
<img data-src={this.imgUrl}/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ div.deckgo-slide-split {
::slotted([slot="title"]) {
flex: 1 100%;

display: var(--slide-split-title-display, none);

padding: var(--slide-split-title-padding-top, 16px) var(--slide-split-title-padding-end, 32px) var(--slide-split-title-padding-bottom, 16px) var(--slide-split-title-padding-start, 32px);
}

0 comments on commit d2dae9c

Please sign in to comment.