Browse Source

#4204 - Adjust top/bottom margins for HTML content

roman.lesnikov@gmail.com 3 years ago
parent
commit
fef6320de3

+ 1 - 1
modules/boonex/timeline/template/type_post.html

@@ -24,7 +24,7 @@
 </bx_if:show_files>
 <div class="__style_prefix__-item-text mt-3 md:mt-4 mx-3 md:mx-4">
     <bx_if:show_title>
-        <div class="__style_prefix__-title text-lg lg:text-xl font-semibold text-gray-700 dark:text-gray-300">__title__</div>
+        <div class="__style_prefix__-title mb-2 md:mb-4 text-lg lg:text-xl font-semibold text-gray-700 dark:text-gray-300">__title__</div>
     </bx_if:show_title>
     <bx_if:show_content>
         <div class="__style_prefix__-content bx-overflow-ready bx-def-vanilla-html bx-def-vh-sm relative max-w-none">__item_content__</div>

+ 8 - 5
plugins_public/tailwind/css/tailwind.css

@@ -32,16 +32,19 @@
         @apply prose dark:prose-invert;
         @apply prose-a:text-blue-500 prose-a:font-medium prose-a:no-underline hover:prose-a:underline visited:prose-a:text-purple-500;
     }
+    
+    .bx-def-vanilla-html.bx-def-vh-sm {
+        @apply prose-sm;
+    }
+    
     .bx-def-vanilla-html div > :where(:first-child):not(:where([class~="not-prose"] *)),
     .bx-def-vanilla-html > :where(:first-child):not(:where([class~="not-prose"] *)){
-        margin-top: 0;
+        margin-top: 0 !important;
     }
+    
     .bx-def-vanilla-html div > :where(:last-child):not(:where([class~="not-prose"] *)),
     .bx-def-vanilla-html > :where(:last-child):not(:where([class~="not-prose"] *)) {
-        margin-bottom: 0;
-    }
-    .bx-def-vanilla-html.bx-def-vh-sm {
-        @apply prose-sm;
+        margin-bottom: 0 !important;
     }
 
     .bx-artificer .bx-menthion-link {

File diff suppressed because it is too large
+ 0 - 0
plugins_public/tailwind/css/tailwind.min.css


Some files were not shown because too many files changed in this diff