From 57defcfab75859c444feb8af753a2b764cb6f64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 15 Nov 2024 23:36:19 +0100 Subject: [PATCH] theme: prepare for Prettier config #947 --- assets/css/auto.css | 7 ++++--- assets/css/format-print.css | 7 ++++--- assets/css/print.css | 4 ++-- assets/css/swagger.css | 10 +++++----- assets/css/theme-neon.css | 2 -- assets/css/theme-relearn.css | 7 +++---- layouts/partials/version.txt | 2 +- 7 files changed, 19 insertions(+), 20 deletions(-) diff --git a/assets/css/auto.css b/assets/css/auto.css index 9631756019..fe2da7eb42 100644 --- a/assets/css/auto.css +++ b/assets/css/auto.css @@ -1,3 +1,4 @@ -{{- $assetBusting := partialCached "assetbusting.gotmpl" . -}} -@import "{{ printf "%s-%s.css%s" .prefix .light $assetBusting }}" screen and (prefers-color-scheme: light); -@import "{{ printf "%s-%s.css%s" .prefix .dark $assetBusting }}" screen and (prefers-color-scheme: dark); +/* prettier-ignore {{ $assetBusting := partialCached "assetbusting.gotmpl" . -}} */ +@import '{{ printf "%s-%s.css%s" .prefix .light $assetBusting }}' screen and (prefers-color-scheme: light); +/* prettier-ignore */ +@import '{{ printf "%s-%s.css%s" .prefix .dark $assetBusting }}' screen and (prefers-color-scheme: dark); diff --git a/assets/css/format-print.css b/assets/css/format-print.css index 1e02789dcb..23897f0b4c 100644 --- a/assets/css/format-print.css +++ b/assets/css/format-print.css @@ -1,6 +1,7 @@ -{{- $assetBusting := partialCached "assetbusting.gotmpl" . -}} -@import "{{ printf "theme-%s.css%s" .themevariant.identifier $assetBusting }}"; -@import "{{ printf "chroma-%s.css%s" .themevariant.chroma $assetBusting }}"; +/* prettier-ignore {{ $assetBusting := partialCached "assetbusting.gotmpl" . -}} */ +@import '{{ printf "theme-%s.css%s" .themevariant.identifier $assetBusting }}'; +/* prettier-ignore */ +@import '{{ printf "chroma-%s.css%s" .themevariant.chroma $assetBusting }}'; #R-sidebar { display: none; diff --git a/assets/css/print.css b/assets/css/print.css index 54e795e663..3294d6f413 100644 --- a/assets/css/print.css +++ b/assets/css/print.css @@ -1,2 +1,2 @@ -{{- $assetBusting := partialCached "assetbusting.gotmpl" . -}} -@import "{{ printf "format-print.css%s" $assetBusting }}"; +/* prettier-ignore {{ $assetBusting := partialCached "assetbusting.gotmpl" . -}} */ +@import '{{ printf "format-print.css%s" $assetBusting }}'; diff --git a/assets/css/swagger.css b/assets/css/swagger.css index f493a6dbea..e1b377fbb0 100644 --- a/assets/css/swagger.css +++ b/assets/css/swagger.css @@ -1,8 +1,8 @@ -{{- $assetBusting := partialCached "assetbusting.gotmpl" . -}} -/* Styles to make Swagger-UI fit into our theme */ - -@import "{{ printf "fonts.css%s" $assetBusting }}"; -@import "{{ printf "variables.css%s" $assetBusting }}"; +/* styles to make Swagger-UI fit into our theme */ +/* prettier-ignore {{ $assetBusting := partialCached "assetbusting.gotmpl" . -}} */ +@import '{{ printf "fonts.css%s" $assetBusting }}'; +/* prettier-ignore */ +@import '{{ printf "variables.css%s" $assetBusting }}'; body{ line-height: 1.574; diff --git a/assets/css/theme-neon.css b/assets/css/theme-neon.css index 259c90822a..33d08858f0 100644 --- a/assets/css/theme-neon.css +++ b/assets/css/theme-neon.css @@ -311,5 +311,3 @@ above will not apply, so we have to repeat it here */ --ps-thumb-color: rgba( 208, 208, 208, 1 ); --ps-thumb-hover-color: rgba( 204, 204, 204, 1 ); } - -} diff --git a/assets/css/theme-relearn.css b/assets/css/theme-relearn.css index 2ef81790cc..dd645a9fbc 100644 --- a/assets/css/theme-relearn.css +++ b/assets/css/theme-relearn.css @@ -1,4 +1,3 @@ -{{- $assetBusting := partialCached "assetbusting.gotmpl" . -}} -/* this file is here for compatiblity with older installations - use theme-relearn-light instead */ -@import "{{ printf "theme-relearn-light.css%s" $assetBusting }}"; +/* this file is here for compatiblity with older installations; use theme-relearn-light instead */ +/* prettier-ignore {{ $assetBusting := partialCached "assetbusting.gotmpl" . -}} */ +@import '{{ printf "theme-relearn-light.css%s" $assetBusting }}'; diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index ef09838cb2..56a25dcae8 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.1.1 \ No newline at end of file +7.1.1+28fce6b04c414523280c53ee02f9f3a94d9d23da \ No newline at end of file