yanyan: (Default)
yana! ([personal profile] yanyan) wrote in [community profile] cawaii2023-05-05 09:23 pm
Entry tags:

[code] kinklist #1

Long time no see! It's 2023, so here's a web-responsive/mobile-friendly code for all your kinklist needs. Credit for the original idea goes to [community profile] bannertech's kinklist code.

YES
  •   Insert kink here.
  •   Custom bullets.
  •   text
MAYBE
IC LIMITS
OOC LIMITS

code by cawaii

CODE
Copy and paste the code below into the post you want to place it in.

WEB-RESPONSIVE?
This means this code is functioning and readable on all devices. Try resizing your browser window or viewing this on mobile/desktop to see what I mean!

BULLETS
You can change the bullets of each list by changing the highlighted part here: list-style: '★'; to anything here that applies to unordered lists. You can even use an image by replacing the highlighted text with url('INSERT YOUR LINK HERE'). You can also change individual bullets to indicate anything you need, like your favorite kinks or the legend provided by [community profile] bannertech's code.

COLORS
You can change these colors to customize your code.

#44AF69
#FCAB10
#2B9EB3
#F8333C

TOOLTIPS/DESCRIPTIONS
Since tooltips don't work on mobile, I tried replicating the same function by using comments. Try clicking the link under the Yes column! It jumps to a comment on the page where you can further explain the item (e.g. "I only want to do XYZ if ABC" or "").

To do this, replace the highlighted text here: <a [...] href="#cmt0000"> with the last part of the URL of the comment you want to link to. This lets the reader jump to the comment without reloading the page every time.

If you use this code or have any questions, let me know in the comments! I like getting comments.

at_heart: (support :: the sign of victory)

[personal profile] at_heart 2023-05-06 11:04 pm (UTC)(link)
Similar idea over here, but the comment links are an excellent idea. I was already using them for the image gallery here, and I feel so silly for not thinking that of course making them relative links would be good for page reloading ❤️

(You could totally easily use the generator thingie I made and modify it for your code if you wanted! Ever since I saw someone else doing it, I've been v excited and happy to recommend them.)
amber: (Default)

[personal profile] amber 2023-05-29 01:52 pm (UTC)(link)
thank you thank you thank you! i know i am not only going to be using this but linking it to others - since i am on mobile 100% of the time it's always so nice to see code that is responsive like this. scales really well with my phone's font size increases too.