Bladeren bron

Add styles for figure elements

ApisNecros 1 jaar geleden
bovenliggende
commit
668c5f8231
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. 12 0
      static/css/base.css

+ 12 - 0
static/css/base.css

@@ -148,6 +148,18 @@
     table tbody td:last-child {
         @apply pr-2;
     }
+
+    article figure {
+        @apply max-w-lg mx-auto p-2 border border-gray-400 rounded text-center;
+    }
+
+    figure img {
+        @apply w-full sm:w-3/4 xl:w-5/6 mx-auto;
+    }
+
+    figure figcaption {
+        @apply w-full sm:w-3/4 xl:w-5/6 mx-auto text-sm italic;
+    }
 }
 
 @layer components {