From 234ae70afc1cfcf869c6bed7ce1e16b9a1fa3cd8 Mon Sep 17 00:00:00 2001 From: Daniel Morgenstern Date: Sat, 3 Nov 2018 21:47:07 +0100 Subject: [PATCH] Style polish: Icons, code highlighting, margins, positions --- src/App.vue | 12 +++++--- src/components/CodeBlock.vue | 23 +++++++++++---- src/plugins/vuetify.js | 7 +++++ src/views/PackageDetail.vue | 56 ++++++++++++++++++++---------------- 4 files changed, 64 insertions(+), 34 deletions(-) diff --git a/src/App.vue b/src/App.vue index e1dd336..350afe6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -403,6 +403,11 @@ a, } } +td, +th { + vertical-align: top; +} + .v-icon { vertical-align: baseline; @@ -436,9 +441,8 @@ a, } } -pre { - white-space: pre-wrap; - word-break: break-all; +table.package-detail__scripts { + width: 100%; } code, @@ -473,7 +477,7 @@ kbd { } code.hljs { - white-space: pre; + white-space: pre-wrap; &.bash, &.language-bash { diff --git a/src/components/CodeBlock.vue b/src/components/CodeBlock.vue index d1cc5ba..a4c1d68 100644 --- a/src/components/CodeBlock.vue +++ b/src/components/CodeBlock.vue @@ -70,7 +70,7 @@ export default class CodeBlock extends Vue { } -