Add gallery support for posts

This commit is contained in:
2023-05-13 20:42:10 +10:00
parent 7fc753b99e
commit 5527ab55f6
6 changed files with 243 additions and 2 deletions

View File

@@ -516,6 +516,40 @@ video {
--tw-backdrop-sepia: ;
}
.container {
width: 100%;
}
@media (min-width: 640px) {
.container {
max-width: 640px;
}
}
@media (min-width: 768px) {
.container {
max-width: 768px;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}
@media (min-width: 1536px) {
.container {
max-width: 1536px;
}
}
.prose {
color: var(--tw-prose-body);
max-width: 65ch;
@@ -974,6 +1008,10 @@ video {
margin-bottom: 0;
}
.fixed {
position: fixed;
}
.absolute {
position: absolute;
}
@@ -982,10 +1020,18 @@ video {
position: relative;
}
.inset-0 {
inset: 0px;
}
.-top-4 {
top: -1rem;
}
.z-50 {
z-index: 50;
}
.col-span-1 {
grid-column: span 1 / span 1;
}
@@ -1140,6 +1186,10 @@ video {
max-height: 3rem;
}
.max-h-full {
max-height: 100%;
}
.w-1 {
width: 0.25rem;
}
@@ -1172,6 +1222,14 @@ video {
width: 1.5rem;
}
.w-full {
width: 100%;
}
.max-w-3xl {
max-width: 48rem;
}
.max-w-prose {
max-width: 65ch;
}
@@ -1221,6 +1279,10 @@ video {
grid-auto-flow: column;
}
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@@ -1241,6 +1303,10 @@ video {
grid-template-rows: repeat(1, minmax(0, 1fr));
}
.flex-col {
flex-direction: column;
}
.content-center {
align-content: center;
}
@@ -1249,6 +1315,10 @@ video {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
@@ -1267,6 +1337,14 @@ video {
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}
.overflow-auto {
overflow: auto;
}
.overflow-hidden {
overflow: hidden;
}
.break-normal {
overflow-wrap: normal;
word-break: normal;
@@ -1332,6 +1410,11 @@ video {
border-color: transparent;
}
.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}
.bg-blue-100 {
--tw-bg-opacity: 1;
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
@@ -1381,10 +1464,18 @@ video {
background-color: rgb(254 249 195 / 0.6);
}
.bg-opacity-75 {
--tw-bg-opacity: 0.75;
}
.fill-blue-100 {
fill: #dbeafe;
}
.fill-current {
fill: currentColor;
}
.fill-pink-100 {
fill: #fce7f3;
}
@@ -1393,6 +1484,11 @@ video {
fill: #f3e8ff;
}
.object-contain {
-o-object-fit: contain;
object-fit: contain;
}
.object-cover {
-o-object-fit: cover;
object-fit: cover;
@@ -1442,6 +1538,14 @@ video {
padding-left: 1.5rem;
}
.pr-2 {
padding-right: 0.5rem;
}
.pt-2 {
padding-top: 0.5rem;
}
.pt-4 {
padding-top: 1rem;
}
@@ -1550,6 +1654,11 @@ video {
color: rgb(220 38 38 / var(--tw-text-opacity));
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.underline {
text-decoration-line: underline;
}
@@ -1573,6 +1682,11 @@ video {
--tw-shadow: var(--tw-shadow-colored);
}
.outline-none {
outline: 2px solid transparent;
outline-offset: 2px;
}
.transition-colors {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1795,6 +1909,11 @@ h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
opacity: 0.8;
}
.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
.prose-p\:mb-0 :is(:where(p):not(:where([class~="not-prose"] *))) {
margin-bottom: 0px;
}
@@ -1868,6 +1987,10 @@ h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
padding-left: 0px;
}
.prose-img\:m-0 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin: 0px;
}
.prose-img\:my-2 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin-top: 0.5rem;
margin-bottom: 0.5rem;