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

2020-05-16 23:38:08 +08:00
 python30

geekhub.com 上面:

现在默认颜色是白色的

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

还有一个是:

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

我想改成黑色的:

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

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

1627 次点击
所在节点    Python
2 条回复
ClericPy
2020-05-16 23:54:17 +08:00
如果是我... 估计油猴一句 js 取节点 setAttribute 改 class

不过我比较好奇 stylus 如果想做怎么实现, css 里有什么覆盖的方式么? 只知道 .a,.b 可以共用一套规则, 但是没听说继承之类的语法
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;
}

这样就覆盖了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/672466

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX