Advertisement
Phonoman

EUC Forum Dark Mode v1.0

Nov 24th, 2024 (edited)
145
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.68 KB | Source Code | 0 0
  1. /*
  2. Since our https://forum.electricunicycle.org/ does not have alternative themes and having only bright white colors can be super blinding (it was to me) and exhausting for the eyes when it's dark, I decided to cook up a way for any forum member to get access to a Dark Mode - and a possibility to customize it as we all like completely different things and I know many will not like the main accent colors that I like.
  3. So I wrote all this up to change the existing forum colors and in a way where you can change the "--custom-<yada_yada>" RGB color values and most of the site will change along.
  4.  
  5. Feel free to experiment and adjust the colors to your liking or change specific elements to whatever you like. I just wanted to give our community prolonged eyesight and comfort. :D
  6.  
  7. I also tried commenting/describing most things I've changed so it's somewhat easier to decypher what is what as it took a while to track most things, if you want to change more than just my "--custom-" values - so the "--theme-" ones - you'll need to tinker for a while as some don't explain well what they're used for or where you'd find those.
  8.  
  9. To use all of this, add the Stylebot extension to your browser (available to Chrome/Firefox/Edge at the moment https://stylebot.dev/)
  10. and when on the EUC Forum page, click the icon and "Open Stylebot", then paste all of this in.
  11.  
  12. Original topic with more information and instructions at https://forum.electricunicycle.org/topic/39676-i-made-dark-mode-for-this-forum
  13. Brought to you by yours truly, Phonoman.
  14. */
  15.  
  16. :root {
  17.   /* EASY-MODE */
  18.   /* You can edit all changed colors in bulk here. */
  19.   /* Just google "RGB color picker" to experiment with colors more easily. */
  20.   --custom-dark_1: 0, 0, 0;
  21.   --custom-dark_2: 11, 11, 11;
  22.   --custom-dark_3: 35, 35, 35;
  23.   --custom-most_fonts: 200, 200, 200;
  24.   /* If primary accents (most titles/headings, some elements) feel too bright, you can try replacing with a darker version - 0, 89, 79 */
  25.   --custom-primary_accents: 5, 150, 150;
  26.   --custom-secondary_accents: 69, 110, 110;
  27.   --custom-third_accents: 5, 105, 105;
  28.   --custom-post_background: 21, 21, 21;
  29.   --custom-small_details: 5, 70, 70;
  30.   --custom-search_bar: 5, 50, 50;
  31.   --custom-pager_background: 14, 14, 14;
  32.   /* Set this to opposite of what you want as it will be inverted for colors to contrast correctly - so to have max black panel set this to max white. */
  33.   --custom-text_editor_panel: 255, 255, 255;
  34.  
  35.   /* ADVANCED */
  36.   /* Majority of overriden forum colors. */
  37.   --theme-text_color: var(--custom-most_fonts);
  38.   --theme-section_title: var(--custom-dark_1);
  39.   --theme-text_dark: var(--custom-most_fonts);
  40.   --theme-area_background: var(--custom-dark_2);
  41.   --theme-page_background: var(--custom-dark_2);
  42.   --theme-area_background_reset: var(--custom-post_background);
  43.   --theme-area_background_light: var(--custom-dark_3);
  44.   --theme-main_nav: var(--custom-dark_1);
  45.   --theme-main_nav_tab: var(--custom-dark_3);
  46.   --theme-main_nav_tab_font: var(--custom-most_fonts);
  47.   --theme-light_button: var(--custom-small_details);
  48.   --theme-light_button_font: var(--custom-most_fonts);
  49.   --theme-very_light_button: var(--custom-third_accents);
  50.   --theme-very_light_button_font: var(--custom-most_fonts);
  51.   --theme-primary_button: var(--custom-third_accents);
  52.   --theme-important_button: var(--custom-third_accents);
  53.   --theme-active_input_border: var(--custom-third_accents);
  54.   --theme-widget_title_bar: var(--custom-dark_2);
  55.   --theme-widget_title_font: var(--custom-most_fonts);
  56.   --theme-tab_background: var(--custom-dark_3);
  57.   --theme-section_title_font: var(--custom-most_fonts);
  58.   --theme-header: var(--custom-dark_2);
  59.   --theme-header_text: var(--custom-most_fonts);
  60.   --theme-comment_count: var(--custom-most_fonts);
  61.   --theme-item_status: var(--custom-third_accents);
  62.   --theme-notification_bubble: var(--custom-primary_accents);
  63.   --theme-tag: var(--custom-secondary_accents);
  64.   --theme-tag_font: var(--custom-most_fonts);
  65.   --theme-item_status: var(--custom-primary_accents);
  66.   --theme-mentions: var(--custom-primary_accents);
  67.   --theme-link_button: var(--custom-primary_accents);
  68.   --theme-featured: var(--custom-primary_accents);
  69.   --theme-button_bar: var(--custom-pager_background);
  70.  
  71.   /* Featured/pinned topics star symbol background */
  72.   --positive-light: rgb(var(--custom-most_fonts));
  73.   /* Border shadow for most elements */
  74.   --box--boxShadow: 0px 2px 4px -1px rgba(var(--custom-secondary_accents), 0.3);
  75. }
  76.  
  77. /* Users */
  78. a.ipsType_break {
  79.   color: rgb(var(--custom-primary_accents));
  80. }
  81.  
  82. /* Searchbar */
  83. #elSearch{
  84.   background: rgb(var(--custom-search_bar));
  85.   color: rgb(var(--custom-most_fonts));
  86. }
  87.  
  88. /* Logo */
  89. #elLogo img {
  90.   background: url("https://i.ibb.co/2cyChy8/electric-unicycle-logo.png") top right no-repeat;
  91.   height: 0;
  92.   width: 0;
  93.   padding: 150px 400px 0 0; /* Insert actual image size (height width 0 0) */
  94. }
  95.  
  96. /* CKEditor restore message */
  97. div[data-role~="autoSaveRestoreMessage"]  {
  98.  background: rgb(var(--custom-third_accents))
  99. }
  100.  
  101. /* CKEditor panel */
  102. .cke_reset_all {
  103.   background-color: rgb(var(--custom-text_editor_panel));
  104.   filter: invert(1) hue-rotate(180deg);
  105. }
  106.  
  107. /* Main forum sections */
  108. div h4 a {
  109.   color: rgb(var(--custom-primary_accents));
  110. }
  111.  
  112. /* Sidebar titles */
  113. .ipsDataItem_title {
  114.   color: rgb(var(--custom-primary_accents));
  115. }
  116.  
  117. /* Main forum section last thread title */
  118. li.ipsDataItem_lastPoster__title a {
  119.   color: rgb(var(--custom-primary_accents));
  120. }
  121.  
  122. /* Users in the same post */
  123. .ipsLiveActivity {
  124.   background: rgb(var(--custom-small_details));
  125.   color: rgb(var(--custom-most_fonts));
  126. }
  127.  
  128. /* Start new topic button */
  129. a.ipsButton.ipsButton_link.ipsButton_medium.ipsButton_fullWidth {
  130.   border-color: rgb(var(--custom-secondary_accents));  
  131.   color: rgb(var(--custom-secondary_accents));
  132. }
  133.  
  134. /* Comment history button */
  135. aside > ul > li.ipsMargin_top > ul > li > a {
  136.   color: rgb(var(--custom-primary_accents));
  137. }
  138.  
  139. /* Few links when creating a post */
  140. a.ipsCursor_pointer {
  141.   color: rgb(var(--custom-primary_accents));
  142. }
  143.  
  144. /* Breadcrumbs */
  145. .ipsBreadcrumb a {
  146.     color: rgb(var(--custom-secondary_accents));
  147. }
  148.  
  149. /* Leaderboard topic titles */
  150. #ipsTabs_elTabBar_elTableaderboard_panel > section > div h2 a {
  151.   color: rgb(var(--custom-primary_accents));
  152. }
  153.  
  154. /* Grid view forum section titles */
  155. div.ipsForumGrid h3 a {
  156.   color: rgb(var(--custom-primary_accents));
  157. }
  158.  
  159. /* Self profile post titles */
  160. #elProfileActivityOverview h2 a {
  161.   color: rgb(var(--custom-primary_accents));
  162. }
  163. /* Self profile bar  */
  164. #elProfileStats {
  165.   background-color: rgb(var(--custom-dark_1));
  166. }
  167.  
  168. /* Notification view all link */
  169. div.ipsMenu_footerBar a {
  170.   color: rgb(var(--custom-primary_accents));
  171. }
  172.  
  173. /* Recently browsing user at frontpage */
  174. div[data-controller~="core.front.core.onlineUsersWidget"] a {
  175.   color: rgb(var(--custom-primary_accents));
  176. }
  177.  
  178. /* All activity listing post titles */
  179. div.ipsPhotoPanel > div > h2 > span > a {
  180.   color: rgb(var(--custom-primary_accents));
  181. }
  182.  
  183. /* Profile currently doing what in forum */
  184. #elProfileInfoColumn > div span.ipsDataItem_main.ipsType_break a {
  185.   color: rgb(var(--custom-primary_accents));
  186. }
  187.  
  188. /* /online user activity links  */
  189. #ipsLayout_mainArea > div.ipsBox > div > ol > li > div > div > p.ipsType_reset.ipsTruncate.ipsTruncate_line.ipsType_break > a {
  190.   color: rgb(var(--custom-third_accents));
  191. }
  192.  
  193. /* Scrollbar settings below */
  194. body::-webkit-scrollbar {
  195.   width: 12px;
  196. }
  197. /* Scrollbar background color */
  198. body::-webkit-scrollbar-track {
  199.   background: rgb(var(--custom-dark_3));
  200. }
  201. /* Scrollbar main piece */
  202. body::-webkit-scrollbar-thumb {
  203.   background-color: rgb(var(--custom-third_accents));
  204.   border-radius: 20px;
  205.   border: 2px solid black;
  206. }
  207.  
Advertisement
Comments
  • sofiachloe
    18 days
    # text 0.29 KB | 0 0
    1. Pastebin.com is a text storage site. It was created on September 3, 2002 by Paul Dixon, and reached 1 million active pastes (excluding spam and expired pastes) eight years later, in 2010. Pastebin.com is a popular source of .onion links that lead to the dark web.
    2.  
    3. https://2048-cupcakes.org
    4.  
Add Comment
Please, Sign In to add comment
Advertisement