a img{ align-items: center; position: relative; width: 100%; padding: 10px; padding-left: 10px; margin-top: 20px; overflow: hidden; opacity: 0; animation-name: fadeIn; animation-delay: 0.6s; animation-duration: 0.8s; animation-fill-mode: forwards; text-decoration: none; color: white; } .article-content { margin-top: 10px; margin-bottom: 10px; padding: 5px; border: 1px solid #777; max-height: 300px; overflow: hidden; text-overflow: ellipsis; content: ""; position: relative; } button.article-content { background: none; } .article-content:before { content: ''; width: 100%; height: 100%; position: absolute; left: 0; top: 0; background: linear-gradient(transparent 150px, white); } .modal-content { background-color: rgb(75, 75, 75) !important; } .modal button.btn.btn-secondary { background-color: rgb(59, 59, 59) !important; } .modal button.close { color: rgb(255, 0, 0) !important; } .modal-body, button.article-content { white-space: pre-wrap }