-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuote.svelte
49 lines (47 loc) · 1.08 KB
/
Quote.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script>
export let transition = "fade";
export let data = {
quote: {
content: "Quote",
classes: "large-heading",
},
author: {
content: "Author",
classes: "small-heading",
},
};
</script>
<section class="quote-slide" data-transition={transition}>
<blockquote class="font-bold {data.quote.classes}">
{@html data.quote.content}
</blockquote>
{#if data.author}
<cite class="font-medium {data.author.classes}">
{@html data.author.content}
</cite>
{/if}
</section>
<style>
.quote-slide {
display: flex !important; /* override reveal.js */
flex-direction: column;
justify-content: center;
padding: var(--padding);
text-align: left;
blockquote {
max-width: 80%;
line-height: 1.5;
padding: var(--border-radius);
border-radius: var(--border-radius);
background-color: var(--c-highlight);
:global(mark) {
background-color: var(--c-highlight-2);
}
}
cite {
display: block;
font-style: normal;
padding: var(--border-radius);
}
}
</style>