StrawbunnizJAL

3. Horizontal bot cards (username on top)

Jun 26th, 2026 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.22 KB | Source Code | 0 0
  1. 3. Horizontal bot cards (username on top)
  2.  
  3. <style>
  4. /* Creates a low-opacity image container locked strictly to the right side */
  5. .css-1s5evre::before {
  6.   content: "" !important;
  7.   position: absolute !important;
  8.   top: 0;
  9.   right: 0;
  10.   width: 50%;
  11.   height: 100%;
  12.   opacity: 0.15;
  13.   background-image: url("https://files.catbox.moe/xfpsnm.png") !important;
  14.   background-size: contain !important;
  15.   background-position: bottom right !important;
  16.   background-repeat: no-repeat !important;
  17.   z-index: 1;
  18.   pointer-events: none;
  19. }
  20. </style>
  21.  
  22. <style>
  23. /* code by @Strawbunniz (Modified to match user sketch) */
  24. /* setting botcard backgrounds to transparent */
  25. .pp-cc-wrapper, .pp-cc-wrapper>*:not(.css-1s5evre){
  26.     background: transparent !important;
  27. }
  28.  
  29. /* Default 2-column grid layout for desktop, laptops, and tablets */
  30. .pp-cc-list-container {
  31.     display: grid !important;
  32.     grid-template-columns: repeat(2, minmax(0, 550px)) !important;
  33.     gap: 20px;
  34.     justify-content: center !important;
  35.     align-items: start !important;
  36.     width: 100% !important;
  37. }
  38.  
  39. /* sizing of the botcard */
  40. .pp-cc-wrapper{
  41.     width: 100% !important;
  42.     max-width: 550px;    
  43.     height: 450px;
  44.     margin-left: auto !important;  
  45.     margin-right: auto !important;
  46.     display: block !important;
  47.     transition: all 300ms ease;
  48.     position: relative;
  49. }
  50.  
  51. .css-1s5evre a{
  52.     display: contents;
  53. }
  54.  
  55. .css-1s5evre{
  56.     background: black;
  57.     display: grid;
  58.     grid-template-columns: 1.2fr 1fr;
  59.     grid-template-rows: auto 1fr; /* Changed to auto rows so elements bunch up instead of stretching evenly */
  60.     gap: 0px;
  61.     height: 100%;
  62.     margin: 15px auto !important;
  63.     border-radius: 10px;
  64.     position: relative;
  65.     outline: 1px solid lightgray;
  66.     outline-offset: -3px;
  67.     z-index: 5;
  68.     align-items: start !important; /* Align to the start to allow natural flow rather than forcing full height stretch */
  69. }
  70.  
  71. /* Image column (Avatar Container) */
  72. .css-1q7rmf0{
  73.     grid-area: 1 / 1 / 3 / 2;
  74.     margin: 55px 15px 15px 15px !important;
  75.     height: calc(100% - 70px) !important;
  76.     overflow: hidden !important;
  77.     position: relative;
  78.     border-radius: 8px !important;
  79.     align-self: stretch !important; /* Keeps image full-height regardless of text box crowding */
  80.     border: 2px solid lightgray; /* Adds a border around the bot avatar */
  81. }
  82.  
  83. /* Avatar wrapper */
  84. .css-1q7rmf0 > *{
  85.     width: 100% !important;
  86.     height: 100% !important;
  87.     object-fit: cover !important;
  88. }
  89.  
  90. /* Bot Name - Positioned horizontally at the top left */
  91. .pp-cc-name {
  92.     position: absolute;      
  93.     left: 15px;
  94.     top: 15px;
  95.     z-index: 10;              
  96.     color: #ffffff;
  97.     font-size: 25px;
  98.     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  99.     font-weight: bold;
  100.     pointer-events: none;
  101.     font-family: "Times New Roman", Times, serif;      
  102. }
  103.  
  104. /* Bot card Description container */
  105. .profile-character-card-description-box {
  106.     grid-area: 1 / 2 / 2 / 3;
  107.     margin: 0;
  108.     margin-top: 55px; /* Moved margin from padding for container background alignment */
  109.     padding: 10px 15px 10px 10px;
  110.     max-height: 190px;
  111.     overflow: hidden auto;
  112.     background: rgba(255, 255, 255, 0.07); /* Adds a subtle background to the description */
  113.     border-radius: 6px;
  114. }
  115.  
  116. /* botcard tags - Arranged horizontally underneath description */
  117. .pp-cc-tags{
  118.     grid-area: 2 / 2 / 3 / 3;
  119.     margin-top: 15px !important; /* Moves tags box closer right up against the description */
  120.     padding-right: 15px;
  121.     padding-bottom: 50px; /* Leave space for chat ribbon at bottom */
  122.     max-height: 150px;
  123.     overflow: hidden auto;
  124.     display: flex !important; /* Aligns tags horizontally */
  125.     flex-wrap: wrap; /* Allows them to wrap to the next line naturally */
  126.     gap: 8px; /* Adds space between horizontal tags */
  127. }
  128.  
  129. .pp-cc-tags-item {
  130.     color: white;
  131.     border-radius: 30px;
  132.     padding: 4px 10px; /* Ensures the individual tags have proper padding */
  133.     background: rgba(255, 255, 255, 0.15); /* Fallback background for visibility */
  134. }
  135.  
  136. /* getting rid of the star separator and username */
  137. .pp-cc-star-line, .pp-cc-creator-name{
  138.     display: none;
  139. }
  140.  
  141. /* botcard effect on hover */
  142. .pp-cc-wrapper:hover{
  143.     transform: scale(1.05);
  144. }
  145.  
  146. .pp-cc-description p::first-letter {
  147.     font-size: 30px;
  148.     font-family: cursive;
  149. }
  150.  
  151. /* Limitless Tag Reset - Stripped custom position styles to treat it like a normal tag */
  152. .pp-cc-tags-wrap:has(.pp-tag-limitless) {
  153.     position: static !important;
  154.     bottom: auto !important;
  155.     right: auto !important;
  156.     z-index: auto !important;
  157.     pointer-events: auto !important;
  158. }
  159.  
  160. .pp-tag-limitless {
  161.     position: static !important;
  162.     bottom: auto !important;
  163.     right: auto !important;
  164.     z-index: auto !important;
  165.     text-transform: none !important;
  166.     opacity: 1 !important;
  167.     font-weight: normal !important;
  168.     font-size: inherit !important;
  169.     color: inherit !important;
  170. Border: none;
  171. }
  172.  
  173. /* --- CHAT RIBBON POSITIONING AND BADGE SHAPE --- */
  174.  
  175. /* Anchored to the bottom right corner exactly like the sketch */
  176. .profile-character-card-stats-box{
  177.     position: absolute !important;
  178.     right: 15px !important;
  179.     bottom: 15px !important;
  180.     top: auto !important;
  181.     left: auto !important;
  182.     transform: none !important;
  183.     z-index: 10 !important;
  184.     width: auto !important;
  185. }
  186.  
  187. /* Outer Container Layout Reset */
  188. .pp-cc-ribbon, .profile-character-card-ribbon {
  189.     position: relative !important;
  190.     top: auto !important;
  191.     right: auto !important;
  192.     left: auto !important;
  193.     bottom: auto !important;
  194. }
  195.  
  196. /* The Dark Badge Shape */
  197. .pp-cc-ribbon-wrap, .profile-character-card-ribbon-wrap {
  198.     background: rgba(15, 15, 15, 0.85) !important;
  199.     padding: 4px 10px !important;
  200.     border-radius: 8px !important;
  201.     clip-path: none !important;
  202.     -webkit-clip-path: none !important;
  203.     border: 1px solid rgba(255, 255, 255, 0.15) !important;
  204. }
  205.  
  206. /* Text Container adjustment */
  207. .pp-cc-chats, .profile-character-card-chats- {
  208.     display: flex !important;
  209.     align-items: center !important;
  210.     justify-content: center !important;
  211.     gap: 4px;
  212.     color: #ffffff !important;
  213. }
  214.  
  215. /* Chat text size and color */
  216. .pp-cc-chats-count, .profile-character-card-chats-count {
  217.     color: #ffffff !important;
  218.     font-weight: 600;
  219.     font-size: 13px;
  220.     font-family: sans-serif;
  221. }
  222.  
  223. /* Cleaning up */
  224. .pp-cc-wrapper:hover, .pp-cc-wrapper[data-hover]{box-shadow:none}
  225. .css-1s5evre a{display:contents}
  226. .css-1awld45,.css-1cui3us,.css-1wqmh16,.css-1x04uxb,.css-5v5qgx,.css-8828od,.css-nip9dx,.css-xrg4vd,.pp-cc-creator-name{display:none}
  227. .pp-cc-wrapper>*{box-shadow:none!important}
  228. .pp-cc-star-line{visibility:hidden}
  229. div:has(> .css-1s5evre),div:has(~ .css-1s5evre){background:0 0!important}
  230. .css-0,.css-1henxb,.css-effh3d{background:0 0!important}
  231. ._content_1chl9_11 {box-shadow:none;background:0 0;}
  232. .pp-cc-tokens-count, .profile-character-card-box {
  233.     display: none;
  234. }
  235.  
  236. /* --- MOBILE & IPHONE RESPONSIVE OVERRIDES --- */
  237. @media (max-width: 768px) {
  238.     .pp-cc-list-container {
  239.         grid-template-columns: 1fr !important;
  240.         justify-items: center !important;
  241.         gap: 20px;
  242.     }
  243. }
  244. </style>
Tags: Janitor AI
Add Comment
Please, Sign In to add comment