diff --git a/package.json b/package.json index 1710bb14..969943e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "@tailwindcss/typography": "^0.5.16", - "tailwindcss": "^4.0" + "@tailwindcss/typography": "^0.5.15", + "tailwindcss": "^3.4.17" } } diff --git a/static/css/in.css b/static/css/in.css index 81a35e8f..041b7b4a 100644 --- a/static/css/in.css +++ b/static/css/in.css @@ -1,6 +1,6 @@ -@import "tailwindcss"; /* Preflight is injected here */ -@plugin "@tailwindcss/typography"; -@config "../../tailwind.config.js"; +@tailwind base; /* Preflight is injected here */ +@tailwind components; +@tailwind utilities; @layer base { @font-face { @@ -52,6 +52,14 @@ ul { @apply pl-4 list-disc; } + + /* pelican tag_cloud */ + ul.tagcloud { + @apply list-none p-0; + } + ul.tagcloud li { + @apply inline-block p-1; + } } @layer components { @@ -61,6 +69,11 @@ } } +/*Hide heading anchor links unless hovering over them*/ +.headerlink { + @apply no-underline text-rp-dawn-love ml-1 md:ml-2 hover:no-underline; +} + .note { @apply bg-rp-dawn-highlight-med dark:bg-rp-moon-highlight-med m-8 p-4; } @@ -68,6 +81,14 @@ @apply bg-rp-dawn-text text-rp-dawn-base dark:bg-rp-moon-text dark:text-rp-moon-base m-8 p-4; } +/*Attempt to only float thumbnails to the right*/ +.image-process-article-image, +.image-process-thumb, +.image-process-responsive { + /*@apply lg:float-right p-2 lg:p-4;*/ + @apply lg:float-right px-1 lg:px-3; +} + #skiptocontent a { position: absolute; top: -40px; diff --git a/static/css/out.css b/static/css/out.css index edc93ef0..e1870e6c 100644 --- a/static/css/out.css +++ b/static/css/out.css @@ -718,6 +718,18 @@ ul { padding-left: 1rem; } +/* pelican tag_cloud */ + +ul.tagcloud { + list-style-type: none; + padding: 0px; +} + +ul.tagcloud li { + display: inline-block; + padding: 0.25rem; +} + /* Preflight is injected here */ .prose { @@ -1209,6 +1221,22 @@ code { } } +.absolute { + position: absolute; +} + +.relative { + position: relative; +} + +.z-10 { + z-index: 10; +} + +.z-20 { + z-index: 20; +} + .col-span-1 { grid-column: span 1 / span 1; } @@ -1217,8 +1245,8 @@ code { grid-column: span 2 / span 2; } -.col-span-7 { - grid-column: span 7 / span 7; +.col-span-3 { + grid-column: span 3 / span 3; } .col-span-9 { @@ -1233,8 +1261,8 @@ code { margin: 1rem; } -.-mt-9 { - margin-top: -2.25rem; +.-mt-11 { + margin-top: -2.75rem; } .mb-2 { @@ -1286,6 +1314,11 @@ code { width: 2rem; } +.-rotate-3 { + --tw-rotate: -3deg; + transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); +} + .list-outside { list-style-position: outside; } @@ -1310,14 +1343,14 @@ code { grid-template-columns: repeat(9, minmax(0, 1fr)); } -.grid-cols-\[max-content_max-content_max-content\] { - grid-template-columns: max-content max-content max-content; -} - .grid-cols-\[max-content_max-content_max-content_max-content_max-content\] { grid-template-columns: max-content max-content max-content max-content max-content; } +.grid-cols-\[max-content_max-content_max-content_max-content_max-content_max-content\] { + grid-template-columns: max-content max-content max-content max-content max-content max-content; +} + .items-center { align-items: center; } @@ -1335,6 +1368,10 @@ code { hyphens: auto; } +.rounded-full { + border-radius: 9999px; +} + .border-b-2 { border-bottom-width: 2px; } @@ -1358,6 +1395,11 @@ code { background-color: rgb(250 244 237 / var(--tw-bg-opacity, 1)); } +.bg-rp-dawn-gold { + --tw-bg-opacity: 1; + background-color: rgb(234 157 52 / var(--tw-bg-opacity, 1)); +} + .bg-rp-dawn-overlay { --tw-bg-opacity: 1; background-color: rgb(242 233 225 / var(--tw-bg-opacity, 1)); @@ -1368,6 +1410,28 @@ code { background-color: rgb(255 250 243 / var(--tw-bg-opacity, 1)); } +.bg-gradient-to-r { + background-image: linear-gradient(to right, var(--tw-gradient-stops)); +} + +.from-rp-dawn-gold { + --tw-gradient-from: #ea9d34 var(--tw-gradient-from-position); + --tw-gradient-to: rgb(234 157 52 / 0) var(--tw-gradient-to-position); + --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); +} + +.from-10\% { + --tw-gradient-from-position: 10%; +} + +.to-rp-dawn-pine { + --tw-gradient-to: #286983 var(--tw-gradient-to-position); +} + +.to-90\% { + --tw-gradient-to-position: 90%; +} + .p-1 { padding: 0.25rem; } @@ -1380,14 +1444,19 @@ code { padding: 1rem; } -.p-5 { - padding: 1.25rem; -} - .p-8 { padding: 2rem; } +.px-2 { + padding-left: 0.5rem; + padding-right: 0.5rem; +} + +.pb-4 { + padding-bottom: 1rem; +} + .pb-60 { padding-bottom: 15rem; } @@ -1423,6 +1492,16 @@ code { line-height: 2.5rem; } +.text-base { + font-size: 1rem; + line-height: 1.5rem; +} + +.text-sm { + font-size: 0.875rem; + line-height: 1.25rem; +} + .text-xl { font-size: 1.25rem; line-height: 1.75rem; @@ -1436,6 +1515,10 @@ code { text-transform: uppercase; } +.capitalize { + text-transform: capitalize; +} + .italic { font-style: italic; } @@ -1445,11 +1528,6 @@ code { color: rgb(86 148 159 / var(--tw-text-opacity, 1)); } -.text-rp-dawn-love { - --tw-text-opacity: 1; - color: rgb(180 99 122 / var(--tw-text-opacity, 1)); -} - .text-rp-dawn-overlay { --tw-text-opacity: 1; color: rgb(242 233 225 / var(--tw-text-opacity, 1)); @@ -1475,6 +1553,25 @@ code { box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); } +/*Hide heading anchor links unless hovering over them*/ + +.headerlink { + margin-left: 0.25rem; + --tw-text-opacity: 1; + color: rgb(180 99 122 / var(--tw-text-opacity, 1)); + text-decoration-line: none; +} + +.headerlink:hover { + text-decoration-line: none; +} + +@media (min-width: 768px) { + .headerlink { + margin-left: 0.5rem; + } +} + .note { margin: 2rem; --tw-bg-opacity: 1; @@ -1507,6 +1604,26 @@ code { } } +/*Attempt to only float thumbnails to the right*/ + +.image-process-article-image, +.image-process-thumb, +.image-process-responsive { + /*@apply lg:float-right p-2 lg:p-4;*/ + padding-left: 0.25rem; + padding-right: 0.25rem; +} + +@media (min-width: 1024px) { + .image-process-article-image, +.image-process-thumb, +.image-process-responsive { + float: right; + padding-left: 0.75rem; + padding-right: 0.75rem; + } +} + #skiptocontent a { position: absolute; top: -40px; @@ -2070,6 +2187,11 @@ code { text-decoration-line: none; } +.prose-img\:mx-auto :is(:where(img):not(:where([class~="not-prose"],[class~="not-prose"] *))) { + margin-left: auto; + margin-right: auto; +} + .prose-img\:rounded :is(:where(img):not(:where([class~="not-prose"],[class~="not-prose"] *))) { border-radius: 0.25rem; } @@ -2083,19 +2205,18 @@ code { grid-column: span 6 / span 6; } - .md\:grid-cols-5 { - grid-template-columns: repeat(5, minmax(0, 1fr)); + .md\:col-span-7 { + grid-column: span 7 / span 7; + } + + .md\:grid-cols-6 { + grid-template-columns: repeat(6, minmax(0, 1fr)); } .md\:border-l-4 { border-left-width: 4px; } - .md\:text-2xl { - font-size: 1.5rem; - line-height: 2rem; - } - .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; @@ -2115,6 +2236,11 @@ code { font-size: 1rem; line-height: 1.5rem; } + + .md\:text-xl { + font-size: 1.25rem; + line-height: 1.75rem; + } } @media (min-width: 1024px) { @@ -2150,6 +2276,11 @@ code { background-color: rgb(57 53 82 / var(--tw-bg-opacity, 1)); } + .dark\:bg-rp-moon-pine { + --tw-bg-opacity: 1; + background-color: rgb(62 143 176 / var(--tw-bg-opacity, 1)); + } + .dark\:bg-rp-moon-surface { --tw-bg-opacity: 1; background-color: rgb(42 39 63 / var(--tw-bg-opacity, 1)); @@ -2160,6 +2291,11 @@ code { color: rgb(156 207 216 / var(--tw-text-opacity, 1)); } + .dark\:text-rp-moon-highlight-med { + --tw-text-opacity: 1; + color: rgb(68 65 90 / var(--tw-text-opacity, 1)); + } + .dark\:text-rp-moon-iris { --tw-text-opacity: 1; color: rgb(196 167 231 / var(--tw-text-opacity, 1)); @@ -2170,6 +2306,11 @@ code { color: rgb(234 154 151 / var(--tw-text-opacity, 1)); } + .dark\:text-rp-moon-surface { + --tw-text-opacity: 1; + color: rgb(42 39 63 / var(--tw-text-opacity, 1)); + } + .dark\:text-rp-moon-text { --tw-text-opacity: 1; color: rgb(224 222 244 / var(--tw-text-opacity, 1)); diff --git a/templates/archives.html b/templates/archives.html index 131a095a..9b15a164 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -1,12 +1,11 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %} +{% block title %}Blog archive - {{ SITENAME|striptags }}{% endblock %} {% block content %}
-

