Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
92486ab2
Commit
92486ab2
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/DictionaryView.vue
+8
-3
8 additions, 3 deletions
src/components/DictionaryView.vue
src/components/SearchResults.vue
+5
-1
5 additions, 1 deletion
src/components/SearchResults.vue
src/main.js
+2
-2
2 additions, 2 deletions
src/main.js
with
15 additions
and
6 deletions
src/components/DictionaryView.vue
+
8
−
3
View file @
92486ab2
...
@@ -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
:
5
0px
;
padding-top
:
1
0px
;
}
}
.v-label
span
{
.v-label
span
{
...
...
This diff is collapsed.
Click to expand it.
src/components/SearchResults.vue
+
5
−
1
View file @
92486ab2
<
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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
2
−
2
View file @
92486ab2
...
@@ -15,8 +15,8 @@ Vue.use(VuePlausible, {
...
@@ -15,8 +15,8 @@ Vue.use(VuePlausible, {
})
})
Vue
.
use
(
VueMq
,
{
Vue
.
use
(
VueMq
,
{
breakpoints
:
{
breakpoints
:
{
mobile
:
4
5
0
,
mobile
:
4
7
0
,
tablet
:
9
00
,
tablet
:
7
00
,
laptop
:
1250
,
laptop
:
1250
,
desktop
:
Infinity
desktop
:
Infinity
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment