File tree Expand file tree Collapse file tree 4 files changed +54
-10
lines changed Expand file tree Collapse file tree 4 files changed +54
-10
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ markdown_extensions:
4444 - meta
4545 - pymdownx.superfences
4646 - pymdownx.details
47+ - pymdownx.tabbed
4748 - toc :
4849 permalink : true
4950nav :
Original file line number Diff line number Diff line change @@ -53,13 +53,14 @@ deployment.
5353 on some older Linux distributions, like Ubuntu 16.04. Libsodium 23 is
5454 available in Ubuntu 18.04 or can be installed from a custom PPA.
5555
56- ``` bash tab="Linux (Ubuntu)"
57- sudo apt-get update && sudo apt-get install libsodium-dev
58- ```
59-
60- ` ` ` bash tab=" Mac OS"
61- brew install libsodium
62- ` ` `
56+ === "Linux (Ubuntu)"
57+ ```bash
58+ sudo apt-get update && sudo apt-get install libsodium-dev
59+ ```
60+ === "Mac OS"
61+ ```bash
62+ brew install libsodium
63+ ```
6364
64653 . Follow the steps in the [ After Install] ( #after-install ) section below
6566
Original file line number Diff line number Diff line change 8181 background-color : # 3a3a3a ;
8282 }
8383}
84+
85+ /* For displaying tabs by `pymdownx.tabbed` extension */
86+ .tabbed-set {
87+ display : flex;
88+ position : relative;
89+ flex-wrap : wrap;
90+ }
91+
92+ .tabbed-set .highlight {
93+ background : # ddd ;
94+ }
95+
96+ .tabbed-set .tabbed-content {
97+ display : none;
98+ order : 99 ;
99+ width : 100% ;
100+ }
101+
102+ .tabbed-set label {
103+ width : auto;
104+ margin : 0 0.5em ;
105+ padding : 0.25em ;
106+ font-size : 120% ;
107+ cursor : pointer;
108+ }
109+
110+ .tabbed-set input {
111+ position : absolute;
112+ opacity : 0 ;
113+ }
114+
115+ .tabbed-set input : nth-child (n+1) {
116+ color : # 333333 ;
117+ }
118+
119+ .tabbed-set input : nth-child (n+1): checked + label {
120+ color : # ff5252 ;
121+ }
122+
123+ .tabbed-set input : nth-child (n+1): checked + label + .tabbed-content {
124+ display : block;
125+ }
You can’t perform that action at this time.
0 commit comments