V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
python30
V2EX  ›  Python

geekhub 上面的默认颜色 是白色的,怎么调置默认颜色是黑色的, 点那三个换颜色的按钮是改变 body 里面的

  •  
  •   python30 · 2020-05-16 23:38:08 +08:00 · 1619 次点击
    这是一个创建于 1438 天前的主题,其中的信息可能已经有所发展或是发生改变。

    geekhub.com 上面:

    现在默认颜色是白色的

    <body class="theme-light bg-tertiary-99">

    还有一个是:

    <body class="bg-tertiary-99 theme-jade">

    我想改成黑色的:

    <body class="bg-tertiary-99 theme-ocean">

    怎么样把默认颜色改成黑色的?

    2 条回复    2020-05-16 23:58:31 +08:00
    ClericPy
        1
    ClericPy  
       2020-05-16 23:54:17 +08:00
    如果是我... 估计油猴一句 js 取节点 setAttribute 改 class

    不过我比较好奇 stylus 如果想做怎么实现, css 里有什么覆盖的方式么? 只知道 .a,.b 可以共用一套规则, 但是没听说继承之类的语法
    ClericPy
        2
    ClericPy  
       2020-05-16 23:58:31 +08:00
    刚在 stylus 试了下, 只能重新覆盖一次, 想语法上继承得用 less 之类的...

    .theme-light {
    --primary-100: #526984;
    --primary-200: #3f5064;
    --primary-300: #334152;
    --primary-400: #232d38;
    --primary-500: #a0aec0;
    --primary-600: #8795a6;
    --primary-700: #788391;
    --primary-800: #a6afb9;
    --primary-900: #f7fafc;
    --secondary-500: #667eea;
    --secondary-600: #7f9cf5;
    --secondary-700: #a3bffa;
    --secondary-800: #c3dafe;
    --tertiary-99: #1a2028;
    --tertiary-100: #1f262e;
    --tertiary-200: #232b34;
    --tertiary-300: #606a76;
    --tertiary-400: #707c89;
    --tertiary-500: #adb5bd;
    --tertiary-600: #ced4da;
    --tertiary-700: #dee2e6;
    --tertiary-800: #e9ecef;
    --tertiary-900: #171c21;
    --tertiary-999: #fff;
    }

    这样就覆盖了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1174 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.