diff --git a/public/style.css b/public/style.css index dc275418..efd9dbbd 100644 --- a/public/style.css +++ b/public/style.css @@ -7167,6 +7167,7 @@ code { --site-width-wide: 68rem; --avatar-size-small: 1.5rem; --avatar-size-normal: 2.5rem; + --link-decoration: none; } /* src/rawdata/css/vars-light.css */ @@ -7261,9 +7262,16 @@ a.external::after, content: " 1"; vertical-align: middle; } +a:hover, +.link:hover { + text-decoration: var(--link-decoration); +} .link-normal { --link-color: var(--color); } +.link-underline { + --link-decoration: underline; +} b, strong { font-weight: 600; diff --git a/src/rawdata/css/core.css b/src/rawdata/css/core.css index bf1477bd..9bd76ece 100644 --- a/src/rawdata/css/core.css +++ b/src/rawdata/css/core.css @@ -24,12 +24,20 @@ a, content: " 1"; vertical-align: middle; } + + &:hover { + text-decoration: var(--link-decoration); + } } .link-normal { --link-color: var(--color); } +.link-underline { + --link-decoration: underline; +} + b, strong { font-weight: 600; diff --git a/src/rawdata/css/vars-common.css b/src/rawdata/css/vars-common.css index b3fbfa20..17d93553 100644 --- a/src/rawdata/css/vars-common.css +++ b/src/rawdata/css/vars-common.css @@ -16,4 +16,6 @@ --avatar-size-small: 1.5rem; --avatar-size-normal: 2.5rem; + + --link-decoration: none; } \ No newline at end of file diff --git a/src/templates/img/add-small.svg b/src/templates/img/add-small.svg new file mode 100644 index 00000000..b5b64301 --- /dev/null +++ b/src/templates/img/add-small.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/templates/img/delete.svg b/src/templates/img/delete.svg index 7d0fc587..372c9425 100644 --- a/src/templates/img/delete.svg +++ b/src/templates/img/delete.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + diff --git a/src/templates/src/blog_index.html b/src/templates/src/blog_index.html index ee25eb91..0c52f63a 100644 --- a/src/templates/src/blog_index.html +++ b/src/templates/src/blog_index.html @@ -39,41 +39,39 @@ {{ end }} {{ end }} -
-
-
-
- {{ if .CanCreatePost }} - {{ svg "add" }}Create Post - {{ end }} -
-
- {{ template "pagination.html" .Pagination }} +{{ if and (not .FirstPost) (not .Posts) }} +
There are no blog posts for this project yet.
+{{ else if .Posts }} +
+
+ {{ if gt .Pagination.Total 1 }} +
+
+
+
+ {{ template "pagination.html" .Pagination }} +
+
+
-
-
-
- {{ if .Posts }} -
+ {{ end }} +
{{ range .Posts }} {{ template "blog_list_item.html" . }} {{ end }}
- {{ else if not .FirstPost}} -
There are no blog posts for this project yet.
- {{ end }} -
-
-
- {{ if .CanCreatePost }} - {{ svg "add" }}Create Post - {{ end }} -
-
- {{ template "pagination.html" .Pagination }} + {{ if gt .Pagination.Total 1 }} +
+
+
+
+
+ {{ template "pagination.html" .Pagination }} +
+
-
+ {{ end }}
-
+{{ end }} {{ end }} diff --git a/src/templates/src/blog_post.html b/src/templates/src/blog_post.html index f3913311..98bf1301 100644 --- a/src/templates/src/blog_post.html +++ b/src/templates/src/blog_post.html @@ -14,9 +14,6 @@

{{ .Thread.Title }}

{{ .Author.Name }} — {{ timehtml (absoluteshortdate .PostDate) .PostDate }} - {{ if and $.User (or (eq .Author.ID $.User.ID) $.User.IsStaff) }} - (Edit, Delete) - {{ end }}
{{ end }} @@ -39,7 +36,7 @@

{{ .Thread.Title }}

Comments

{{ if .Project.HasBlog }} - {{ svg "add" }}Leave a Comment + {{ svg "add" }}Comment {{ end }}
diff --git a/src/templates/src/include/header-2024.html b/src/templates/src/include/header-2024.html index e42d9077..4f302009 100644 --- a/src/templates/src/include/header-2024.html +++ b/src/templates/src/include/header-2024.html @@ -75,18 +75,27 @@
-{{/* TODO: Re-enable breadcrumbs after fixing mobile */}} -{{ if and false .Header.Breadcrumbs (not .Header.SuppressBreadcrumbs) }} - - {{ svg "delete" }} + {{ svg "delete" }}