10billionghosts: (listen i just love my wol)
jay, novice human ([personal profile] 10billionghosts) wrote2024-03-28 05:22 pm

code: PEEPERS, a collapsing muse list code





Took a wee coding break after releasing SALAD, and now I'm BACK! I'm dipping my toes into canon/quasi-canon PSLing for the first time, and so I made this character list/muse box code for me (rather than the spirit of the internet taking control of my consciousness and compelling me to create and release something, as is usually the case). Here's PEEPERS!

PEEPERS is a character/muse list code for people like me, who hate taking up space but still want to make dumbfuck jokes for folks to find if they're willing to click around. Each "card" (the character bars) will expand down when clicked, providing a space for additional content. By default, I've provided three prestyled options:

  • OC BAR - Prioritizes line items over text space, comes with a link list.

  • CANON BAR - Prioritizes block text space, comes with a progress bar.

  • PLAYLIST BAR - Simple styling for a song list + link.

To start, grab the outer wrapper code here. It also contains one copy of the header code I made, but you can replace that with any text header/horizontal divider!

OUTER WRAPPER (grab me first!):


Once you've grabbed the outer wrapper above, check the HOW TO USE section, and pick up the code for the card style you want at the bottom of this post.

HOW TO USE:

❣️ Mind those lj-raw tags!!

❣️ This code is mobile compatible and insanejournal friendly! It is not comment compatible.

❣️ Be sure to grab the OUTER WRAPPER code above first! This code will ... lmao SO super not work without it. I'm not kidding.

❣️ Once you've got the outer wrapper pasted into a fresh new post, paste as many cards as you'd like into the code where indicated.

❣️ By default, this code stacks three cards across on wider displays and will shuffle down to one per line on mobile. You can set it to max two across by going to the top of the OUTER WRAPPER code and changing max-width:900px to max-width:600px.

❣️ Feel free to delete the default header entirely!

❣️ I'd definitely suggest editing the code comments on this one; each card is labeled ITEM: name, where name is meant to be changed to a title for that particular card. This'll make it easier for you to edit stuff later. I swear.

❣️ READ THIS PART, IT'S ABOUT MAKING SURE THE IMAGE LOOKS GOOD EASILY: While you can put ANY image url into the IMG_URL placeholder and it will technically work, for BEST AND EASIEST RESULTS, you'll want to resize and crop an image yourself for best fit.

  • Firstly, if you're using fanart, please be sure to check the original artist's use policy. Not every artist wants you using their art, let alone editing it/cropping it. Please respect artist use policies!

  • Take the image you'd like to use, resize and crop it so that it is 275px width x 75px height. A quick search of "image cropping" will turn up a ton of online resources to accomplish this if you don't have access to an image editing program!

  • Host your image somewhere like imgur, and replace IMG_URL with the URL to that image.
❣️ READ THIS PART, PART II: If you absolutely do not want to fuss with cropping an image, you can attempt to fenangle positioning manually...

  • Try adjusting the background-size: value. By default it is set to cover. What value works best depends entirely on the image, but you'll most likely want to change it to a percent value. For example, 350%.

  • Try adjusting the background positioning. Background positioning is sort of math-y, and I am absolutely not equipped to explain it well lmao, but you can read about it here.

  • A combination of both of these can get you very nice results! To test the code, on my own personal musebox I used a combination of cropped images and code-positioned images, and I don't think it's obvious from a glance which is which.
❣️ CUSTOMIZING THE CHARACTER NAME / TITLE TEXT:

  • All of this is done under the part of the code that says "character name / title"

  • By default, the title text will align to the right side of the card. To change this, change justify-content: from end to either start (for left aligned title) or center (for centered title).

  • You may need to change the font color for visibility reasons. If so, change the hex value of color:#fff to whatever color you'd like to use.

  • You may need to fiddle with the text-shadow:0 0 1px #000 value to improve visibility or just cuz. A good alternative is 1px 1px 0 #000. Here's a text-shadow value generator that you can use if you aren't sure how text shadow works. I'd recommend keeping all number values small.

  • If you are a small caps hater, delete font-variant:small-caps entirely to restore normie letters.
❣️ Every code snippet within the {hidden content} portion of each card is optional and can be freely mix-n-matched and moved around. Want a link list at the top? Slap a links code snippet at the start of the {hidden content} subsection!

❣️ There are 5 total code snippet types in PEEPERS:

  • line item, a single line for a short string of text, like "name", "canon", "pronouns", etc.

  • blurb, a space for a block of text; put as much text as you want.

  • links, coding for a simple link list; links will size themselves automatically as you add them, max 3 per line. Found in the OC BAR by default.

  • progress, a progress bar that you can customize; use it for Confidence or Interest or CR or whatever you'd like.

  • song, a single line styled for song/artist, specifically, but I bet you could use it as a thread tracker too if you wanted.
