Skip to content

Commit 0525236

Browse files
author
Christopher Mühl
committed
Style tab headers and add preview gif
1 parent 81666fa commit 0525236

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preview.gif

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# vuepress-plugin-code-switcher
22
Component that allows having synchronized language switchable code blocks (e.g. to switch between Java and Kotlin examples). Selected languages are persisted to local storage to have language selection be permanent across page requests.
33

4+
## Demo
5+
![](preview.gif)
6+
47
## Installation
58
```
69
$ npm install vuepress-plugin-code-switcher --save

preview.gif

1.77 MB
Loading

switcher.styl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
.tab-header
66
ul
77
padding 0
8+
text-align right
9+
margin-bottom -5px
10+
margin-top 20px
811

912
li
1013
display inline-block
1114
padding 0 10px
1215
cursor pointer
16+
border-radius 4px
17+
border 2px solid $borderColor
18+
margin-left 5px
19+
font-size 80%
1320

1421
&.active
15-
font-weight bold
22+
border-color $accentColor

0 commit comments

Comments
 (0)