From e778186cfe3c1f207ae8662b9f259abfb7faa76a Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 21 Aug 2019 10:05:05 +0200 Subject: [PATCH] rewind to old plugin, styling for markdown properties --- project.clj | 2 +- resources/app/stylesheets/app.less | 68 +++++++++++++++++++++--------- 2 files changed, 50 insertions(+), 20 deletions(-) diff --git a/project.clj b/project.clj index 251fa0c..f46a7ee 100644 --- a/project.clj +++ b/project.clj @@ -40,7 +40,7 @@ commons-io commons-codec]]] :plugins [;; neo4j db - [joshavg/lein-neo4j "0.6.0"] + [joshavg/lein-neo4j "0.5.0"] ;; webserver stuff [lein-less "1.7.5"] diff --git a/resources/app/stylesheets/app.less b/resources/app/stylesheets/app.less index faaf5f2..171048b 100644 --- a/resources/app/stylesheets/app.less +++ b/resources/app/stylesheets/app.less @@ -30,20 +30,6 @@ a:active { text-decoration: underline; } -h1 { - font-size: 1.5rem; - - small { - font-weight: normal; - font-size: 1.5rem; - } -} - -h2 { - font-size: 1.3rem; - border-bottom: 1px solid @ci-highlight; -} - em { font-weight: bold; } @@ -68,6 +54,49 @@ img, svg { grid-template-areas: "header header" "nav main" "footer footer"; margin: auto; + h1 { + font-size: 1.5rem; + + small { + font-weight: normal; + font-size: 1.5rem; + } + } + + h2 { + font-size: 1.3rem; + border-bottom: 1px solid @ci-highlight; + } + + .attr-type-markdown { + border: 1px solid @ci-color; + border-radius: .5rem; + padding: 1rem; + + h1 { + font-size: 1.4rem; + margin-top: 0; + } + + h2 { + font-size: 1.2rem; + border: none; + } + + h3 { + font-size: 1.1rem; + } + + blockquote, pre { + padding: .5rem; + background-color: Window; + border-radius: .4rem; + border: 1px solid transparent; + margin-left: 1rem; + margin-right: 1rem; + } + } + header, footer, main, nav, aside { padding: @text-padding-v @text-padding-h; } @@ -262,7 +291,8 @@ table { background-color: @body-background-color; th { - padding: @text-padding-v @text-padding-h @text-padding-v + .3rem @text-padding-v; + padding: @text-padding-v @text-padding-h + @text-padding-v + .3rem @text-padding-v; } th[data-sort=desc]::after { @@ -325,11 +355,11 @@ table { margin: 0; padding: 0; list-style-type: none; -} -.tag-list li { - margin-right: .5rem; - display: inline-block; + li { + margin-right: .5rem; + display: inline-block; + } } .single-tag {