Adds bounce and also fixes things breaking out of the popover for the

user's profile
pull/190/head
Chuck 2023-08-11 14:24:52 -07:00
parent 32fccf46b0
commit de11cfebf8
2 changed files with 11 additions and 2 deletions

View File

@ -213,7 +213,7 @@
/* do not remove - fixes hand, talking, marsey-love components /* do not remove - fixes hand, talking, marsey-love components
from breaking out of the comment box from breaking out of the comment box
*/ */
.comment-text a > img, img[data-user-submitted], .preview > img { .comment-text a > img, img[data-user-submitted], .preview > img, .popover-bio {
position: relative !important; position: relative !important;
max-height: 150px !important; max-height: 150px !important;
margin: 0 !important; margin: 0 !important;
@ -5547,13 +5547,14 @@ span > img[src$="/i/hand.webp"]+img[src$="/i/talking.webp"] {
padding-top: 20%; padding-top: 20%;
padding-right: 5%; padding-right: 5%;
} }
span > img[src$="/i/hand.webp"]+img[src$="/i/talking.webp"]~img { span > img[src$="/i/hand.webp"]+img[src$="/i/talking.webp"]~img, span[bounce] {
animation: pat-pfp-anim 0.3s infinite; animation: pat-pfp-anim 0.3s infinite;
transform-origin: bottom center; transform-origin: bottom center;
margin-top: 20%; margin-top: 20%;
text-align: center; text-align: center;
object-fit: contain; object-fit: contain;
} }
span > img[src$="/i/talking.webp"]~img { span > img[src$="/i/talking.webp"]~img {
margin-top: 22%; margin-top: 22%;
} }
@ -6912,6 +6913,13 @@ div.markdown {
overflow: auto; overflow: auto;
} }
.popover-bio {
overflow: scroll;
position: relative;
display: inline-block;
height: 100%;
}
.popover-badges-div { .popover-badges-div {
max-height: 10vh !important; max-height: 10vh !important;
overflow: auto; overflow: auto;

View File

@ -102,6 +102,7 @@ def allowed_attributes(tag, name, value):
if name == 'title': return True if name == 'title': return True
if name == 'alt': return True if name == 'alt': return True
if name == 'cide' and not value: return True if name == 'cide' and not value: return True
if name == 'bounce' and not value: return True
if tag == 'table': if tag == 'table':
if name == 'class' and value == 'table': return True if name == 'class' and value == 'table': return True