mirror of https://github.com/jpanther/congo.git
Compare commits
6 Commits
a595172fb2
...
f0302034e0
Author | SHA1 | Date |
---|---|---|
Wolf Noble | f0302034e0 | |
James Panther | 9c54b590ec | |
James Panther | 99618781bc | |
James Panther | 928aa0ed51 | |
Ryan Gibson | 00ac16f3ad | |
Wolf Noble | 843506a7f2 |
|
@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
### Fixed
|
||||
|
||||
- Hamburger menu is not dismissed when links are clicked ([#705](https://github.com/jpanther/congo/pull/705))
|
||||
- KaTeX, table and code elements wider than the page are not formatted correctly ([#753](https://github.com/jpanther/congo/pull/753))
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -1188,8 +1188,8 @@ body:has(#menu-controller:checked) {
|
|||
.copy-button {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
z-index: 10;
|
||||
width: 5rem;
|
||||
cursor: pointer;
|
||||
|
@ -1237,6 +1237,28 @@ body:has(#menu-controller:checked) {
|
|||
opacity: 0.05;
|
||||
}
|
||||
|
||||
/* Fix long KaTeX equations on mobile (see https://katex.org/docs/issues.html#css-customization) */
|
||||
|
||||
.katex-display {
|
||||
overflow: auto hidden;
|
||||
}
|
||||
|
||||
/* Fix long tables breaking out of article on mobile */
|
||||
|
||||
table {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Fix long inline code sections breaking out of article on mobile */
|
||||
|
||||
code {
|
||||
word-wrap: break-word;
|
||||
/* All browsers since IE 5.5+ */
|
||||
overflow-wrap: break-word;
|
||||
/* Renamed property in CSS3 draft spec */
|
||||
}
|
||||
|
||||
/* -- Chroma Highlight -- */
|
||||
|
||||
/* Background */
|
||||
|
|
|
@ -67,7 +67,7 @@ body:has(#menu-controller:checked) {
|
|||
|
||||
.toc ul,
|
||||
.toc li {
|
||||
@apply list-none px-0 leading-snug;
|
||||
@apply px-0 leading-snug list-none;
|
||||
}
|
||||
.toc ul ul {
|
||||
@apply ps-4;
|
||||
|
@ -90,7 +90,7 @@ body:has(#menu-controller:checked) {
|
|||
@apply visible;
|
||||
}
|
||||
.copy-button {
|
||||
@apply invisible absolute right-0 top-0 z-10 w-20 cursor-pointer whitespace-nowrap rounded-bl-md rounded-tr-md bg-neutral-200 py-1 font-mono text-sm text-neutral-700 opacity-90 dark:bg-neutral-600 dark:text-neutral-200;
|
||||
@apply absolute top-0 right-0 z-10 invisible w-20 py-1 font-mono text-sm cursor-pointer whitespace-nowrap rounded-bl-md rounded-tr-md bg-neutral-200 text-neutral-700 opacity-90 dark:bg-neutral-600 dark:text-neutral-200;
|
||||
}
|
||||
.copy-button:hover,
|
||||
.copy-button:focus,
|
||||
|
@ -102,23 +102,40 @@ body:has(#menu-controller:checked) {
|
|||
@apply absolute -z-10 opacity-5;
|
||||
}
|
||||
|
||||
/* Fix long KaTeX equations on mobile (see https://katex.org/docs/issues.html#css-customization) */
|
||||
.katex-display {
|
||||
overflow: auto hidden;
|
||||
}
|
||||
|
||||
/* Fix long tables breaking out of article on mobile */
|
||||
table {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* Fix long inline code sections breaking out of article on mobile */
|
||||
code {
|
||||
word-wrap: break-word; /* All browsers since IE 5.5+ */
|
||||
overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */
|
||||
}
|
||||
|
||||
/* -- Chroma Highlight -- */
|
||||
/* Background */
|
||||
.chroma {
|
||||
@apply rounded-md bg-neutral-50 py-3 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200;
|
||||
@apply py-3 rounded-md bg-neutral-50 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200;
|
||||
}
|
||||
.chroma pre {
|
||||
@apply m-0 p-0;
|
||||
@apply p-0 m-0;
|
||||
}
|
||||
/* LineTable */
|
||||
.chroma .lntable {
|
||||
@apply m-0 block w-auto overflow-auto text-base;
|
||||
@apply block w-auto m-0 overflow-auto text-base;
|
||||
}
|
||||
/* LineNumbersTable */
|
||||
/* LineNumbers */
|
||||
.chroma .lnt,
|
||||
.chroma .ln {
|
||||
@apply mr-2 px-2 text-neutral-600 dark:text-neutral-300;
|
||||
@apply px-2 mr-2 text-neutral-600 dark:text-neutral-300;
|
||||
}
|
||||
.chroma .lntd {
|
||||
@apply p-0 align-top;
|
||||
|
@ -280,7 +297,7 @@ body:has(#menu-controller:checked) {
|
|||
}
|
||||
/* CommentHashbang */
|
||||
.chroma .ch {
|
||||
@apply font-semibold italic text-neutral-500 dark:text-neutral-400;
|
||||
@apply italic font-semibold text-neutral-500 dark:text-neutral-400;
|
||||
}
|
||||
/* GenericEmph */
|
||||
.chroma .ge {
|
||||
|
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 38 KiB |
|
@ -20,8 +20,8 @@ fingerprintAlgorithm = "sha256"
|
|||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
||||
# logo = "img/logo.jpg"
|
||||
# logoDark = "img/dark-logo.jpg"
|
||||
logo = "img/logo.jpg"
|
||||
logoDark = "img/dark-logo.svg"
|
||||
showTitle = true
|
||||
|
||||
[footer]
|
||||
|
|
|
@ -1,32 +1,30 @@
|
|||
{{- if .Site.Params.header.logo }}
|
||||
{{- $logo := resources.Get .Site.Params.header.logo }}
|
||||
{{- $logo_dark := resources.Get .Site.Params.header.logoDark }}
|
||||
{{- if $logo }}
|
||||
<a href="{{ "" | relLangURL }}" class="mr-2">
|
||||
<img
|
||||
src="{{ $logo.RelPermalink }}"
|
||||
width="{{ div $logo.Width 2 }}"
|
||||
height="{{ div $logo.Height 2 }}"
|
||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
||||
alt="{{ .Site.Title }}"
|
||||
/>
|
||||
{{- if $logo_dark }}
|
||||
<img
|
||||
src="{{ $logo_dark.RelPermalink }}"
|
||||
width="{{ div $logo_dark.Width 2 }}"
|
||||
height="{{ div $logo_dark.Height 2 }}"
|
||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
||||
alt="{{ .Site.Title }}"
|
||||
/>
|
||||
{{- end}}
|
||||
{{- if $.Page.Site.Params.header.logo }}
|
||||
{{- $logo := resources.Get $.Page.Site.Params.header.logo }}
|
||||
{{- $logo_dark := resources.Get $.Page.Site.Params.header.logoDark }}
|
||||
{{- $logoAlt := $.Page.Site.Title -}}
|
||||
{{- $logoClass := "max-h-[10rem] max-w-[10rem] object-scale-down object-left flex" -}}
|
||||
{{- $logoDarkClass := (print $logoClass " hidden dark:flex") -}}
|
||||
{{- if $logo_dark -}}
|
||||
{{- $logoClass = (print $logoClass " dark:hidden" ) -}}
|
||||
{{- end }}
|
||||
{{- if or $logo $logo_dark -}}
|
||||
<a href="{{ "" | relLangURL }}" class="mr-2">
|
||||
{{- end }}
|
||||
{{- with $logo }}
|
||||
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoClass "lazy" false "webp" false ) -}}
|
||||
{{- end -}}
|
||||
{{- with $logo_dark }}
|
||||
{{- partial "picture.html" (dict "img" . "alt" $logoAlt "class" $logoDarkClass "lazy" false "webp" false ) -}}
|
||||
{{- end -}}
|
||||
{{- if or $logo $logo_dark -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Site.Params.header.showTitle | default true }}
|
||||
{{- if $.Page.Site.Params.header.showTitle | default true }}
|
||||
<a
|
||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||
rel="me"
|
||||
href="{{ "" | relLangURL }}"
|
||||
>{{ .Site.Title | markdownify | emojify }}</a
|
||||
>
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Reference in New Issue