Advertisement
Guest User

ST 1.12.6 - CSS to wrap text around avatar

a guest
Oct 13th, 2024
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.02 KB | None | 0 0
  1. /* THIS GOES INTO MAIN CSS BOX, CSS SNIPPETS CAN'T IMPORT
  2.    DON'T COPYPASTA ENTIRE THING STRAIGHT UNLESS YOU LAZY
  3.    Btw stolen from momoura and tweaked to reclaim space */
  4.  
  5. @import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
  6.  
  7. body {
  8.   font-family: "Atkinson Hyperlegible";
  9. }
  10.  
  11. /* RECOMMENDED TO USE CSS SNIPPETS EXTENSION
  12.    https://github.com/LenAnderson/SillyTavern-CssSnippets/ */
  13.  
  14. .mes {
  15.   display: block;
  16. }
  17.  
  18. .mesAvatarWrapper {
  19.   display: inline;
  20.   float: left;
  21.   margin-right: 10px;
  22. }
  23.  
  24. .mes_block {
  25.   overflow-x: visible;
  26. }
  27.  
  28. .swipe_right, .swipe_left {
  29.   bottom: 3px;
  30. }
  31.  
  32. .last_mes .mesAvatarWrapper {
  33.   padding-bottom: 0px;
  34. }
  35.  
  36. .last_mes .mes_block {
  37.   padding-bottom: 28px;
  38. } /* 28 flat style, 20 bubbles style */
  39.  
  40. .mes_text, .last_mes .mes_text {
  41.   padding-right: 0px;
  42.   padding-bottom: 0px;
  43.   margin-left: -10px; /* optional */
  44.   font-size: 18px;
  45. } /* move font-size to its own snippet for access or more control */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement