forked from quarto-dev/quarto-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_listing-chooser.qmd
114 lines (96 loc) · 2.42 KB
/
_listing-chooser.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
::: column-page-inset-right
```{=html}
<style type="text/css">
.nav-tabs {
margin-top: 0.5rem;
border-bottom: none;
}
.callout {
margin-top: 0;
}
.nav-tabs .nav-link {
text-align: center;
margin-right: 15px;
margin-top: 10px;
width: 147px;
font-size: 0.8em;
font-weight: 600;
}
.nav-tabs .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
border: 1px solid rgb(222, 226, 230);
border-radius: 10px;
color: rgb(80,146,221);
}
.nav-tabs .nav-link:hover {
border-color: rgb(80,146,221);
border-width: 1px;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
border-color: rgb(80,146,221);
border-width: 2px;
}
.nav-tabs .nav-link i {
display: block;
font-size: 3rem;
color: rgb(80,146,221);
margin-bottom: 5px;
}
.quarto-listing {
margin-top: 2em;
}
.quarto-listing .listing-name,
.quarto-listing .listing-author {
white-space: nowrap;
}
.quarto-listing .listing-actions-group h3 {
margin-top: 0;
}
</style>
<ul id="index-chooser" class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
<a class="nav-link" href="listing-filters.html">
<i class="bi bi-gear"></i>Shortcode/Filter
</a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link" href="listing-journals.html">
<i class="bi bi-journal-text"></i>Journal Articles
</a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link" href="listing-formats.html">
<i class="bi bi-file-earmark-richtext"></i>Custom Formats
</a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link" href="listing-revealjs.html">
<i class="bi bi-easel3"></i>Revealjs
</a>
</li>
</ul>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
// get file name
const filename = window.location.pathname.split("/").slice(-1)[0];
// latch active
const toolLinks = window.document.querySelectorAll("#index-chooser a");
for (const tool of toolLinks) {
if (filename && filename !== "index.html") {
if (tool.href.endsWith(filename)) {
tool.classList.add("active");
}
} else {
if (tool.href.endsWith("listing-filters.html")) {
tool.classList.add("active");
}
}
}
// move heading into table
document.querySelector(".listing-actions-group").prepend(document.querySelector("h3.unlisted"));
});
</script>
```
:::