Skip to content
Snippets Groups Projects
Commit 92486ab2 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#288 månedens ord + søkeresultater i én kolonne for mobil/tablet

parent 7757732c
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<template v-slot:label> <template v-slot:label>
<span> <span>
<mq-layout mq="mobile">begge</mq-layout> <mq-layout mq="mobile">begge</mq-layout>
<mq-layout mq="tablet+">begge ordbøkene</mq-layout> <mq-layout mq="tablet">begge</mq-layout>
<mq-layout mq="laptop+">begge ordbøkene</mq-layout>
</span> </span>
</template> </template>
</v-radio> </v-radio>
...@@ -43,7 +44,7 @@ ...@@ -43,7 +44,7 @@
<Article :key="article_key" :article="article" @article-click="article_link_click" /> <Article :key="article_key" :article="article" @article-click="article_link_click" />
</div> </div>
<div class="welcome" v-if="! (article || error || search_results.length || waiting)"> <div class="welcome" v-if="! (article || error || search_results.length || waiting)">
<div class="monthly"> <div class="monthly" :class="$mq">
<div> <div>
<Article :article="monthly_bm" @article-click="article_link_click" /> <Article :article="monthly_bm" @article-click="article_link_click" />
</div> </div>
...@@ -303,6 +304,10 @@ div.monthly > div { ...@@ -303,6 +304,10 @@ div.monthly > div {
flex: 50%; flex: 50%;
} }
div.monthly.tablet, div.monthly.mobile {
flex-direction: column;
}
div.monthly article.bob .dict-label::before { div.monthly article.bob .dict-label::before {
content: "månedens "; content: "månedens ";
} }
...@@ -314,7 +319,7 @@ div.monthly article.nob .dict-label::before { ...@@ -314,7 +319,7 @@ div.monthly article.nob .dict-label::before {
.search_container { .search_container {
max-width: 1500px; max-width: 1500px;
padding-top: 50px; padding-top: 10px;
} }
.v-label span { .v-label span {
......
<template> <template>
<section id="search_results"> <section id="search_results">
<div class="flex-container"> <div class="flex-container" :class="$mq">
<ul class="hits" v-if="results_bob.length"> <ul class="hits" v-if="results_bob.length">
<li class="article_container" v-for="(result, index) in results_bob" :key="index + results_hash"> <li class="article_container" v-for="(result, index) in results_bob" :key="index + results_hash">
<Article :article="result" @article-click="article_link_click"> <Article :article="result" @article-click="article_link_click">
...@@ -63,6 +63,10 @@ export default { ...@@ -63,6 +63,10 @@ export default {
display: flex; display: flex;
} }
.flex-container.mobile, .flex-container.tablet {
flex-direction: column;
}
.flex-container > ul { .flex-container > ul {
padding: 0px !important; padding: 0px !important;
} }
......
...@@ -15,8 +15,8 @@ Vue.use(VuePlausible, { ...@@ -15,8 +15,8 @@ Vue.use(VuePlausible, {
}) })
Vue.use(VueMq, { Vue.use(VueMq, {
breakpoints: { breakpoints: {
mobile: 450, mobile: 470,
tablet: 900, tablet: 700,
laptop: 1250, laptop: 1250,
desktop: Infinity desktop: Infinity
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment