File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,25 @@ code {
5959}
6060.has-text-centered p {
6161 text-align : left !important ;
62+ }
63+
64+ .tabs {
65+ position : sticky;
66+ top : 0px ;
67+ background-color : white;
68+ opacity : 1 ;
69+ z-index : 1 ;
70+ }
71+
72+ .is-active {
73+ color : # 0073b0 ;
74+ }
75+
76+ .is-active h3 {
77+ color : # 0073b0 ;
78+ background : # f7f5f5 ;
79+ }
80+ .is-active a {
81+ border-top-style : solid;
82+ border-top-width : 2px ;
6283}
Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ top_tabs:
2828
2929{{ theme.block-center-start }}
3030
31-
3231{% include blocks/tabs.html tabs=page.top_tabs %}
3332
34- {{ theme.block-end }}
33+ {{ theme.block-end }}
34+ <script >
35+ if (! window .location .hash ) {
36+ let el = document .getElementById (" version-3-heading" );
37+ el .className += " is-active" ;
38+ }
39+ </script >
You can’t perform that action at this time.
0 commit comments