diff --git a/script.js b/script.js index d7b2b46..2efb796 100644 --- a/script.js +++ b/script.js @@ -193,7 +193,7 @@ const updateCarousel = function(slides, posts) {
- ${post.media_attachments[0] ? `

${DOMPurify.sanitize(post.content)}

` : `

${DOMPurify.sanitize(post.content)}

`} + ${post.media_attachments[0] ? `
${DOMPurify.sanitize(post.content)}
` : `
${DOMPurify.sanitize(post.content)}
`} ${post.media_attachments[0] ? `
` : ''}

diff --git a/styles.css b/styles.css index b2f4fc5..dd40322 100644 --- a/styles.css +++ b/styles.css @@ -50,6 +50,10 @@ margin-bottom: 1px !important; } +.carousel .card-text { + font-size: 1.4em; +} + .card { font-size: 0.9em; /* adjust this value to get the desired text size */ } @@ -186,10 +190,6 @@ body { margin-bottom: 20px !important; } -.card-text ~ p { - font-size: 1.4em; -} - .card-img-bottom { max-width: 600px; max-height: 500px;