From d4dfdc073f695f306ecb2b3390e3823584801690 Mon Sep 17 00:00:00 2001 From: Tommy Vedvik Date: Wed, 27 Feb 2019 09:13:03 +0100 Subject: [PATCH] div updates --- src/assets/style/_base.scss | 9 ++++----- src/components/Author.vue | 15 +++++++++++++-- src/components/PostCard.vue | 10 ++++++---- src/components/PostMeta.vue | 16 ++++++++++++++++ src/layouts/Default.vue | 2 +- src/templates/Post.vue | 18 ++++++++++++------ 6 files changed, 52 insertions(+), 18 deletions(-) create mode 100644 src/components/PostMeta.vue diff --git a/src/assets/style/_base.scss b/src/assets/style/_base.scss index 2677b57..bd3afdb 100644 --- a/src/assets/style/_base.scss +++ b/src/assets/style/_base.scss @@ -8,7 +8,7 @@ body { background-color: var(--bg-color); color: var(--body-color); - transition: color 1s, background-color .5s; + transition: color .6s, background-color .6s; font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; margin:0; padding:0; @@ -17,21 +17,20 @@ body { a:not(.button) { color: var(--link-color); - transition: color 1s; - + transition: color .6s; &:hover { opacity: .8; } } h1,h2,h3,h4,h5,h6 { - transition: color 1s; + transition: color .6s; color: var(--title-color); } .bg-highlight { background-color: var(--bg-highlight-color); - transition: background-color .5s; + transition: background-color .6s; padding: var(--space); border-radius: 5px; box-shadow: 1px 1px 5px 0 rgba(0,0,0,.02), 1px 1px 15px 0 rgba(0,0,0,.03); diff --git a/src/components/Author.vue b/src/components/Author.vue index 56f0856..a62039a 100644 --- a/src/components/Author.vue +++ b/src/components/Author.vue @@ -1,8 +1,12 @@ @@ -30,8 +34,15 @@ export default { opacity: .8; } - &__siteTitle { + &__site-title { font-size: 1.5em; } + + &__links { + margin-top: -.5em; + a { + margin: 0 .5em; + } + } } \ No newline at end of file diff --git a/src/components/PostCard.vue b/src/components/PostCard.vue index 263f27e..2ddf672 100644 --- a/src/components/PostCard.vue +++ b/src/components/PostCard.vue @@ -1,16 +1,18 @@ diff --git a/src/components/PostMeta.vue b/src/components/PostMeta.vue new file mode 100644 index 0000000..ef0ab90 --- /dev/null +++ b/src/components/PostMeta.vue @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/layouts/Default.vue b/src/layouts/Default.vue index d5bf3d6..3721db3 100644 --- a/src/layouts/Default.vue +++ b/src/layouts/Default.vue @@ -4,7 +4,7 @@
diff --git a/src/templates/Post.vue b/src/templates/Post.vue index 1277832..f6ed517 100644 --- a/src/templates/Post.vue +++ b/src/templates/Post.vue @@ -2,12 +2,12 @@

{{ $page.post.title }}

-

Posted 19. February 2019. 3 min read

+
- +