pastebin - collaborative debugging tool
kpaste.net RSS


bsky.app css
Posted by Anonymous on Fri 15th Nov 2024 23:44
raw | new post

  1. /* This is some custom CSS for BlueSky that you can easily manipulate.
  2.    It can be added to the page easily with any browser add-on that
  3.    lets you add custom CSS to pages you view. I use a simple one for
  4.    FireFox called "CustomCSS Injector".                             */
  5.  
  6. /* Set background colour (you could also assign to .r-1xcajam)      */
  7. .r-1p0dtai {
  8.     background-color: #454751;
  9. }
  10. /* Highlight colour (when you drag on text to select it)            */
  11. ::selection {
  12.     background-color: #ffedb8;
  13. }
  14.  
  15. /* This fixes that weird space on the left side of the website.     */
  16. html {
  17.     scrollbar-gutter: stable;
  18. }
  19.  
  20. /* This fixes the very top panel (with the BlueSky butterfly logo and
  21.    the '#' Feeds link), which gets overlapped by the background color
  22.    for some reason. I add a border bc it looks nicer (when the bg
  23.    isn't white, ergo it doesn't all blend together seamlessly.      */
  24. .r-2llsf > div:nth-child(1) {
  25.     z-index: 2;
  26.     border-bottom: 1px solid #eee;
  27. }
  28. /* This selects the left and right panels at the same time:         */
  29. .r-1rnoaur {
  30.     border-radius: 5px;
  31.     background-color: #fffc!important;
  32. }
  33. /* This one just does the left panel:                               */
  34. .r-c4unlt {
  35.     left: 12px!important;
  36.     padding-bottom: 15px;
  37. }
  38.  /* This is for the 'New Post' button (or rather its container) in
  39.     the left panel.                                                 */
  40. .r-c4unlt > div {
  41.     margin: auto;
  42.     background-color: transparent;
  43.     padding: 15px 0 8px !important;
  44. }
  45. /* For buttons anywhere on the page (I don't like everything being
  46.    so rounded and circular, just a preference)                      */
  47. button {
  48.     border-radius: 3px !important;
  49. }
  50. /* This controls the right-side panel. I move it down a bit to match
  51.    the left panel.                                                  */
  52. .r-1ipicw7 {
  53.     top: 9px;
  54. }
  55. /* --- If you want to un-round PFPs (and borders around embeds) --- */
  56. .r-lchren a > div > .css-175oi2r, /* PFPs in posts */
  57. .r-lchren a > .css-175oi2r,       /* border around embeds */
  58. .r-c4unlt .r-417010 {             /* your PFP in top-left panel */
  59.     border-radius: 3px!important;
  60. }
  61. /* Then this removes PFP circle-outlines (in top-left & profile)    */
  62. .r-c4unlt > a > div > div:nth-child(2),
  63. .r-v53qcl > div > div:nth-child(2) {
  64.     border: none;
  65. }
  66.  
  67. /* ---- ---- For the main GUI (timeline posts etc.) ---- ----
  68.    These elements are transparent by default, so if you don't set them
  69.    to white, you just see through them to the background color.
  70.    If that's the effect you want, you could just colour the text here
  71.    (`color: (something)`) instead. White timeline is just my
  72.    preference.                                                      */
  73.  
  74. .r-lchren, /* main post column section */
  75. .r-lchren > div > div > button /* 'Write your reply' panel */ {
  76.     background-color: #fff!important;
  77. }
  78.  
  79. /* I suspect BlueSky will eventually rework their entire DOM setup
  80.    on desktop at which point all of this will break. Til then!      */
  81.  
  82. /* I also realize this doesn't affect https://bsky.app/settings
  83.    for some reason - it loads differently. I don't care enough to
  84.    figure that out since you don't look at that page often anyway.  */

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at