mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
A little bit of styling on the search page
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -68,7 +68,9 @@
|
|||||||
<div id="searchcontrol" class="container-normal">
|
<div id="searchcontrol" class="container-normal">
|
||||||
{{- template "_heading" $model.parameters -}}
|
{{- template "_heading" $model.parameters -}}
|
||||||
<div id="searchform" class="border-l border-zinc-300 px-8 py-10 relative">
|
<div id="searchform" class="border-l border-zinc-300 px-8 py-10 relative">
|
||||||
{{- template "_musenalmidbox" Arr $model.parameters.AlmString "baende" -}}
|
{{- if not $model.parameters.Extended -}}
|
||||||
|
{{- template "_musenalmidbox" Arr $model.parameters.AlmString "beitraege" -}}
|
||||||
|
{{- end -}}
|
||||||
<form
|
<form
|
||||||
id="simplesearchform"
|
id="simplesearchform"
|
||||||
class="w-full font-serif"
|
class="w-full font-serif"
|
||||||
|
|||||||
@@ -69,7 +69,9 @@
|
|||||||
<div id="searchcontrol" class="container-normal">
|
<div id="searchcontrol" class="container-normal">
|
||||||
{{- template "_heading" $model.parameters -}}
|
{{- template "_heading" $model.parameters -}}
|
||||||
<div id="searchform" class="border-l border-zinc-300 px-8 py-10 relative">
|
<div id="searchform" class="border-l border-zinc-300 px-8 py-10 relative">
|
||||||
{{- template "_musenalmidbox" Arr $model.parameters.AlmString "beitraege" -}}
|
{{- if not $model.parameters.Extended -}}
|
||||||
|
{{- template "_musenalmidbox" Arr $model.parameters.AlmString "beitraege" -}}
|
||||||
|
{{- end -}}
|
||||||
<form
|
<form
|
||||||
id="simplesearchform"
|
id="simplesearchform"
|
||||||
class="w-full font-serif"
|
class="w-full font-serif"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div id="searchheading" class="flex flex-row justify-between min-h-14 items-end relative">
|
<div id="searchheading" class="flex flex-row justify-between min-h-14 items-end relative">
|
||||||
<nav id="searchnav" class="flex flex-row items-end">
|
<nav id="searchnav" class="flex flex-row items-end">
|
||||||
<div
|
<div
|
||||||
class="align-bottom text-lg h-min self-end pb-0.5 italic font-bold
|
class="align-bottom text-xl h-min self-end pb-0.5 italic font-bold
|
||||||
text-zinc-800">
|
text-zinc-800">
|
||||||
Suche nach:
|
Suche nach:
|
||||||
</div>
|
</div>
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
-->
|
-->
|
||||||
<a
|
<a
|
||||||
href="/suche/baende"
|
href="/suche/baende"
|
||||||
class="block no-underline"
|
class="block no-underline text-xl"
|
||||||
{{ if eq $model.Collection "baende" }}aria-current="page"{{- end -}}
|
{{ if eq $model.Collection "baende" }}aria-current="page"{{- end -}}
|
||||||
>Bänden</a
|
>Bänden</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/suche/beitraege"
|
href="/suche/beitraege"
|
||||||
class="block no-underline"
|
class="block no-underline text-xl"
|
||||||
{{ if eq $model.Collection "beitraege" }}aria-current="page"{{- end -}}
|
{{ if eq $model.Collection "beitraege" }}aria-current="page"{{- end -}}
|
||||||
>Beiträgen</a
|
>Beiträgen</a
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,21 +1,23 @@
|
|||||||
{{ $p := index . 0 }}
|
{{ $p := index . 0 }}
|
||||||
{{ $t := index . 1 }}
|
{{ $t := index . 1 }}
|
||||||
<form
|
<div class="flex flex-row gap-x-3 max-w-[48rem]">
|
||||||
id="lookupform"
|
<form
|
||||||
class="w-full font-serif grid grid-cols-12 gap-x-4 mb-4"
|
id="lookupform"
|
||||||
method="get"
|
class="w-full font-serif grid grid-cols-12 gap-x-4 mb-4"
|
||||||
action="/suche/{{- $t -}}"
|
method="get"
|
||||||
autocomplete="off">
|
action="/suche/{{- $t -}}"
|
||||||
<label for="almstring" class="col-span-3 align-middle hidden">Almanach-Nummer:</label>
|
autocomplete="off">
|
||||||
<input
|
<label for="almstring" class="col-span-3 align-middle hidden">Almanach-Nummer:</label>
|
||||||
autocomplete="off"
|
<input
|
||||||
minlength="1"
|
autocomplete="off"
|
||||||
required="true"
|
minlength="1"
|
||||||
type="search"
|
required="true"
|
||||||
name="almstring"
|
type="search"
|
||||||
id="almstring"
|
name="almstring"
|
||||||
value="{{ $p }}"
|
id="almstring"
|
||||||
placeholder="Alm-Nummer"
|
value="{{ $p }}"
|
||||||
class="w-full col-span-3 placeholder:italic" />
|
placeholder="Alm-Nummer"
|
||||||
<button id="submitbutton" type="submit" class="col-span-2">Nachschlagen</button>
|
class="w-full col-span-3 placeholder:italic placeholder:font-sans" />
|
||||||
</form>
|
<button id="submitbutton" type="submit" class="col-span-2">Nachschlagen</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -3,22 +3,28 @@
|
|||||||
{{ $q := index . 2 }}
|
{{ $q := index . 2 }}
|
||||||
|
|
||||||
|
|
||||||
<label for="q" class="hidden">Suchbegriffe</label>
|
<div class="w-full flex flex-row gap-x-3 mb-3 justify-between" id="simplesearchbox">
|
||||||
<input
|
<div class="flex flex-row justify-between gap-x-3 w-full">
|
||||||
{{ if $q }}value="{{ $q }}"{{- end }}
|
<label for="q" class="hidden">Suchbegriffe</label>
|
||||||
type="search"
|
<input
|
||||||
name="q"
|
{{ if $q }}value="{{ $q }}"{{- end }}
|
||||||
minlength="3"
|
type="search"
|
||||||
required
|
name="q"
|
||||||
placeholder="Suchbegriff (min. 3 Zeichen)"
|
minlength="3"
|
||||||
class="w-full col-span-8
|
required
|
||||||
placeholder:italic" />
|
placeholder="Suchbegriff (min. 3 Zeichen)"
|
||||||
<button id="submitbutton" type="submit" class="col-span-2">Suchen</button>
|
class="w-full grow
|
||||||
|
placeholder:italic font-serif placeholder:font-sans" />
|
||||||
|
<button id="submitbutton" type="submit" class="min-w-36" form="simplesearchform">Suchen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ if $extendable }}
|
{{ if $extendable }}
|
||||||
<a
|
<a
|
||||||
href="/suche/{{ $parameters.Collection }}?extended=true"
|
href="/suche/{{ $parameters.Collection }}?extended=true"
|
||||||
class="whitespace-nowrap self-end block col-span-2">
|
class="whitespace-nowrap self-end block ">
|
||||||
<i class="ri-arrow-right-long-line"></i> Erweiterte Suche
|
<i class="ri-arrow-right-long-line"></i> Erweiterte Suche
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script></script>
|
||||||
|
|||||||
@@ -277,20 +277,20 @@
|
|||||||
@apply bg-zinc-300 w-[30%] absolute bottom-0 right-[70%] h-[1px] z-10;
|
@apply bg-zinc-300 w-[30%] absolute bottom-0 right-[70%] h-[1px] z-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchform input {
|
#searchform input:not(#serachform #simplesearchbox input) {
|
||||||
@apply w-full mx-auto px-2 py-1 border-zinc-600 border;
|
@apply w-full mx-auto px-2 py-1 border-zinc-600 border;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchform button {
|
#searchform button {
|
||||||
@apply bg-stone-100 text-base px-2.5 py-1 rounded font-sans transition-all duration-75;
|
@apply bg-stone-900 text-gray-200 text-base min-w-36 rounded font-sans transition-all duration-75;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchform button:hover:not(:disabled) {
|
#searchform button:hover:not(:disabled) {
|
||||||
@apply cursor-pointer bg-stone-200;
|
@apply cursor-pointer bg-slate-800 text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchform button:disabled {
|
#searchform button:disabled {
|
||||||
@apply bg-stone-300 text-gray-500 cursor-not-allowed;
|
@apply bg-stone-400 text-white cursor-not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchform .selectgroup {
|
#searchform .selectgroup {
|
||||||
@@ -310,7 +310,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#searchform .searchformcolumn {
|
#searchform .searchformcolumn {
|
||||||
@apply grid grid-cols-12 gap-y-3 w-full gap-x-4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#searchfilter .filter-list-list {
|
#searchfilter .filter-list-list {
|
||||||
@@ -445,15 +444,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#extendedsearchcolumn button {
|
#extendedsearchcolumn button {
|
||||||
@apply bg-stone-100 text-base px-2.5 py-1 rounded font-sans transition-all duration-75 col-start-4 col-span-4;
|
@apply col-start-4 col-span-4 py-2;
|
||||||
}
|
|
||||||
|
|
||||||
#extendedsearchcolumn button:hover:not(:disabled) {
|
|
||||||
@apply cursor-pointer bg-stone-200;
|
|
||||||
}
|
|
||||||
|
|
||||||
#extendedsearchcolumn button:disabled {
|
|
||||||
@apply bg-stone-300 text-gray-500 cursor-not-allowed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#extendedsearchcolumn label {
|
#extendedsearchcolumn label {
|
||||||
|
|||||||
Reference in New Issue
Block a user