Skip to content
Snippets Groups Projects
Commit cbf98126 authored by Petr Kalashnikov's avatar Petr Kalashnikov
Browse files

Merge remote-tracking branch 'origin/master' into sak346

parents ee7cb567 95167c66
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,6 @@ body {
}
a {
text-decoration: none;
}
h1 {
font-family: Inria Serif;
......@@ -83,6 +80,7 @@ h1 > a.xs, h1 > a.sm {
header > h1 > a {
color: var(--v-primary-base) !important;
text-decoration: none;
font-size: 48px;
margin: 0px;
}
......@@ -111,7 +109,7 @@ header > p {
text-decoration: none;
border-bottom: solid var(--v-primary-base) 2px;
font-size: 12px;
color: var(--v-primary-base);
color: var(--v-primary-base) !important;
}
header {
......@@ -131,6 +129,10 @@ footer a {
color: #ffffff !important;
}
a {
text-decoration: none;
}
header {
padding-top: 20px;
background-color: var(--v-tertiary-base);
......@@ -140,6 +142,11 @@ header {
font-size: 18px;
margin: 0px;
margin-bottom: 0px !important;
}
.sub-title a {
color: var(--v-primary-base) !important;
}
footer {
......
......@@ -27,8 +27,8 @@
</ul>
</section>
<div class="fade">
<router-link :to="link_to_self.ref" @click.native="details_click(link_to_self)">
Velg <img class="nav_arrow" src="../assets/arrow_right.svg">
<router-link class="choose" :to="link_to_self.ref" @click.native="details_click(link_to_self)">
Velg <v-icon large class="nav_arrow">arrow_right</v-icon>
</router-link>
</div>
</div>
......@@ -216,4 +216,26 @@ ul li.definition {
vertical-align: sub;
}
@media (hover: none) {
article a:not(.choose):not(.return_to_results a) {
text-decoration: underline;
}
}
@media (hover: hover) {
article a {
text-decoration: none;
}
article a:hover:not(.choose):not(.return_to_results a) {
text-decoration: underline;
}
}
.choose {
color: var(--v-primary-base) !important;
}
</style>
......@@ -82,6 +82,7 @@ export default {
font-size: 14px;
}
.article_footer {
color: var(--v-primary-base);
padding-top: 24px;
......
......@@ -103,7 +103,7 @@
let match = item[0]
let hit = {q: q, match: match, label: match, time: time}
hit.article_promise = self.api.get('articles?', {params: {lord: match, dict: self.$parent.lang}})
hit.article_promise = self.api.get('articles?', {params: {lord: match}})
hit.lang = item[1]
hits.push(hit)
......
......@@ -44,7 +44,7 @@
<div id="single_article_container" v-if="article">
<div class="return_to_results" v-if="search_results && search_results.length">
<router-link :to="article.source" @click.native="return_to_results()">
<img class="nav_arrow" src="../assets/arrow_left.svg">Tilbake til {{article.dictionary == 'bob' ? 'søkeresultater' : 'søkjeresultat'}}
<v-icon class="nav_arrow">arrow_left</v-icon>Tilbake til {{article.dictionary == 'bob' ? 'søkeresultater' : 'søkjeresultat'}}
</router-link>
</div>
<Article :key="article_key" :article="article" @article-click="article_link_click" />
......@@ -219,10 +219,13 @@ export default {
this.$router.push(source)
let unwrapped = []
for (const d in event.article_ids) {
event.article_ids[d].forEach(i => unwrapped.push({
dictionary: d,
id: i
}))
if (d == this.lang || this.lang == "bob,nob") {
event.article_ids[d].forEach(i => unwrapped.push({
dictionary: d,
id: i
}))
}
}
let self = this
......@@ -265,9 +268,6 @@ export default {
error: self.error
}, '')
})
} else {
this.waiting_for_articles = true
this.article = null
......@@ -282,11 +282,10 @@ export default {
}
},
update_lang_form: function (event) {
if (this.event) {
this.lang = event
if (this.event && !this.article) {
this.event.articles = null
this.select_result(this.event)
} else {
navigate_to_search(this, this.$router.history.current.params.word || this.$router.history.current.params.query)
}
},
article_link_click: function(item) {
......@@ -457,8 +456,17 @@ li.suggestion {
display: table-cell;
}
.return_to_results a {
color: var(--v-primary-base) !important;
}
.nav_arrow {
vertical-align: middle;
vertical-align: top !important;
color: var(--v-primary-base) !important;
}
.choose > .nav_arrow {
vertical-align: -30% !important;
}
</style>
......@@ -56,7 +56,7 @@ export default new Vuetify({
primary: '#560027',
secondary: '#BC477B',
tertiary: '#FDF4F5',
anchor: '#560027',
anchor: '#880E4F',
error: '#FDF4F5',
border: '#9E9E9E',
text: '#2c3e50'
......
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