★ wanayoo — archive 1999 https://github.com/gitalk/gitalk/issues/376Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改变Gitalk的主题颜色。 #376

Open
OrwillT opened this issue Apr 8, 2020 · 2 comments
Open

改变Gitalk的主题颜色。 #376

OrwillT opened this issue Apr 8, 2020 · 2 comments

Comments

@OrwillT
Copy link

@OrwillT OrwillT commented Apr 8, 2020

有没有自定义样式的选项可以修改Gitalk的主题颜色。因为蓝色和博客的主色调并不符合。

@Wangbaoqi
Copy link

@Wangbaoqi Wangbaoqi commented Apr 27, 2020

同问

@OliverLew
Copy link

@OliverLew OliverLew commented May 2, 2020

可以直接在浏览器inspector里找到元素,然后用css定制的吧,我在firefox上改了一下,是这样的:

Screenshot_2020-05-02_11-43-35

当然不一定覆盖的很全,可以直接找原css( https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css )。下面是火狐上导出来的修改css:

/* gitalk.css | https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css */

.gt-container .gt-btn {
  /* border: 1px solid #6190e8; */
  /* background-color: #6190e8; */
  border: 1px solid #619008;
  background-color: #619008;
}

.gt-container .gt-btn-preview {
  /* color: #6190e8; */
  color: #619008;
}

.gt-container .gt-header-controls-tip {
  /* color: #6190e8; */
  color: #619008;
}

.gt-container .gt-svg svg {
  /* fill: #6190e8; */
  fill: #619008;
}

.gt-container a:hover {
  /* color: #81a6ed; */
  /* border-color: #81a6ed; */
  color: #81a60d;
  border-color: #81a60d;
}

.gt-container .gt-link {
  /* border-bottom: 1px dotted #6190e8; */
  border-bottom: 1px dotted #619008;
}

.gt-container a {
  /* color: #6190e8; */
  color: #619008;
}

.gt-container .gt-popup .gt-action.is--active::before {
  /* background: #6190e8; */
  background: #619008;
}

.gt-container .gt-btn-preview:hover {
  /* border-color: #81a6ed; */
  border-color: #81a60d;
}

.gt-container .gt-user .is--poping .gt-ico svg {
  /* fill: #6190e8; */
  fill: #619008;
}

.gt-container .gt-btn-public:hover {
  /* background-color: #81a6ed; */
  /* border-color: #81a6ed; */
  background-color: #81a60d;
  border-color: #81a60d;
}

.gt-container .gt-comment-username {
  /* color: #6190e8; */
  color: #619008;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.