From e256733c944b711227e9639097ee2fa73e21f127 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 18 Aug 2023 19:47:16 +0200 Subject: [PATCH] better search ui --- src/assets/main.scss | 96 +++++++++++++++++++++++++------------------- src/views/Search.vue | 5 ++- 2 files changed, 58 insertions(+), 43 deletions(-) diff --git a/src/assets/main.scss b/src/assets/main.scss index 96dc189..b63c8b2 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -487,59 +487,73 @@ body{ section.search{ @include main-cartouche(); - h2{ - font-weight: 400; - font-size: 1.323em; + header{ + flex: 0 0 auto; padding: 1em 0; - } - - form{ - display: flex; - flex-direction: column; - justify-content: flex-start; - align-items: flex-start; - &>*{ - flex: 0 1 auto; + h2{ + font-weight: 400; + font-size: 1.323em; + padding: 0 0 0.5em; } - .content-type-checkboxes{ - padding:1em 0; + form{ display: flex; - flex-direction: row; - label{ - padding: 0 1em 0 0.2em; + flex-direction: column; + justify-content: flex-start; + align-items: flex-start; + &>*{ + flex: 0 1 auto; + } + + .content-type-checkboxes{ + padding:1em 0; + display: flex; + flex-direction: row; + label{ + padding: 0 1em 0 0.2em; + } } } } - section.results{ - ul{ - margin:0; - padding:0; - li{ + main{ + flex: 1 1 auto; + overflow-y: auto; + section.results{ + ul{ margin:0; - padding:0 0 1em 0; - list-style: none; - - h1{ - // font-weight: 400; - // font-size: 1.323em; - font-size: 1em; - font-weight: 300; - // line-height: 1.4; - // - margin: 0; - cursor: pointer; - } - h2 { - font-size: 0.882em; - font-weight: 100; - margin: 0; - padding: 0; - cursor: pointer; + padding:0; + li{ + margin:0; + padding:0 0 1em 0; + list-style: none; + + h1{ + // font-weight: 400; + // font-size: 1.323em; + font-size: 1em; + font-weight: 300; + // line-height: 1.4; + // + margin: 0; + cursor: pointer; + } + h2 { + font-size: 0.882em; + font-weight: 100; + margin: 0; + padding: 0; + cursor: pointer; + } } } } + + } + + footer{ + flex: 0 0 auto; + } } diff --git a/src/views/Search.vue b/src/views/Search.vue index 3366a4b..91cbdef 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -24,6 +24,7 @@ export default { }, created () { console.log("search created"); + this.value = this.keys; this.content_type = this.contentTypeFilter; }, watch: { @@ -88,11 +89,11 @@ export default { -