Skip to content

Commit

Permalink
Revert "Proof of concept of SVG icons next to external header links (s…
Browse files Browse the repository at this point in the history
…cientific-python#163)"

This reverts commit b147a37.

See discussion starting at
<scientific-python#233 (comment)>.

This feature may be reintroduced and documented later.
  • Loading branch information
alphapapa committed Sep 27, 2023
1 parent 1de1a03 commit 1376b95
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions assets/theme-css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ svg.icon {
vertical-align: middle;
}

.navbar svg.icon {
width: 1.5rem;
}

#footer .community-icons {
/* Icon size slightly enlargened for footer */
font-size: 2.3em;
Expand Down
1 change: 0 additions & 1 deletion doc/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ params:
url: /getstarted/
- title: Features
url: /features/
is_external: true
- title: Shortcodes
url: /shortcodes/
keyfeatures:
Expand Down
5 changes: 0 additions & 5 deletions layouts/partials/navbar-clone.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</a>
{{- end}}


<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="cloned-navbar-menu">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
Expand All @@ -28,14 +27,12 @@
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>

<div class="navbar-dropdown">
{{- range .sublinks }}
<a href="{{ .url }}" class="navbar-item">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>
{{- end }}
</div>
Expand All @@ -44,13 +41,11 @@
<a href="{{ .url }}" class="navbar-item">
<span class="button signup-button rounded secondary-btn raised">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</span>
</a>
{{- else }}
<a href="{{ .url }}" class="navbar-item is-secondary">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>
{{- end }}
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>

<div class="navbar-dropdown">
{{- range .sublinks }}
<a href="{{ .url }}" class="navbar-item">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>
{{- end }}
</div>
Expand All @@ -45,13 +43,11 @@
<a href="{{ .url }}" class="navbar-item">
<span class="button signup-button rounded secondary-btn raised">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</span>
</a>
{{- else }}
<a href="{{ .url }}" class="navbar-item is-secondary">
{{ .title }}
{{ if .is_external }}{{ partial "svg-icon" "launch" }}{{ end }}
</a>
{{- end }}
{{- end }}
Expand Down
File renamed without changes

0 comments on commit 1376b95

Please sign in to comment.