8000 The font color of the hovered item · Issue #12 · reminiflux/reminiflux · GitHub
[go: up one dir, main page]

Skip to content
7FFF

The font color of the hovered item #12

Open

Description

@troilus

Sorry, I couldn't find where to modify the code. Could you change the font color of the hovered item to white to improve readability, thanks!

before:

Image

after:

Image

Activity

  1. troilus commented on Apr 14, 2025

    @troilus
    Author

    here is a js im using:

    // ==UserScript==
    // @name         ReminiFlux 悬停文字白底灰显优化
    // @namespace    http://tampermonkey.net/
    // @version      1.3
    // @description  强制.esnlns文字为白色,悬停时多个元素文字变白
    // @author       You
    // @match        https://reminiflux.github.io/
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        // 添加CSS规则
        const css = `
            /* 默认状态下的.esnlns文字白色 */
            .esnlns {
                color: white !important;
            }
    
            /* 悬停时的文字白色(覆盖所有指定元素) */
            tr.sc-dhKdcB.dcAiRg:hover,
            .esnlns:hover,
            .dTzbZp:hover {
                color: white !important;
            }
    
            /* 可选:增强悬停效果(示例) */
            .dTzbZp:hover {
                background-color: #555 !important; /* 更深的灰色 */
                transition: all 0.2s ease;        /* 平滑过渡 */
            }
        `;
    
        // 动态注入样式
        const style = document.createElement('style');
        style.type = 'text/css';
        style.appendChild(document.createTextNode(css));
        document.head.appendChild(style);
    
        // 调试用:打印注入的样式(可选)
        console.log('[ReminiFlux样式已注入]', css);
    })();
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0