Skip to content

Commit

Permalink
Navigation details hide arrow
Browse files Browse the repository at this point in the history
Funktioniert noch nicht ganz!
  • Loading branch information
gruendau committed Aug 6, 2023
1 parent 14043cf commit 4c5d621
Show file tree
Hide file tree
Showing 249 changed files with 16,446 additions and 1,559 deletions.
Empty file.
7 changes: 7 additions & 0 deletions content/hallo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Hallo"
date: 2023-07-22T18:33:41+02:00
draft: false

subtitle:
---
2 changes: 2 additions & 0 deletions content/language/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ draft: false
subtitle:

weight: 10

tags: []
---

Inhalt:
2 changes: 1 addition & 1 deletion content/language/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ weight: 10
tags: [swift, cli]
---

Inhalt:
#### Inhalt
4 changes: 3 additions & 1 deletion content/language/swift/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ draft: false
subtitle:

weight: 10

tags: [swift]
---

Inhalt:
#### Inhalt
11 changes: 11 additions & 0 deletions content/language/swift/cli/xxx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Xxx
date: 2023-07-22T20:49:19+02:00
draft: false

subtitle:

weight: 10

tags: [swift, cli]
---
5 changes: 5 additions & 0 deletions content/site/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ Ich bin Volker, wohne in Niedergründau im schönen Hessen und programmiere einw

<br>

<!--
###### Links
-->

<!--
| Thema | Link | Anmerkung |
| --- | --- | --- |
Expand All @@ -73,11 +76,13 @@ Ich bin Volker, wohne in Niedergründau im schönen Hessen und programmiere einw
<br>
-->

<!--
* Hugo: [home][l1] [doku][d1] [wiki][w1]
* Bootstrap 5: [home][l7] [doku][d7] [wiki][w7]
* GitHub-Pages: [home][l2] [doku][d2] [wiki][w2]
* GitHub: [home][l3] [doku][d3] [wiki][w3]
* Git: [home][l4] [doku][d4] [wiki][w4]
-->

<br>

Expand Down
37 changes: 37 additions & 0 deletions layouts/_default/_OLD/baseof-hide.details-marker.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>

<style>

.hide-details-marker
details > summary::-webkit-details-marker,
details > summary::marker {
display: none;
}

/* none vs. initial */

</style>


</head>
<body>
<div class="hide-details-marker">
<details>
<summary >Click to Toggle Details</summary>
<p>Content inside the details element.</p>
</details>
</div>

<details>
<summary >Click to Toggle Details</summary>
<p>Content inside the details element.</p>
</details>

</body>
</html>




2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h3 id="top"></h3>
{{ .Content }}

<!-- Inhaltsverzeichnis -->
{{ partial "list/all-pages-folded-bold" . }}
{{ partial "list/all-pages-folded-marker-bold" . }}

<!-- Hugo Variablen anzeigen -->
{{ if .Site.Params.showHugoVariablesAll }}
Expand Down
12 changes: 12 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@

<style>

/*
Hide details marker
Apply it with <div class="hide-details-marker">
*/
.hide-details-marker
details > summary::-webkit-details-marker,
details > summary::marker {
display: none;
}

body {
background-color: #DDDDDD;
}
Expand Down Expand Up @@ -53,6 +63,8 @@
<!-- CSS -->
<!-- <link rel="stylesheet" href="/css/main.css"> -->

<link rel="stylesheet" type="text/css" href="/css/main.css">

