diff --git a/assets/css/app.scss b/assets/css/app.scss index 3f138fe..671d599 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -496,7 +496,7 @@ footer[role="tools"]{ z-index: 9; background-color: $gris; padding:1.2em $side-padding; - max-height: $list-item-h * 3; + max-height: $list-item-h * 5; @include accordeon-transition($list-item-h * 3); >header{ .search-keys{ @@ -538,18 +538,20 @@ footer[role="tools"]{ article.result.item{ header{ h1{ - font-size: 0.882em; - font-weight: normal; - margin:0 0 0.5em 0; + @include title3black; + font-weight: 600; + } + h2{ + @include title3black; } } - .extract{ - p{ - font-size: 0.882em; - margin:0; - } + .preview{ + font-size: 0.882em; + margin:0; code{ + @include fontserif; background-color: lighten(desaturate($rouge,20%), 20%); + padding:0 0.2em; } } } diff --git a/src/components/Content/EdText.vue b/src/components/Content/EdText.vue index 5882794..0761f9e 100644 --- a/src/components/Content/EdText.vue +++ b/src/components/Content/EdText.vue @@ -57,22 +57,27 @@ export default { for (var i = 0; i < links.length; i++) { // console.log(`link ${i}:`, links[i]) linkparts = RegExp(/(.+)<\/a>/g).exec(links[i], 'g') - index = linkparts[3] - uuid = linkparts[2].replace('#', '') - newlink = `${linkparts[4]}` + - `` + - `` - // console.log('newlink', newlink) - this.html = this.html.replace(links[i], newlink) + // console.log('linkparts', linkparts) + if (!linkparts) { + console.warn(`link ${i} malformed:`, links[i]) + } else { + index = linkparts[3] + uuid = linkparts[2].replace('#', '') + newlink = `${linkparts[4]}` + + `` + + `` + // console.log('newlink', newlink) + this.html = this.html.replace(links[i], newlink) + } } // console.log('this.html', this.html) } diff --git a/src/components/Content/ResultItem.vue b/src/components/Content/ResultItem.vue index a251801..984b352 100644 --- a/src/components/Content/ResultItem.vue +++ b/src/components/Content/ResultItem.vue @@ -3,14 +3,22 @@ + + + - + -