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 {
59
59
}
60
60
.has-text-centered p {
61
61
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 ;
62
83
}
Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ top_tabs:
28
28
29
29
{{ theme.block-center-start }}
30
30
31
-
32
31
{% include blocks/tabs.html tabs=page.top_tabs %}
33
32
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