mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
Compare commits
9 Commits
1.22.4-202
...
1.22.5-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e424b85fd | ||
|
|
cbbab7f453 | ||
|
|
1cbae049b9 | ||
|
|
b8eab9c55c | ||
|
|
ad43fdc869 | ||
|
|
c3e3f5ca58 | ||
|
|
249908b90b | ||
|
|
f9eef1bf09 | ||
|
|
bb3b4a939d |
@@ -1,14 +1,12 @@
|
|||||||
# gitea-github-theme
|
# 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) (优先匹配左侧, 需要系统包含相应字体)
|
- 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 优先
|
- Actions 日志默认字体 VictorMono 优先
|
||||||
|
|
||||||
> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行
|
> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行
|
||||||
|
|
||||||
## Gitea 版本
|
|
||||||
|
|
||||||
- Gitea 1.22+
|
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
1. 将 theme-github.css 放入 gitea/public/assets/css 目录下
|
1. 将 theme-github.css 放入 gitea/public/assets/css 目录下
|
||||||
|
|||||||
139
theme-github.css
139
theme-github.css
@@ -1,4 +1,5 @@
|
|||||||
/* Made by Rainnny <3 */
|
/* Made by Rainnny <3 */
|
||||||
|
/* Made by Luting ^-^ */
|
||||||
|
|
||||||
:root :lang(zh-CN) {
|
:root :lang(zh-CN) {
|
||||||
--fonts-override: "Maple Hand", "VictorMono Nerd Font", "HYZhengYuan";
|
--fonts-override: "Maple Hand", "VictorMono Nerd Font", "HYZhengYuan";
|
||||||
@@ -43,6 +44,8 @@ button,
|
|||||||
.ui.selection.active.dropdown:hover,
|
.ui.selection.active.dropdown:hover,
|
||||||
.ui.selection.active.dropdown .menu,
|
.ui.selection.active.dropdown .menu,
|
||||||
.ui.selection.active.dropdown:hover .menu,
|
.ui.selection.active.dropdown:hover .menu,
|
||||||
|
.ui.button,
|
||||||
|
.ui.button:hover,
|
||||||
.ui.menu .item,
|
.ui.menu .item,
|
||||||
.ui.vertical.menu .header.item,
|
.ui.vertical.menu .header.item,
|
||||||
.ui.secondary.menu .item {
|
.ui.secondary.menu .item {
|
||||||
@@ -442,13 +445,17 @@ button,
|
|||||||
color: var(--color-console-fg);
|
color: var(--color-console-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.ui.ui.green.label {
|
.text.green {
|
||||||
|
color: #3fb950 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.ui.ui.green.label:not(.issue-state-label) {
|
||||||
background: var(--color-body);
|
background: var(--color-body);
|
||||||
border-color: var(--color-green);
|
border-color: #3fb950;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
color: var(--color-green);
|
color: #3fb950;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.ui.ui.orange.label {
|
.ui.ui.ui.orange.label {
|
||||||
@@ -460,6 +467,69 @@ button,
|
|||||||
color: var(--color-orange);
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.ui.ui.basic.primary.label {
|
||||||
|
color: var(--color-blue);
|
||||||
|
background-color: #388bfd33 !important;
|
||||||
|
border-color: #1f6feb !important;
|
||||||
|
border-radius: 25px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.ui.ui.ui.basic.primary.label:hover {
|
||||||
|
color: #79c0ff;
|
||||||
|
background-color: #3a83fd5c !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment:target .comment-container {
|
||||||
|
border-color: #1e4273 !important;
|
||||||
|
box-shadow: 0 0 0 2px #1e4273 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment:target .header {
|
||||||
|
background-color: #121d2f;
|
||||||
|
border-color: #1e4273 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment:target .header:before {
|
||||||
|
border-right-color: #1e4273 !important;
|
||||||
|
filter: drop-shadow(-2px 0 0 #1e4273) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tw-bg-green {
|
||||||
|
background-color: var(--color-primary) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tw-bg-red {
|
||||||
|
background-color: var(--color-purple) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.dropdown .menu,
|
||||||
|
.branch-tag-item.active,
|
||||||
|
.ui.pointing.dropdown>.menu:not(.hidden):after {
|
||||||
|
background: var(--color-box-header) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.fluid.ui.button:hover,
|
||||||
|
.ui.button.branch-dropdown-button:hover,
|
||||||
|
.ui.ui.icon.button:hover,
|
||||||
|
.ui.two.wide.button:hover,
|
||||||
|
.ui.dropdown .menu>.item:hover {
|
||||||
|
background: #1f6feb;
|
||||||
|
}
|
||||||
|
|
||||||
.ui.label:not(.basic) {
|
.ui.label:not(.basic) {
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
@@ -532,9 +602,7 @@ a.muted:hover,
|
|||||||
.repository #repo-files-table .sha.label.isSigned.isVerified,
|
.repository #repo-files-table .sha.label.isSigned.isVerified,
|
||||||
.repository #rev-list .sha.label.isSigned.isVerified,
|
.repository #rev-list .sha.label.isSigned.isVerified,
|
||||||
.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified {
|
.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified {
|
||||||
border: 1.5px solid #21ba45 !important;
|
border: 1px solid #3fb950 !important;
|
||||||
background: transparent;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-wrapper .ui.tabular.menu .item:hover,
|
.header-wrapper .ui.tabular.menu .item:hover,
|
||||||
@@ -590,7 +658,7 @@ a.muted:hover,
|
|||||||
.ui.selection.dropdown .menu,
|
.ui.selection.dropdown .menu,
|
||||||
.ui.table,
|
.ui.table,
|
||||||
.ui.text.menu .dropdown.item>.menu {
|
.ui.text.menu .dropdown.item>.menu {
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.floating.dropdown>.menu {
|
.ui.floating.dropdown>.menu {
|
||||||
@@ -654,20 +722,61 @@ a.muted:hover,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vch__day__square,
|
.vch__day__square,
|
||||||
|
.vch__legend__wrapper rect {
|
||||||
|
rx: 2px;
|
||||||
|
ry: 2px;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
outline: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
border-radius: 0.5px;
|
||||||
|
outline-offset: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
.vch__legend__wrapper rect {
|
.vch__legend__wrapper rect {
|
||||||
rx: 3px;
|
rx: 3px;
|
||||||
ry: 3px;
|
ry: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-secondary-alpha-60);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-secondary-alpha-60);"] {
|
||||||
|
outline: 1px solid rgba(27, 31, 35, 0.06);
|
||||||
|
background: var(--color-secondary-alpha-60);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-primary-light-4);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-primary-light-4);"] {
|
||||||
|
background: var(--color-primary-light-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-primary-light-2);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-primary-light-2);"] {
|
||||||
|
background: var(--color-primary-light-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-primary);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-primary);"] {
|
||||||
|
background: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-primary-dark-2);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-primary-dark-2);"] {
|
||||||
|
background: var(--color-primary-dark-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vch__day__square[style="fill: var(--color-primary-dark-4);"],
|
||||||
|
.vch__legend__wrapper rect[style="fill: var(--color-primary-dark-4);"] {
|
||||||
|
background: var(--color-primary-dark-4);
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--is-dark-theme: true;
|
--is-dark-theme: true;
|
||||||
--border-radius: 6px;
|
--border-radius: 6px;
|
||||||
--color-primary: rgba(57, 211, 83, 0.6);
|
--color-primary: #238636;
|
||||||
--color-primary-contrast: #fff;
|
--color-primary-contrast: #fff;
|
||||||
--color-primary-dark-1: rgba(57, 211, 83, 0.7);
|
--color-primary-dark-1: rgba(68, 255, 97, 0.7);
|
||||||
--color-primary-dark-2: rgba(57, 211, 83, 0.8);
|
--color-primary-dark-2: rgba(57, 211, 83, 1);
|
||||||
--color-primary-dark-3: rgba(57, 211, 83, 0.9);
|
--color-primary-dark-3: rgba(68, 255, 97, 0.9);
|
||||||
--color-primary-dark-4: rgba(57, 211, 83, 1);
|
--color-primary-dark-4: rgba(68, 255, 97, 1);
|
||||||
--color-primary-dark-5: #cfddc1;
|
--color-primary-dark-5: #cfddc1;
|
||||||
--color-primary-dark-6: #e7eee0;
|
--color-primary-dark-6: #e7eee0;
|
||||||
--color-primary-dark-7: #f8faf6;
|
--color-primary-dark-7: #f8faf6;
|
||||||
@@ -720,11 +829,11 @@ a.muted:hover,
|
|||||||
--color-orange: #f17a2b;
|
--color-orange: #f17a2b;
|
||||||
--color-yellow: #f3c640;
|
--color-yellow: #f3c640;
|
||||||
--color-olive: #c8df36;
|
--color-olive: #c8df36;
|
||||||
--color-green: #3bc75b;
|
--color-green: #39d353;
|
||||||
--color-teal: #69d4cf;
|
--color-teal: #69d4cf;
|
||||||
--color-blue: #4493f8;
|
--color-blue: #4493f8;
|
||||||
--color-violet: #754ad3;
|
--color-violet: #754ad3;
|
||||||
--color-purple: #b65dd4;
|
--color-purple: #8957e5;
|
||||||
--color-pink: #e04b9f;
|
--color-pink: #e04b9f;
|
||||||
--color-brown: #a86d45;
|
--color-brown: #a86d45;
|
||||||
--color-black: #141516;
|
--color-black: #141516;
|
||||||
@@ -832,7 +941,7 @@ a.muted:hover,
|
|||||||
--color-orange-badge-hover-bg: #f2711c4d;
|
--color-orange-badge-hover-bg: #f2711c4d;
|
||||||
--color-git: #f05133;
|
--color-git: #f05133;
|
||||||
--color-body: #0d1117;
|
--color-body: #0d1117;
|
||||||
--color-box-header: #161b22;
|
--color-box-header: #151b23;
|
||||||
--color-box-body: #0d1117;
|
--color-box-body: #0d1117;
|
||||||
--color-box-body-highlight: #262b36;
|
--color-box-body-highlight: #262b36;
|
||||||
--color-text-dark: #dbe0ea;
|
--color-text-dark: #dbe0ea;
|
||||||
|
|||||||
Reference in New Issue
Block a user