Blog archive

+

Blog post archive

{% endif %} +
+

+ + +

+

+
{% endblock %} diff --git a/templates/authors.html b/templates/authors.html index 9d68c972..548421fb 100644 --- a/templates/authors.html +++ b/templates/authors.html @@ -1,12 +1,13 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %} +{% block title %}Authors - {{ SITENAME|striptags }}{% endblock %} {% block content %} -

Authors on {{ SITENAME }}

- +

Authors

+ It's all me, silly you. + + + + + {% endblock %} diff --git a/templates/base.html b/templates/base.html index 16016540..ad7df453 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,10 +5,11 @@ {% block title %}{{ SITENAME|striptags }}{% endblock title %} - + {% if SITESUBTITLE %} {% endif %} + {% if STYLESHEET_URL %} {% endif %} @@ -36,9 +37,8 @@ {% if TAG_FEED_RSS and tag %} {% endif %} - + - {% endblock head %} @@ -59,9 +76,9 @@
skip to main content
-

{{ SITENAME }}

+

{{ SITENAME }}

{% if SITESUBTITLE %} -

{{ SITESUBTITLE }}

+

{{ SITESUBTITLE }}

{% endif %}
@@ -72,7 +89,7 @@ {% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %} -
  • {{ p.title }}
  • +
  • {{ p.title }}
  • {% endfor %}
    {% endif %} @@ -98,7 +115,7 @@
    -
    +
    {% block content %} {% endblock %} @@ -111,27 +128,25 @@
    -
    +