From 854ae471a01bb13cb73a38143f43d97a9ca62ce5 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 16 Oct 2022 23:51:43 +0200 Subject: Added new draft post --- themes/simple/layouts/partials/tailwind.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'themes/simple/layouts/partials/tailwind.html') diff --git a/themes/simple/layouts/partials/tailwind.html b/themes/simple/layouts/partials/tailwind.html index 616ab3a..b6fd763 100755 --- a/themes/simple/layouts/partials/tailwind.html +++ b/themes/simple/layouts/partials/tailwind.html @@ -101,6 +101,20 @@ @apply my-10; } + /* Lazy loading of iframes */ + article.single .ll-iframe { + @apply bg-gray-100 rounded; + } + + article.single .ll-iframe::before { + @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse; + content: 'Click here to load resource…'; + } + + article.single .ll-iframe.empty::before { + content: none; + } + /* Cactus Comments */ .comments img { max-width: auto !important; -- cgit v1.2.3