aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cameron <git@jasoncameron.dev>2025-04-19 16:03:11 -0400
committerGitHub <noreply@github.com>2025-04-19 16:03:11 -0400
commit6f652e711c93dbb7640dac19814edc59f73b6217 (patch)
treed601f53dc7fb29684985069b978ac065d85d2def
parent75b97eb03db9940eb43ccbaeacdda4cfc99ed778 (diff)
downloadanubis-6f652e711c93dbb7640dac19814edc59f73b6217.tar.xz
anubis-6f652e711c93dbb7640dac19814edc59f73b6217.zip
Use outline shorthand (#293)
* fix(xess): suppress Go inspection warning for boolean expressions Signed-off-by: Jason Cameron <git@jasoncameron.dev> * feat: use outline shorthand Signed-off-by: Jason Cameron <git@jasoncameron.dev> --------- Signed-off-by: Jason Cameron <git@jasoncameron.dev>
-rw-r--r--web/index.templ4
-rw-r--r--xess/xess.go1
2 files changed, 2 insertions, 3 deletions
diff --git a/web/index.templ b/web/index.templ
index 4eb1d45..989d717 100644
--- a/web/index.templ
+++ b/web/index.templ
@@ -42,10 +42,8 @@ templ base(title string, body templ.Component, challenge any, ogTags map[string]
border-radius: 1rem;
overflow: hidden;
margin: 1rem 0 2rem;
- outline-color: #b16286;
outline-offset: 2px;
- outline-style: solid;
- outline-width: 4px;
+ outline: #b16286 solid 4px;
}
.bar-inner {
diff --git a/xess/xess.go b/xess/xess.go
index 8f57d79..be5075e 100644
--- a/xess/xess.go
+++ b/xess/xess.go
@@ -24,6 +24,7 @@ var (
func init() {
Mount(http.DefaultServeMux)
+ //goland:noinspection GoBoolExpressions
if anubis.Version != "devel" {
URL = filepath.Join(filepath.Dir(URL), "xess.min.css")
}