Skip to content

Commit

Permalink
feat: remove the need for nbsp; on list item svg
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Sep 3, 2021
1 parent 0261dc6 commit 3f6d518
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 79 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,7 @@
<!--
TODO: Replace all on all files:
Replace all on all files:
- slidev-theme-diapositiv
- Diapositiv Slidev theme
- lihbr/slidev-theme-diapositiv
Expand Down
2 changes: 1 addition & 1 deletion layouts/items.vue
Expand Up @@ -57,7 +57,7 @@ defineExpose({ props });
}
& > div > svg ~ * {
@apply mt-4;
@apply mt-6;
}
}
}
Expand Down
82 changes: 5 additions & 77 deletions playground/slides.md
@@ -1,81 +1,9 @@
---
theme: ./
theme: ../
lineNumbers: true
themeConfig:
pip: off
layout: cover
---

# Foo

Lorem Ipsum

## Bar

Lorem Ipsum

### Baz

Lorem Ipsum

#### Qux

Lorem Ipsum

--- slide

# Hey

--- slide
title: Hey

---

# What is Slidev?

Slidev is a slides maker and presenter designed for developers, consist of the following features

- πŸ“ **Text-based** - focus on the content with Markdown, and then style them later
- 🎨 **Themable** - theme can be shared and used with npm packages
- πŸ§‘β€πŸ’» **Developer Friendly** - code highlighting, live coding with autocompletion
- 🀹 **Interactive** - embedding Vue components to enhance your expressions
- πŸŽ₯ **Recording** - built-in recording and camera view
- πŸ“€ **Portable** - export into PDF, PNGs, or even a hostable SPA
- πŸ›  **Hackable** - anything possible on a webpage

Read more about [Why Slidev?](https://sli.dev/guide/why)

---

# Navigation

Hover on the bottom-left corner to see the navigation's controls panel

### Keyboard Shortcuts

| | |
| ---------------------------------------------------- | --------------------------- |
| <kbd>space</kbd> / <kbd>tab</kbd> / <kbd>right</kbd> | next animation or slide |
| <kbd>left</kbd> / <kbd>shift</kbd><kbd>space</kbd> | previous animation or slide |
| <kbd>up</kbd> | previous slide |
| <kbd>down</kbd> | next slide |

---

# Code

Use code snippets and get the highlighting directly!

## Hey

```ts {all|2-5|all}
interface User {
id: number;
firstName: string;
lastName: string;
role: string;
}

function updateUser(id: number, update: Partial<User>) {
const user = getUser(id);
const newUser = { ...user, ...update };
saveUser(id, newUser);
}
```
# Playground
1 change: 1 addition & 0 deletions styles/abstract/default.css
Expand Up @@ -46,6 +46,7 @@ html {
& > svg:first-child,
& > p > svg:first-child {
@apply inline;
margin-right: 0.4em;
}
}

Expand Down

0 comments on commit 3f6d518

Please sign in to comment.