This repository was archived by the owner on Apr 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -79,20 +79,34 @@ <h2>Getting started</h2>
79
79
< div class ="nuget-box ">
80
80
< ul role ="tablist " class ="tabs ">
81
81
< li role ="presentation ">
82
- < button id ="tab-dotnet-cli " aria-expanded ="false " aria-selected ="true " aria-controls ="panel-dotnet-cli " role ="tab " class ="tab "> .NET CLI</ button >
82
+ < button id ="tab-package-manager " aria-expanded ="false " aria-selected ="true " aria-controls ="panel-package-manager " role ="tab " class ="tab "> Package Manager</ button >
83
+ </ li >
84
+ < li role ="presentation ">
85
+ < button id ="tab-dotnet-cli " aria-expanded ="false " aria-selected ="true " aria-controls ="panel-dotnet-cli " role ="tab " class ="tab " data-default-tab > .NET CLI</ button >
83
86
</ li >
84
87
< li role ="presentation ">
85
88
< button id ="tab-package-refererence " aria-expanded ="false " aria-selected ="false " aria-controls ="panel-package-refererence " role ="tab " class ="tab "> PackageReference</ button >
86
89
</ li >
90
+ < li role ="presentation ">
91
+ < button id ="tab-script-interactive " aria-expanded ="false " aria-selected ="false " aria-controls ="panel-script-interactive " role ="tab " class ="tab "> Script & Interactive</ button >
92
+ </ li >
87
93
</ ul >
88
94
95
+ < div id ="panel-package-manager " role ="tabpanel " aria-labelledby ="tab-package-manager " class ="panel ">
96
+ < code > Install-Package Funcky -Version {{PackageVersion}}</ code >
97
+ </ div >
98
+
89
99
< div id ="panel-dotnet-cli " role ="tabpanel " aria-labelledby ="tab-dotnet-cli " class ="panel ">
90
100
< code > dotnet add package Funcky --version {{PackageVersion}}</ code >
91
101
</ div >
92
102
93
103
< div id ="panel-package-refererence " role ="tabpanel " aria-labelledby ="tab-package-refererence " class ="panel ">
94
104
< code > <PackageReference Include="Funcky" Version="{{PackageVersion}}" /></ code >
95
105
</ div >
106
+
107
+ < div id ="panel-script-interactive " role ="tabpanel " aria-labelledby ="tab-script-interactive " class ="panel ">
108
+ < code > #r "nuget: Funcky, {{PackageVersion}}"</ code >
109
+ </ div >
96
110
</ div >
97
111
</ div >
98
112
</ section >
Original file line number Diff line number Diff line change @@ -117,11 +117,17 @@ footer {
117
117
display : grid;
118
118
grid-auto-flow : column;
119
119
justify-content : start;
120
- grid-gap : 8px ;
120
+ align-items : stretch;
121
+ gap : 0 8px ;
122
+ }
123
+
124
+ .nuget-box .tabs li {
125
+ display : contents;
121
126
}
122
127
123
128
.nuget-box .tab {
124
129
cursor : pointer;
130
+ font-size : 14px ;
125
131
padding : 6px var (--nuget-box-horizontal-padding );
126
132
border-radius : 6px 6px 0 0 ;
127
133
background-color : var (--primary-color );
@@ -184,4 +190,13 @@ p:not(:last-child),
184
190
.feature-list {
185
191
grid-template-columns : 1fr ;
186
192
}
193
+
194
+ .nuget-box .tabs {
195
+ grid-auto-flow : row;
196
+ justify-content : stretch;
197
+ }
198
+
199
+ .nuget-box .tabs li : not (: first-child ) .tab {
200
+ border-radius : 0 ;
201
+ }
187
202
}
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ function updateActiveTab(activeTab) {
7
7
tabs . forEach ( t => { t . setAttribute ( 'aria-expanded' , t === activeTab ) ; t . setAttribute ( 'aria-active' , t === activeTab ) } )
8
8
}
9
9
10
- updateActiveTab ( tabs [ 0 ] )
10
+ updateActiveTab ( tabs . filter ( t => t . hasAttribute ( 'data-default-tab' ) ) [ 0 ] )
11
11
12
12
tabs . forEach ( tab => tab . addEventListener ( 'click' , _ => updateActiveTab ( tab ) ) )
You can’t perform that action at this time.
0 commit comments