Skip to content

Commit adc723b

Browse files
committed
Making version more prominent and defaulting to 3
1 parent 68240e1 commit adc723b

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

css/style.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

recipe/0001-mvm-image/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)