❣️ Don't forget to change the #URL_HERE placeholder text if you use the link list!

❣️ For the song snippet, you can completely delete the song lyrics part of the code if you just want song name and artist.

❣️ CUSTOMIZING THE PROGRESS BAR CODE:

  • It's set to 50% by default.

  • Under the part of the code that says 'adjust width value here', change the default width:50% to another % value.

  • If you want to set it to 100%, change border-radius:15px 0 0 15px; to border-radius:15px;.

  • Don't forget to update the labeling under the part of the code that says 'describe value here'; it's INTEREST and 50% by default.
❣️ HERE ARE YOUR DEFAULT HEX CODES:

  • hex code #fff, white, is used throughout the code in a variety of different ways, so don't use find-replace on this one.

  • hex code #000, black, is used throughout the code, mostly for default shadows. should be safe to find-replace.

  • hex code #347a99, is the default color for text backgrounds, the progress bar, and the text in the default header. Safe to use find-replace to change these quick.

  • hex code #134b63, default text code, declared at the top of each card.

  • hex code #b9d8e5, used only in the header bar, as the line color.

  • hex code #d7ecf7, a very light blue, used only in the header bar, as the drop shadow on the text.

  • radial-gradient(circle, rgba(246,246,246,1) 0%, rgba(235,235,235,1) 100%), this is a gray gradient used in the background of the details dropdown; use a css gradient generator to change this color, if you'd like.
❣️ The font is declared in the outer wrapper code. Search for font-family: to adjust it.

❣️ font-size: is declared once in the outer wrapper and again in certain parts of the individual cards. Use the search function to make sure you've updated all font sizes if you want to change them.

❣️ text-align:justify is the default alignment setting. Feel free to change this to left/right/center! I just like justified text.

❣️ This code contains a credit link. I'd appreciate if you'd left it in!

❣️ I love peeking at what people do with my codes, so feel free to comment if you use! If you'd like, you can also donate to my ko-fi!

Pick up individual card codes below


warrior of light
canon:
canon source
name:
character name
Jelly-o candy halvah caramels caramels topping jelly wafer. Jujubes chocolate cake chocolate cake icing candy marshmallow. Pudding oat cake dessert bonbon cotton candy brownie dragée gummi bears lemon drops.

Gingerbread icing marshmallow tiramisu bear claw marshmallow dragée. Gingerbread candy jelly soufflé dessert bear claw tart sugar plum.
OC BAR CODE:
veritas ratio
canon:
honkai star rail
Sugar plum jelly wafer tootsie roll tiramisu pie chocolate bar danish. Pudding powder halvah cupcake powder. Wafer topping wafer macaroon chocolate shortbread carrot cake sugar plum.

Jelly sweet roll lollipop sweet roll wafer gummies marshmallow jelly-o. Shortbread jelly jelly jujubes jelly beans dessert. Icing tootsie roll liquorice chupa chups jelly sweet roll.
confidence
75% (voice testing)
CANON BAR CODE:
playlist
SONG TITLEArtist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics
SONG TITLEArtist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics
SONG TITLEArtist Name
song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics song lyrics
PLAYLIST BAR CODE:
panicstrickyn: (Default)

[personal profile] panicstrickyn 2024-03-29 12:22 am (UTC)(link)
Holy shit you're on a roll. ❤️👀👀👀👀 I'm gonna use this like asap tyty!
lofivibe: (pic#16930580)

[personal profile] lofivibe 2024-03-30 01:23 pm (UTC)(link)
Ahhhh I love this one (the playlist is especially choice)! Such a neat idea 🙏
boltund: art by siplick (Default)

[personal profile] boltund 2024-04-08 02:58 am (UTC)(link)
so many uses, so beautiful

craftings: (Default)

[personal profile] craftings 2024-05-17 07:31 pm (UTC)(link)
I just happened upon this and oh my god I love everything about it SO MUCH

This will be a fantastic little cr chart/character blurb thing to work on in the future, I appreciate you so much LMAO
lenabee: for Pirate week at HiH (Default)

[personal profile] lenabee 2024-07-05 11:10 pm (UTC)(link)
This is really cool! Is there a way to make the images taller? Like mayber closer to 150px tall?
chaosandkindness: (Default)

[personal profile] chaosandkindness 2024-07-06 10:43 pm (UTC)(link)
Hi! Once again so awesome! I am messing with it here. Is there a way for the bubbles to be clickable links instead of just buttons?
chaosandkindness: (Default)

[personal profile] chaosandkindness 2024-07-07 09:03 pm (UTC)(link)
Hi! The first one, please.