responsive almost done

This commit is contained in:
2020-07-27 19:18:07 +02:00
parent 2ce63fa320
commit 682d4686ad
13 changed files with 287 additions and 60 deletions
+14 -3
View File
@@ -2,8 +2,13 @@
<nav id="header-menu">
<ul v-if="corpusLoaded">
<li><router-link to="/corpus">Corpus</router-link></li>
<li>
<span>Indexs</span>
<li :class="{ opened: indexOpened }">
<span
@click.prevent="onClickIndex"
@keyup.enter="onClickIndex"
>
Indexs
</span>
<ul>
<li><router-link to="/nominum">Personnes</router-link></li>
<li><router-link to="/locorum">Lieux</router-link></li>
@@ -28,12 +33,18 @@ import { mapState } from 'vuex'
export default {
name: 'HeaderMenu',
data: () => ({
indexOpened: false
}),
computed: {
...mapState({
corpusLoaded: state => state.Corpus.corpusLoaded
})
},
methods: {
onClickIndex (e) {
console.log('onClickIndex')
this.indexOpened = !this.indexOpened
}
}
}
+3 -3
View File
@@ -6,9 +6,9 @@
class="row"
:class="{ loading: isloading }"
>
<header class="col-1">
<header class="small-col-12 med-col-1 large-col-1">
<h2>Resultats</h2>
<span class="search-keys">{{ searchedKeys }}</span><br>
<span class="search-keys">{{ searchedKeys }}</span>
<span v-if="resultsQuantity" class="results-count">{{ resultsCount }}</span>
<v-select
id="sorting"
@@ -21,7 +21,7 @@
@input="onSortingSelected"
/>
</header>
<section class="col-10 results-list">
<section class="small-col-12 med-col-10 large-col-10 results-list">
<div class="wrapper">
<ul v-if="results.length">
<li v-for="result in results" :key="result.uuid" class="result">
+4 -4
View File
@@ -1,7 +1,7 @@
<template>
<div id="search" class="col-11" :class="{ loading: isloading }">
<form class="search-form row">
<fieldset class="search">
<fieldset class="search small-col-10 med-col-2 large-col-2">
<div>
<label for="keys">Search</label>
<input
@@ -37,7 +37,7 @@
title="chargement"
/>
</fieldset>
<fieldset v-if="filters.persons.length" class="filters filters-nominum col-2">
<fieldset v-if="filters.persons.length" class="filters filters-nominum small-col-4 med-col-2 large-col-2">
<v-select
id="filters-nominum"
type="select"
@@ -50,7 +50,7 @@
@input="onFiltersNominumSelected"
/>
</fieldset>
<fieldset v-if="filters.places.length" class="filters filters-locorum col-2">
<fieldset v-if="filters.places.length" class="filters filters-locorum small-col-4 med-col-2 large-col-2">
<v-select
id="filters-locorum"
type="select"
@@ -63,7 +63,7 @@
@input="onFiltersLocorumSelected"
/>
</fieldset>
<fieldset v-if="filters.objects.length" class="filters filters-operum col-2">
<fieldset v-if="filters.objects.length" class="filters filters-operum small-col-4 med-col-2 large-col-2">
<v-select
id="filters-operum"
type="select"