mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
Compare commits
5 Commits
1.22.4-202
...
1.22.5-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cbae049b9 | ||
|
|
b8eab9c55c | ||
|
|
ad43fdc869 | ||
|
|
c3e3f5ca58 | ||
|
|
249908b90b |
@@ -1,14 +1,12 @@
|
||||
# gitea-github-theme
|
||||
|
||||
> 基于 https://github.com/Rainnny7/gitea-github-theme
|
||||
|
||||
- UI 默认字体 [Maple Hand](https://github.com/subframe7536/maple-font/tree/other-resources/cn-resource/maple-hand) & [VictorMono Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/VictorMono.zip) & [汉仪正圆](https://www.hanyi.com.cn/productdetail.php?id=2913) (优先匹配左侧, 需要系统包含相应字体)
|
||||
- Actions 日志默认字体 VictorMono 优先
|
||||
|
||||
> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行
|
||||
|
||||
## Gitea 版本
|
||||
|
||||
- Gitea 1.22+
|
||||
|
||||
## 安装
|
||||
|
||||
1. 将 theme-github.css 放入 gitea/public/assets/css 目录下
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Made by Rainnny <3 */
|
||||
/* Made by Luting ^-^ */
|
||||
|
||||
:root :lang(zh-CN) {
|
||||
--fonts-override: "Maple Hand", "VictorMono Nerd Font", "HYZhengYuan";
|
||||
@@ -446,7 +447,7 @@ button,
|
||||
color: #3fb950 !important;
|
||||
}
|
||||
|
||||
.ui.ui.ui.green.label {
|
||||
.ui.ui.ui.green.label:not(.issue-state-label) {
|
||||
background: var(--color-body);
|
||||
border-color: #3fb950;
|
||||
border-width: 1px;
|
||||
@@ -464,6 +465,37 @@ button,
|
||||
color: var(--color-orange);
|
||||
}
|
||||
|
||||
.ui.ui.ui.purple.label {
|
||||
border-radius: 25px !important;
|
||||
}
|
||||
|
||||
.ui.ui.ui.green.label.issue-state-label {
|
||||
background: var(--color-primary);
|
||||
border-radius: 25px !important;
|
||||
}
|
||||
|
||||
.ui.ui.ui.red.label.issue-state-label {
|
||||
background: var(--color-purple);
|
||||
border-radius: 25px !important;
|
||||
}
|
||||
|
||||
.tw-bg-green {
|
||||
background-color: var(--color-primary) !important;
|
||||
}
|
||||
|
||||
.tw-bg-red {
|
||||
background-color: var(--color-purple) !important;
|
||||
}
|
||||
|
||||
.ui.dropdown .menu>.divider,
|
||||
.ui.dropdown .menu>.item {
|
||||
background: var(--color-box-header);
|
||||
}
|
||||
|
||||
.ui.dropdown .menu>.item:hover {
|
||||
background: #1f6feb;
|
||||
}
|
||||
|
||||
.ui.label:not(.basic) {
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
@@ -705,7 +737,7 @@ a.muted:hover,
|
||||
:root {
|
||||
--is-dark-theme: true;
|
||||
--border-radius: 6px;
|
||||
--color-primary: rgba(57, 211, 83, 0.6);
|
||||
--color-primary: #238636;
|
||||
--color-primary-contrast: #fff;
|
||||
--color-primary-dark-1: rgba(68, 255, 97, 0.7);
|
||||
--color-primary-dark-2: rgba(57, 211, 83, 1);
|
||||
@@ -767,7 +799,7 @@ a.muted:hover,
|
||||
--color-teal: #69d4cf;
|
||||
--color-blue: #4493f8;
|
||||
--color-violet: #754ad3;
|
||||
--color-purple: #b65dd4;
|
||||
--color-purple: #8957e5;
|
||||
--color-pink: #e04b9f;
|
||||
--color-brown: #a86d45;
|
||||
--color-black: #141516;
|
||||
@@ -875,7 +907,7 @@ a.muted:hover,
|
||||
--color-orange-badge-hover-bg: #f2711c4d;
|
||||
--color-git: #f05133;
|
||||
--color-body: #0d1117;
|
||||
--color-box-header: #161b22;
|
||||
--color-box-header: #151b23;
|
||||
--color-box-body: #0d1117;
|
||||
--color-box-body-highlight: #262b36;
|
||||
--color-text-dark: #dbe0ea;
|
||||
|
||||
Reference in New Issue
Block a user