Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/pkgdown/assets/assets/styles.css.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions inst/pkgdown/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<div class="container-fluid top-nav-container">
<div class="col-md-8">
<div class="large-logo">
<a href="index.html">
<img id="{{#yaml}}{{carpentry}}{{/yaml}}-logo" alt="{{#yaml}}{{carpentry_name}}{{/yaml}}" src="{{#site}}{{root}}{{/site}}assets/images/{{#yaml}}{{carpentry_icon}}-logo.svg{{/yaml}}">
</a>
{{#yaml}}{{#life_cycle}}
{{#pre_alpha}}
<span class ="badge text-bg-danger">
Expand Down Expand Up @@ -166,7 +168,9 @@
<span class="menu-title">{{ translate.Menu }}</span>
</button>
<div class="nav-logo">
<a href="index.html">
<img class="small-logo" alt="{{#yaml}}{{carpentry_name}}{{/yaml}}" src="{{#site}}{{root}}{{/site}}assets/images/{{#yaml}}{{carpentry_icon}}-logo-sm.svg{{/yaml}}">
</a>
</div>
<div class="lesson-title-md">
{{# site }}{{& title }}{{/ site }}
Expand Down
75 changes: 47 additions & 28 deletions inst/pkgdown/templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ <h2 class="accordion-header" id="flush-heading-instructor-toggle">
{{/instructor}}
</div><!--/div.accordion-item-->
</div><!--/div.accordion-flush-->

</div><!--div.sidenav-view-selector -->
</div><!--/div.col -->
{{#yaml}}{{#language}}
Expand Down Expand Up @@ -132,6 +133,52 @@ <h2 class="accordion-header chapters" id="flush-heading-chapters-toggle">

<hr class="half-width"/>

<div class="accordion accordion-flush" id="accordion-links-toggle">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-heading-links-toggle">
<button class="accordion-button {{^overview}}collapsed{{/overview}}{{#overview}}show{{/overview}}" id="links" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapse-links-toggle" aria-expanded="false" aria-controls="flush-collapse-links-toggle">
{{ translate.LINKS }}
</button>
</h2>
<div id="flush-collapse-links-toggle" class="accordion-collapse show collapse" data-bs-parent="#accordion-links-toggle">
<div class="accordion-body">
<ul>
{{#instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/instructor-notes.html">{{ translate.InstructorNotes }}</a>
</li>
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/images.html">{{ translate.ExtractAllImages }}</a>
</li>
{{/overview}}
{{/instructor}}
{{^instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}reference.html#glossary">{{ translate.Glossary }}</a>
</li>
<li>
<a href="{{#site}}{{root}}{{/site}}profiles.html">{{ translate.LearnerProfiles }}</a>
</li>
{{/instructor}}
</ul>
</div>
</div>
</div><!--/div.accordion-item-->
</div><!--/div.accordion-flush-->

<hr class="half-width"/>

{{#resources}}
<div class="accordion accordion-flush lesson-resources" id="accordion-resources-toggle">
<div class="accordion-item">
Expand All @@ -150,34 +197,6 @@ <h2 class="accordion-header" id="flush-heading-resources-toggle">
<a href="index.html#setup">{{ translate.Setup }}</a>
</li>
{{/overview}}
{{#instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/instructor-notes.html">{{ translate.InstructorNotes }}</a>
</li>
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/images.html">{{ translate.ExtractAllImages }}</a>
</li>
{{/overview}}
{{/instructor}}
{{^instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}reference.html#glossary">{{ translate.Glossary }}</a>
</li>
<li>
<a href="{{#site}}{{root}}{{/site}}profiles.html">{{ translate.LearnerProfiles }}</a>
</li>
{{/instructor}}
{{{resources}}}
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions source/stylesheets/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ $color-mode-type: data;
// Sidebar + and - for smaller screens
@include media-breakpoint-down(xl) {

.sidebar .accordion-button.collapsed:not(#instructor):not(#language):not(#chapters):not(#lesson-resources)::after {
.sidebar .accordion-button.collapsed:not(#instructor):not(#language):not(#chapters):not(#lesson-resources):not(#links)::after {
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dee2e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-plus'><line x1='12' y1='5' x2='12' y2='19'></line><line x1='5' y1='12' x2='19' y2='12'></line></svg>");
}

.sidebar .accordion-button:not(.collapsed):not(#instructor):not(#language):not(#flush-collapseNine):not(#chapters):not(#lesson-resources)::after {
.sidebar .accordion-button:not(.collapsed):not(#instructor):not(#language):not(#flush-collapseNine):not(#chapters):not(#lesson-resources):not(#links)::after {
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dee2e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-minus'><line x1='5' y1='12' x2='19' y2='12'></line></svg>");
}

Expand Down
2 changes: 1 addition & 1 deletion source/stylesheets/sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}
}

#chapters, #lesson-resources, .accordion-header.chapters {
#chapters, #lesson-resources, #links, .accordion-header.chapters {
font-size: 24px;
font-weight: 400;
letter-spacing: 0.2px;
Expand Down
4 changes: 2 additions & 2 deletions source/stylesheets/styles.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ figcaption {

@include media-breakpoint-down(xl) {

.sidebar .accordion-button.collapsed:not(#instructor):not(#language):not(#chapters):not(#lesson-resources)::after {
.sidebar .accordion-button.collapsed:not(#instructor):not(#language):not(#chapters):not(#lesson-resources):not(#links)::after {
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-plus'><line x1='12' y1='5' x2='12' y2='19'></line><line x1='5' y1='12' x2='19' y2='12'></line></svg>");
transform:none !important;
}

.sidebar .accordion-button:not(.collapsed):not(#instructor):not(#language):not(#flush-collapseNine):not(#chapters):not(#lesson-resources)::after {
.sidebar .accordion-button:not(.collapsed):not(#instructor):not(#language):not(#flush-collapseNine):not(#chapters):not(#lesson-resources):not(#links)::after {
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-minus'><line x1='5' y1='12' x2='19' y2='12'></line></svg>");
transform:none !important;
}
Expand Down
Loading