From 37c766a802413426a598b7303ab763f398dd969f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 5 Jan 2019 00:08:45 +0000 Subject: [PATCH] Tweaks --- assets/js/components/Navbar.vue | 2 +- assets/sass/app.sass | 4 --- assets/sass/base/base.sass | 35 ------------------- assets/sass/base/images.sass | 14 -------- assets/sass/components/markdown.sass | 21 +++++++++++ source/_layouts/default.html.twig | 6 ++-- source/_layouts/page.html.twig | 5 --- source/_layouts/post.html.twig | 4 +-- source/_partials/availability.html.twig | 2 +- source/_partials/badges.html.twig | 2 +- source/_partials/blog/post-summary.html.twig | 14 ++++++++ source/_partials/layout/footer.html.twig | 6 ++-- source/_partials/post/about-author.html.twig | 6 ++-- source/_partials/post/header.html.twig | 13 ++++--- .../post/questions-comments.html.twig | 2 +- source/_partials/posts/latest.html.twig | 4 +-- source/_partials/talks-table.html.twig | 6 ++-- source/about.html.twig | 6 +--- source/blog.html | 16 ++------- source/contact.html.twig | 2 +- source/cv.html.twig | 2 +- source/talks.html.twig | 11 +++--- source/test-driven-drupal.md | 2 +- tailwind.js | 22 +++++------- 24 files changed, 82 insertions(+), 125 deletions(-) delete mode 100644 assets/sass/base/base.sass delete mode 100644 assets/sass/base/images.sass delete mode 100644 source/_layouts/page.html.twig create mode 100644 source/_partials/blog/post-summary.html.twig diff --git a/assets/js/components/Navbar.vue b/assets/js/components/Navbar.vue index 650524f4..4e328d14 100644 --- a/assets/js/components/Navbar.vue +++ b/assets/js/components/Navbar.vue @@ -20,7 +20,7 @@ > diff --git a/assets/sass/app.sass b/assets/sass/app.sass index 8708d6d9..3c8b039a 100644 --- a/assets/sass/app.sass +++ b/assets/sass/app.sass @@ -2,10 +2,6 @@ @import '~highlightjs/styles/github-gist' @tailwind preflight - -@import 'base/base' -@import 'base/images' - @tailwind components @import 'components/blockquote' diff --git a/assets/sass/base/base.sass b/assets/sass/base/base.sass deleted file mode 100644 index 5a2eff8b..00000000 --- a/assets/sass/base/base.sass +++ /dev/null @@ -1,35 +0,0 @@ -a - @apply text-blue no-underline - - &:focus, - &:hover - @apply underline - -b, -strong - @apply font-bold - -main a - @apply underline - - &:focus, - &:hover - @apply no-underline - - &:focus - @apply text-white bg-blue outline-none px-px -mx-px - -h1, h2, h3 - @apply text-black mb-2 font-bold - -.content h2, -.content h3 - @apply mt-6 - -p, -ul, -ol, -blockquote, -table, -pre - @apply mb-6 diff --git a/assets/sass/base/images.sass b/assets/sass/base/images.sass deleted file mode 100644 index ea169d70..00000000 --- a/assets/sass/base/images.sass +++ /dev/null @@ -1,14 +0,0 @@ -img - &.has-border, - &.with-border - @apply border border-solid border-grey-light - - &.has-padding, - &.with-padding - @apply p-2 - - &.avatar - @apply border p-1 rounded-full - -svg - fill: currentColor diff --git a/assets/sass/components/markdown.sass b/assets/sass/components/markdown.sass index d161d64b..7b4394ea 100644 --- a/assets/sass/components/markdown.sass +++ b/assets/sass/components/markdown.sass @@ -19,6 +19,27 @@ p:last-child @apply mb-0 + p, + ul, + ol, + blockquote, + table + @apply mb-4 + + pre + @apply my-8 + + a, + .link + @apply text-blue underline + + &:focus, + &:hover + @apply no-underline + + &:focus + @apply text-white bg-blue outline-none px-px -mx-px + pre code, .hljs @apply block leading-loose overflow-x-scroll p-6 diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 386e599b..d8a10a37 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -7,8 +7,10 @@
- {% block page_title %} -

{{ page.title }}

+ {% block page_title_wrapper %} +

+ {% block page_title %}{{ page.title }}{% endblock %} +

{% endblock %} {% block content_wrapper %} diff --git a/source/_layouts/page.html.twig b/source/_layouts/page.html.twig deleted file mode 100644 index a60b03d2..00000000 --- a/source/_layouts/page.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'default' %} - -{% block content_top %} -

{{ page.title }}

-{% endblock %} diff --git a/source/_layouts/post.html.twig b/source/_layouts/post.html.twig index 0d42afe4..7e6a21d7 100644 --- a/source/_layouts/post.html.twig +++ b/source/_layouts/post.html.twig @@ -1,6 +1,6 @@ -{% extends 'page' %} +{% extends 'default' %} -{% block page_title %}{% endblock %} +{% block page_title_wrapper %}{% endblock %} {% block metaTags %} diff --git a/source/_partials/availability.html.twig b/source/_partials/availability.html.twig index 580e3cb5..f376bdc0 100644 --- a/source/_partials/availability.html.twig +++ b/source/_partials/availability.html.twig @@ -1,5 +1,5 @@
-

Availability

+

Availability