Push URL for page/post edit

- Style tweaks on devotion theme
This commit is contained in:
Daniel J. Summers 2022-06-03 07:10:55 -04:00
parent 7a1d438d68
commit 2a5afc536e
5 changed files with 26 additions and 19 deletions

View File

@ -9,6 +9,7 @@ let private themes () =
Directory.EnumerateDirectories "themes" Directory.EnumerateDirectories "themes"
|> Seq.map (fun it -> it.Split Path.DirectorySeparatorChar |> Array.last) |> Seq.map (fun it -> it.Split Path.DirectorySeparatorChar |> Array.last)
|> Seq.filter (fun it -> it <> "admin") |> Seq.filter (fun it -> it <> "admin")
|> Seq.sort
|> Seq.map (fun it -> KeyValuePair.Create (it, it)) |> Seq.map (fun it -> KeyValuePair.Create (it, it))
|> Array.ofSeq |> Array.ofSeq

View File

@ -3,7 +3,7 @@
"hostname": "data02.bitbadger.solutions", "hostname": "data02.bitbadger.solutions",
"database": "myWebLog_dev" "database": "myWebLog_dev"
}, },
"Generator": "myWebLog 2.0-alpha28", "Generator": "myWebLog 2.0-alpha29",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"MyWebLog.Handlers": "Debug" "MyWebLog.Handlers": "Debug"

View File

@ -1,6 +1,6 @@
<h2 class="my-3">{{ page_title }}</h2> <h2 class="my-3">{{ page_title }}</h2>
<article> <article>
<form action="{{ "admin/page/save" | relative_link }}" method="post"> <form action="{{ "admin/page/save" | relative_link }}" method="post" hx-push-url="true">
<input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}"> <input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}">
<input type="hidden" name="pageId" value="{{ model.page_id }}"> <input type="hidden" name="pageId" value="{{ model.page_id }}">
<div class="container"> <div class="container">

View File

@ -1,6 +1,6 @@
<h2 class="my-3">{{ page_title }}</h2> <h2 class="my-3">{{ page_title }}</h2>
<article> <article>
<form action="{{ "admin/post/save" | relative_link }}" method="post"> <form action="{{ "admin/post/save" | relative_link }}" method="post" hx-push-url="true">
<input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}"> <input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}">
<input type="hidden" name="postId" value="{{ model.post_id }}"> <input type="hidden" name="postId" value="{{ model.post_id }}">
<div class="container"> <div class="container">

View File

@ -23,12 +23,17 @@
--audio-bkg-color: hsl(0, 0%, 10%); --audio-bkg-color: hsl(0, 0%, 10%);
--audio-text-color: hsl(0, 0%, 50%); --audio-text-color: hsl(0, 0%, 50%);
} }
blockquote.bible { blockquote {
background-color: var(--bkg-color); background-color: var(--bkg-color);
background-image: linear-gradient(hsl(0, 0%, 85%), hsl(0, 0%, 85%)), url('../img/paper.png') repeat; background-image: linear-gradient(hsl(0, 0%, 85%), hsl(0, 0%, 85%)), url('../img/paper.png') repeat;
background-blend-mode: soft-light; background-blend-mode: soft-light;
color: hsl(0, 0%, 95%); color: hsl(0, 0%, 95%);
} }
blockquote.standard {
background: unset;
color: unset;
border-top: none;
}
.ref { .ref {
text-shadow: white 0 0 6px, white 0 0 6px, white 0 0 6px, white 0 0 6px; text-shadow: white 0 0 6px, white 0 0 6px, white 0 0 6px, white 0 0 6px;
} }
@ -176,20 +181,24 @@ hr.sidebar-sep {
background-color: var(--accent-color); background-color: var(--accent-color);
} }
blockquote { blockquote {
margin: 1rem 2rem 1rem 1rem; margin: 1rem 2rem;
border-left: solid 3px var(--accent-color); /* from bible */
padding-left: 1rem;
}
blockquote.bible {
padding: 11px; padding: 11px;
margin-left: 2rem;
border: 0; border: 0;
background: var(--bkg-color) url('img/paper.png') repeat; background: var(--bkg-color) url('img/paper.png') repeat;
font-family: Quicksand, serif; font-family: Quicksand, serif;
border-top: solid 1px black; border-top: solid 1px black;
display: flow-root; display: flow-root;
font-size: 1.2rem;
} }
blockquote.bible cite { blockquote.standard {
margin: 1rem 2rem 1rem 1rem;
border-left: solid 3px var(--accent-color);
}
blockquote p.cite {
margin-bottom: 0;
}
blockquote cite {
display: block; display: block;
padding-right: 11px; padding-right: 11px;
text-align: right; text-align: right;
@ -204,7 +213,7 @@ blockquote.bible cite {
.ref { .ref {
color: red; color: red;
} }
blockquote.bible sup { blockquote sup {
color: var(--superscript-color); color: var(--superscript-color);
padding-right: .35rem; padding-right: .35rem;
} }
@ -214,13 +223,10 @@ blockquote.bible sup {
.u { .u {
text-decoration: underline; text-decoration: underline;
} }
blockquote { blockquote.standard footer cite {
font-size: 1.2rem;
}
blockquote footer cite {
font-style: normal; font-style: normal;
} }
blockquote footer cite::before { blockquote.standard footer cite::before {
content: ", "; content: ", ";
} }
cite { cite {
@ -270,9 +276,9 @@ h1 {
margin-bottom: 1.2rem; margin-bottom: 1.2rem;
} }
.item-heading { .item-heading {
margin: -.4rem; margin: -.4rem -.4rem .4rem -.4rem;
margin-bottom: .4rem;
border-bottom: solid 2px var(--link-color); border-bottom: solid 2px var(--link-color);
padding-top: .4rem;
padding-bottom: .2rem; padding-bottom: .2rem;
text-align: center; text-align: center;
background-color: var(--heading-bkg-color); background-color: var(--heading-bkg-color);