Advertisement
S0G

SA Custom Styling

S0G
Jan 6th, 2023 (edited)
1,296
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.05 KB | Source Code | 0 0
  1. /*
  2.  
  3. Notice, please read!
  4.  
  5.     This userstyle is designed for use with Scratch Addon's scratchr2 addon using the Bubble style
  6. forum post. This will also automattically try to use the colors you've choosen in darkWww.
  7.  
  8.     Also, if you don't like the color of the current forum header, change `--SACS-forum-header-color`
  9. to your desired color. The tops of forum posts will also update to refect the forum header's color.
  10.  
  11. Made by Steve0Greatness@scratch.mit.edu, S0G@youtube.com; Verison 1.0.2-b
  12.  
  13. Changelog -- pastebin.com/bDQZShj2#KTkv7PXw
  14. Pastebin  -- pastebin.com/bDQZShj2
  15.  
  16. */
  17.  
  18. /* VARIABLE DEFININITIONS */
  19.  
  20. :root {
  21.     --SACS-forum-header-color: #064734;
  22.     --SACS-forum-post-border-color: var(--darkWww-border, #0000001a);
  23.     --SACS-forum-post-sig-border: var(--darkWww-border-20, #CCC);
  24.     --SACS-URL-color: var(--darkWww-link, #4D97FF);
  25.     --SACS-reply-box-color: var(--darkWww-box, white);
  26.     --SACS-URL-hover-color: var(--darkWww-link-hover, #4280D7);
  27.     --SACS-RSS-button-filters: grayscale() invert() brightness(3);
  28. }
  29.  
  30. /* LINKS DE-BUTTON-IFICATION */
  31. .linkst li:not(:last-child) a, .linksb li:not(:last-child) a, .pagination span, .pagination a {
  32.     background-color: transparent !important;
  33.     color: var(--SACS-URL-color) !important;
  34.     border: none !important;
  35.     padding: 0 !important;
  36. }
  37.  
  38. .linkst li:not(:last-child) a:hover, .linksb li:not(:last-child) a:hover, .pagination span:hover, .pagination a:hover {
  39.     color: var(--SACS-URL-hover-color) !important;
  40. }
  41.  
  42. /* FORUM BOX CLASSIC */
  43. .firstpost .box .box-content {
  44.     border-left: 1px solid var(--SACS-forum-post-border-color) !important;
  45.     border-top: 1px solid var(--SACS-forum-post-border-color) !important;
  46.     border-bottom: 1px solid var(--SACS-forum-post-border-color) !important;
  47.     border-bottom-right-radius: 5px;
  48.     border-bottom-left-radius: 5px;
  49.     padding-left: 15px;
  50. }
  51.  
  52. .postright::before {
  53.     display: none !important;
  54. }
  55.  
  56. .postfootright > ul {
  57.     border-bottom-left-radius: 0 !important;
  58.     border-bottom: none !important;
  59. }
  60.  
  61. .postmsg {
  62.     border-top-right-radius: 0 !important;
  63.     border-top: none !important;
  64.     min-height: 15rem;
  65. }
  66.  
  67.  
  68. .postleft {
  69.     margin-top: 15px;
  70. }
  71.  
  72. .firstpost .box .box-head {
  73.     background-color: var(--SACS-forum-header-color) !important;
  74.     padding: 8px;
  75.     border: 1px solid var(--SACS-forum-post-border-color) !important;
  76.     border-bottom: none !important;
  77.     border-top-right-radius: 5px;
  78.     border-top-left-radius: 5px;
  79. }
  80. .firstpost .box .box-head .conr, .firstpost .box .box-head a {
  81.     color: #fff !important;
  82. }
  83.  
  84. /* REPLY BOX */
  85. #reply .box-head {
  86.     border: 1px solid var(--SACS-forum-post-border-color) !important;
  87.     border-top-right-radius: 5px !important;
  88.     padding: 5px !important;
  89.     background-color: var(--SACS-reply-box-color) !important;
  90.     border-top-left-radius: 5px !important;
  91. }
  92.  
  93. #reply .box-content {
  94.     border: 1px solid var(--SACS-forum-post-border-color) !important;
  95.     border-top: none !important;
  96.     padding: 10px !important;
  97.     border-bottom-right-radius: 5px !important;
  98.     padding-bottom: 15px !important;
  99.     border-bottom-left-radius: 5px !important;
  100. }
  101.  
  102. #reply .box-head h4 {
  103.     margin: 5px !important;
  104. }
  105.  
  106. /* PAGE SELECTOR */
  107. .pagination .disabled,
  108. .pagination .disabled:hover,
  109. .pagination span.current,
  110. .pagination span.current:hover {
  111.     opacity: 1 !important;
  112.     color: #fff !important;
  113. }
  114.  
  115. .page-current.active {
  116.     color: white !important;
  117. }
  118. .page-current.active:hover {
  119.     color: white !important;
  120. }
  121. .page-links .disabled:hover {
  122.     color: white !important;
  123.     filter: none;
  124.     opacity: 1 !important;
  125. }
  126.  
  127. /* "SEARCH" RESULTS */
  128. .blockpost.searchposts .postmsg {
  129.     border-bottom-left-radius: 0 !important;
  130.     border-bottom: none !important;
  131. }
  132. .blockpost.searchposts .box-content {
  133.     border: 1px solid var(--SACS-forum-post-border-color) !important;
  134.     border-right: none !important;
  135.     border-bottom-left-radius: 5px !important;
  136. }
  137. .blockpost.searchposts .box-head {
  138.     border: 1px solid var(--SACS-forum-post-border-color) !important;
  139.     border-bottom: none !important;
  140.     padding: 8px;
  141.     background-color: var(--SACS-forum-header-color) !important;
  142.     border-top-left-radius: 5px !important;
  143.     border-top-right-radius: 5px !important;
  144. }
  145. .blockpost.searchposts .box-head, .blockpost.searchposts .box-head a {
  146.     color: #fff !important;
  147. }
  148. .blockpost.searchposts .postleft {
  149.     margin-left: 15px;
  150. }
  151.  
  152. /* FORUM HEADER */
  153. .djangobb #brdheader.box h2 {
  154.     text-align: center;
  155. }
  156.  
  157. .djangobb #brdheader.box {
  158.     background-color: var(--SACS-forum-header-color);
  159. }
  160.  
  161. /* MISC */
  162. .djangobb .firstpost:first-child .sa-original-poster {
  163.     display: none;
  164. } /* Removes the "Original Poster" badge from the first post. Only works if
  165. "Highlight project creator in comments" is on*/
  166.  
  167.  
  168. .postsignature hr {
  169.     display: none !important;
  170. }
  171.  
  172. .postsignature {
  173.     border-top: 1px var(--SACS-forum-post-sig-border) solid;
  174.     padding-top: 5px;
  175.     margin-top: 5px;
  176. } /* This and the one above this will make the line between the post body
  177. and signature go across the whole post */
  178.  
  179.  
  180. .breadcrumb_rss {
  181.     filter: var(--SACS-RSS-button-filters);
  182. } /* This is to change the color of the RSS button to match the other links */
  183.  
Advertisement
Comments
  • S0G
    S0G
    345 days (edited)
    # text 0.16 KB | 0 0
    1. V-1.0.1
    2. -- The "original poster" badge will no longer show up on the first post of a topic
    3.  
    4. V-1.0.0
    5. -- This is a reordering update
    6. -- Updates are now numbered
    • S0G
      S0G
      326 days
      # text 0.17 KB | 0 0
      1. V-1.0.2
      2. -- The forums' header color is now effected by the `var(--SACS-forum-header-color)` variable.
      3. -- It's also centered in order to match `/search` and `/explore` more.
Add Comment
Please, Sign In to add comment
Advertisement