Skip to content

Commit

Permalink
Some minor CSS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Apr 24, 2024
1 parent 7e48a85 commit f501711
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
15 changes: 10 additions & 5 deletions src/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
.description {
.iscsc-subsection {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}

.iscsc-description {
font-style: italic;
font-size: 1.15rem;
margin-bottom: 2rem;
font-size: 1rem;
}

.resource {
.iscsc-resource {
background-color: var(--code-block-background-color); /* Not great... TO BE CHANGED */
display: inline-block;
/*display: block;*/
padding: 0.2rem 0.8rem;
border-radius: 0.5em;
}
.summary {

.iscsc-summary {
font-style: italic;
font-size: 0.9rem;
}
4 changes: 2 additions & 2 deletions src/layouts/partials/resource.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="resource">
<div class="iscsc-resource">
<h4 class="post-title">{{ .Title }}</h4>
<span class="summary">{{ .Summary }}</span>
<span class="iscsc-summary">{{ .Summary }}</span>
</div>
4 changes: 2 additions & 2 deletions src/layouts/partials/subsection.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<details>
<summary><a href="{{ .RelPermalink }}">{{ .Title }}</a></summary>
<summary class="iscsc-subsection"><a href="{{ .RelPermalink }}">{{ .Title }}</a></summary>

<!-- Mandatory blank line-->
<span class="description">{{ .Params.description }}</span>
<span class="iscsc-description">{{ .Params.description }}</span>

</details>
8 changes: 4 additions & 4 deletions src/layouts/resources/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
{{ if .Site.Params.light_dark }}
{{ partial "light_dark.html" . }}
{{ end }}
<div class="post">
<div class="page">
<h1 class="page-title">{{ .Title }}</h1>
<span class="description">{{ .Params.description }}</span>
<span class="iscsc-description">{{ .Params.description }}</span>

{{ with .Sections }}
<h2 class="page-title">Sections</h2>
<h2>Sections</h2>
{{ range . }}
{{ partial "subsection.html" . }}
{{ end }}
{{ end }}

{{ with .RegularPages }}
<h2 class="page-title">Pages</h2>
<h2>Pages</h2>
{{ range . }}
This is a Page: {{ . }} of type {{ .Type }} in section {{ .Section }} <br><br>
{{ partial "resource.html" . }}
Expand Down

0 comments on commit f501711

Please sign in to comment.