Преглед на файлове

Add styles for figure elements

ApisNecros преди 1 година
родител
ревизия
668c5f8231
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  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 {