Skip to content

chatgpt - May 2024 by tompassarelli

Details

Authortompassarelli

LicenseNo License

Categorychatgpt.com

Created

Updated

Size1.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

A new userstyle

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           chatgpt - May 2024
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */

@-moz-document domain("chatgpt.com") {
    :root {
      --code-bg-light: white;
      --comment-color-light: #008000; /* Green color for comments in light mode */
    }
    /* Light Mode */
    /* lighten the primary code box background */
    body.light-mode .markdown pre .dark .overflow-y-auto {
      background-color: var(--code-bg-light);
    }   
    /* square box, just to avoid rounded side clipping i have not figured out */
    body.light-mode .markdown pre {
      border-radius: 0px;
    }
    body.light-mode .markdown pre .dark {
      border-radius: 0px;
    }
    /* fix some html tags that are still not readable */
    body.light-mode .hljs-meta {
      color: black;
    }
    /* hl code comments in light  mode in a legible format */
    body.light-mode .markdown pre code .hljs-comment {
      color: var(--comment-color-light);
    } 
    body.light-mode .markdown pre code, 
    body.light-mode .markdown pre code span {
        color: black;
        text-decoration: none;
        border: none;
        background: none; /* Ensure no background issues */
        padding: 0px;
    }
}

Reviews

No reviews yet.