<!-- Wird als Seitenname mit Slogan angezeigt -->
<title>
{{- if .IsHome -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<!-- 1. Ebene -->
{{ range .Pages }}
<details>
<summary>
<details style="list-style: none;">
<summary class="hide-arrow">
{{ partial "list/bold-normal" . }}
</summary>
<!--
Expand Down
67 changes: 67 additions & 0 deletions layouts/partials/list/all-pages-folded-marker-bold.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!-- partial all-pages-folded-bold.html -->

<div class="list">

<!-- 1. Ebene -->
{{ range .Pages }}
{{ .Scratch.Set "blanks" "" }}
{{ partial "list/details-marker-onoff" . }}
<!--
<span class="csKeyDesc">{{ .Params.subtitle }}</span>
padding-left: 10;
-->

<!-- 2. Ebene -->
{{ range .Pages }}
{{ .Scratch.Set "blanks" "\u00a0\u00a0\u00a0" }}
{{ partial "list/details-marker-onoff" . }}
<!--
&nbsp;
<span class="csKeyDesc">{{ .Params.subtitle }}</span>
-->

<!-- 3. Ebene -->
{{ range .Pages }}
{{ .Scratch.Set "blanks" "\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0" }}
{{ partial "list/details-marker-onoff" . }}
<!--
&nbsp;
<span class="csKeyDesc">{{ .Params.subtitle }}</span>
-->

<!-- 5. Ebene -->
{{ range .Pages }}
{{ .Scratch.Set "blanks" "\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0" }}
{{ partial "list/details-marker-onoff" . }}
<!--
&nbsp;
<span class="csKeyDesc">{{ .Params.subtitle }}</span>
-->

<!-- 6. Ebene -->
{{ range .Pages }}
<section class="list-item">
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
{{ partial "list/bold-normal" . }}
&nbsp;
<!--
<span class="csKeyDesc">{{ .Params.subtitle }}</span>
-->
</section>
{{ end }}

</details>
{{ end }}

</details>
{{ end }}

</details>
</div>
{{ end }}

</details>
</div>
{{ end }}

</div>
10 changes: 8 additions & 2 deletions layouts/partials/list/bold-normal.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!-- partial bold-normal.html -->

{{ if eq .Kind "page" }}
<a style="text-decoration: none;" href="{{ .RelPermalink }}">{{ .Title }}</a>
<a style="text-decoration: none;"
href="{{ .RelPermalink }}">{{ "\u00a0\u00a0\u00a0\u00a0\u00a0" }}{{ .Scratch.Get "blanks" }}{{ .Title }}
</a>
{{ else }}
<b><a style="text-decoration: none" href="{{ .RelPermalink }}">{{ .Title }}</a></b>
<b>
<a style="text-decoration: none"
href="{{ .RelPermalink }}">{{ .Scratch.Get "blanks" }}{{ .Title }}
</a>
</b>
{{ end }}


Expand Down
16 changes: 16 additions & 0 deletions layouts/partials/list/details-marker-onoff.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- partial details-marker-onoff.html -->

{{ if eq .Kind "page" }}
<div class="hide-details-marker">
<details style="list-style: none;">
<summary class="hide-arrow">
{{ partial "list/bold-normal" . }}
</summary>
{{ else }}
<div>
<details style="list-style: none;">
<summary class="hide-arrow">
{{ partial "list/bold-normal" . }}
</summary>
{{ end }}

16 changes: 16 additions & 0 deletions public/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

<style>


.hide-details-marker
details > summary::-webkit-details-marker,
details > summary::marker {
display: none;
}

body {
background-color: #DDDDDD;
}
Expand Down Expand Up @@ -56,6 +63,8 @@



<link rel="stylesheet" type="text/css" href="/css/main.css">


<title>Admin - Einführung in Swift und SwiftUI</title>
</head>
Expand Down Expand Up @@ -291,6 +300,13 @@ <h2 class="text-secondary h3 h4 h5">
</li>



<li class="post">
<a href="/einfuehrung-in-swift-und-swiftui/admin/test-hide-arrow.html"></a>

</li>



</ul>

Expand Down
9 changes: 9 additions & 0 deletions public/admin/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@ Layout Letztes Update-Datum der Seite anzeigen. Fixed Header and Footer. 2023-07
// Allgemein class EineKlasse { // Definition des Inhalts der Klasse } // Beispiel class Person { // Property var name: String = &amp;#34;volker&amp;#34; // Methode func gruesse () -&amp;gt; String { return &amp;#34;Hallo &amp;#34; + name } } &amp;hellip; und hier geht der Text irgendwie weiter!</description>
</item>

<item>
<title></title>
<link>https://gruendau.github.io/einfuehrung-in-swift-und-swiftui/admin/test-hide-arrow.html</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>

<guid>https://gruendau.github.io/einfuehrung-in-swift-und-swiftui/admin/test-hide-arrow.html</guid>
<description></description>
</item>

</channel>
</rss>
9 changes: 9 additions & 0 deletions public/admin/links.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

<style>


.hide-details-marker
details > summary::-webkit-details-marker,
details > summary::marker {
display: none;
}

body {
background-color: #DDDDDD;
}
Expand Down Expand Up @@ -56,6 +63,8 @@



<link rel="stylesheet" type="text/css" href="/css/main.css">


<title>Links - Einführung in Swift und SwiftUI</title>
</head>
Expand Down
9 changes: 9 additions & 0 deletions public/admin/test-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

<style>


.hide-details-marker
details > summary::-webkit-details-marker,
details > summary::marker {
display: none;
}

body {
background-color: #DDDDDD;
}
Expand Down Expand Up @@ -56,6 +63,8 @@



<link rel="stylesheet" type="text/css" href="/css/main.css">


<title>Test Data - Einführung in Swift und SwiftUI</title>
</head>
Expand Down
Loading

0 comments on commit 4c5d621

Please sign in to comment.