File tree Expand file tree Collapse file tree 7 files changed +104
-3
lines changed Expand file tree Collapse file tree 7 files changed +104
-3
lines changed Original file line number Diff line number Diff line change 8
8
page : develop.md
9
9
- title : discuss
10
10
page : discuss.md
11
+ - title : Docs
12
+ url : https://docs.fabricmc.net/
11
13
- title : wiki
12
14
url : https://fabricmc.net/wiki/
Original file line number Diff line number Diff line change 20
20
< div class ="trigger ">
21
21
{% for link in site.data.topnav.links %}
22
22
{% if link.page %}
23
- < a class ="page-link " href ="{% link {{ link.page }} %} "> {{ link.title | escape | capitalize }}</ a >
23
+ < a class ="page-link " href ="{% link {{ link.page }} %} ">
24
+ {{ link.title | escape | capitalize }}
25
+ </ a >
24
26
{% else %}
25
- < a class ="page-link " href ="{{ link.url }} "> {{ link.title | escape | capitalize }}</ a >
27
+ < a class ="page-link " href ="{{ link.url }} ">
28
+ {{ link.title | escape | capitalize }}
29
+ </ a >
26
30
{% endif %}
27
31
{% endfor %}
28
32
</ div >
Original file line number Diff line number Diff line change 12
12
13
13
.site-nav {
14
14
margin-top : 12px ;
15
+
16
+ .page-link img {
17
+ vertical-align : center ;
18
+ }
15
19
}
16
20
17
21
.page-content {
207
211
object-fit : cover ;
208
212
}
209
213
}
214
+ }
215
+
216
+ .download-api-container {
217
+ display : flex ;
218
+ position : relative ;
219
+
220
+ @media (prefers-color-scheme : light ) {
221
+ img {
222
+ filter : invert (1 );
223
+ }
224
+ }
225
+
226
+ > a {
227
+ flex : 1 ;
228
+ border-radius : 5px 0 0 5px ;
229
+ }
230
+
231
+ .download-api {
232
+ cursor : pointer ;
233
+ display : flex ;
234
+ flex-direction : column ;
235
+
236
+ .button {
237
+ border-left : none ;
238
+ border-radius : 0 5px 5px 0 ;
239
+ }
240
+
241
+ & :focus-within .download-api-dropdown {
242
+ opacity : 1 ;
243
+ visibility : visible ;
244
+ transform : translateY (0 );
245
+ }
246
+
247
+ .download-api-dropdown {
248
+ position : absolute ;
249
+ width : calc (100% - 2rem - 4px );
250
+ background : $background-color ;
251
+ border : 2px solid $button-color ;
252
+ border-radius : 5px ;
253
+ top : calc (100% + 1rem ); // Match gapping on the button row
254
+ right : 0 ;
255
+ display : flex ;
256
+ flex-direction : column ;
257
+ gap : .5rem ;
258
+ padding : 1rem ;
259
+ opacity : 0 ;
260
+ visibility : hidden ;
261
+ transform : translateY (1rem );
262
+ transition : visibility .25s ease-in-out ,
263
+ transform .25s ease-in-out ,
264
+ opacity .25s ease-in-out ;
265
+
266
+ a {
267
+ display : flex ;
268
+ gap : .75rem ;
269
+ align-items : center ;
270
+ }
271
+ }
272
+ }
210
273
}
Original file line number Diff line number Diff line change @@ -19,7 +19,31 @@ layout: default
19
19
<section>
20
20
<p class="component-body">The Fabric Loader download above is the bare minimum. Combine it with Fabric API to get all the important extra APIs mods use. It has to be put into the mods folder like any other mod.</p>
21
21
</section>
22
- <a class="button secondary" href="https://www.curseforge.com/minecraft/mc-mods/fabric-api/files">Download Fabric API</a>
22
+ <div class="download-api-container">
23
+ <a class="button secondary" href="https://www.curseforge.com/minecraft/mc-mods/fabric-api/files">
24
+ <img alt="CurseForge logo" src="/assets/icons/curseforge-logo.svg" width="20" />
25
+ Download Fabric API
26
+ </a>
27
+ <div class="download-api" tabindex="-1">
28
+ <div class="button secondary">
29
+ <span>▼</span>
30
+ </div>
31
+ <div class="download-api-dropdown">
32
+ <a href="https://www.curseforge.com/minecraft/mc-mods/fabric-api/files">
33
+ <img alt="CurseForge logo" src="/assets/icons/curseforge-logo.svg" width="20" />
34
+ CurseForge
35
+ </a>
36
+ <a href="https://modrinth.com/mod/fabric-api/versions">
37
+ <img alt="Modrinth logo" src="/assets/icons/modrinth-logo.svg" width="20" />
38
+ Modrinth
39
+ </a>
40
+ <a href="https://github.com/FabricMC/fabric/releases">
41
+ <img alt="Github logo" src="/assets/icons/github-logo.svg" width="20" />
42
+ GitHub
43
+ </a>
44
+ </div>
45
+ </div>
46
+ </div>
23
47
</article>
24
48
<article class="column">
25
49
<h3>Develop</h3>
You can’t perform that action at this time.
0 commit comments