mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
Compare commits
14 Commits
1.21.0
...
1.22.4-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29ad9f3d1e | ||
|
|
446ca12bf4 | ||
|
|
08797fe8a1 | ||
|
|
962e83172e | ||
|
|
94564cc5a0 | ||
|
|
0dbf29934e | ||
|
|
8e33f16a90 | ||
|
|
0f8a5a6ae1 | ||
|
|
1ce7d47518 | ||
|
|
f1e2b21dca | ||
|
|
709e024619 | ||
|
|
7c5ab788b8 | ||
|
|
fa87fd765a | ||
|
|
b0a40d95d1 |
24
README.md
24
README.md
@@ -1,17 +1,13 @@
|
||||
# gitea-github-theme
|
||||
|
||||
本仓库来源于 https://github.com/Rainnny7/gitea-github-theme
|
||||
|
||||
在原主题基础上做了以下修改:
|
||||
|
||||
- 主题色从蓝色改为绿色
|
||||
- 默认字体为 [Victor Mono](https://github.com/rubjo/victor-mono) 和 [汉仪正圆](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 优先
|
||||
|
||||
> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行
|
||||
|
||||
## Gitea 版本
|
||||
|
||||
- Gitea 1.21+
|
||||
- Gitea 1.22+
|
||||
|
||||
## 安装
|
||||
|
||||
@@ -27,3 +23,17 @@ THEMES = gitea-dark, github
|
||||
```
|
||||
|
||||
> 详细请查看 Gitea 文档 [Gitea docs](https://docs.gitea.com/next/administration/customizing-gitea#customizing-the-look-of-gitea)
|
||||
|
||||
## 截图
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
BIN
screenshots/action.png
Normal file
BIN
screenshots/action.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
BIN
screenshots/commit.png
Normal file
BIN
screenshots/commit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 498 KiB |
BIN
screenshots/file_list.png
Normal file
BIN
screenshots/file_list.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 425 KiB |
BIN
screenshots/release.png
Normal file
BIN
screenshots/release.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
screenshots/repo.png
Normal file
BIN
screenshots/repo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 401 KiB |
BIN
screenshots/step.png
Normal file
BIN
screenshots/step.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
344
theme-github.css
344
theme-github.css
@@ -1,12 +1,11 @@
|
||||
/* Made by Rainnny <3 */
|
||||
|
||||
* {
|
||||
font-family: 'Victor Mono', 'HYZhengYuan';
|
||||
font-weight: 500;
|
||||
:root :lang(zh-CN) {
|
||||
--fonts-override: "Maple Hand", "VictorMono Nerd Font", "HYZhengYuan";
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Victor Mono', 'HYZhengYuan';
|
||||
.job-step-logs {
|
||||
font-family: "VictorMono Nerd Font", "Maple Hand", "HYZhengYuan" !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -391,21 +390,314 @@ body {
|
||||
color: #dbdbeb;
|
||||
}
|
||||
|
||||
.job-step-summary {
|
||||
color: #9198a1;
|
||||
}
|
||||
|
||||
.ui.ui.ui.green.label {
|
||||
background: var(--color-body);
|
||||
border-color: var(--color-green);
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 25px;
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
.ui.ui.ui.orange.label {
|
||||
background: var(--color-body);
|
||||
border-color: var(--color-orange);
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 25px;
|
||||
color: var(--color-orange);
|
||||
}
|
||||
|
||||
.ui.label:not(.basic) {
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
a,
|
||||
.ui.breadcrumb a {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
a[href="#"] {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a.muted:hover,
|
||||
.ui.breadcrumb a:hover,
|
||||
.ui.floating.jump.select-label.dropdown:hover,
|
||||
.ui.floating.jump.select-milestone.dropdown:hover,
|
||||
.ui.floating.jump.select-project.dropdown:hover,
|
||||
.ui.floating.jump.select-assignees.dropdown:hover,
|
||||
.muted-links a:hover {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.diff-toggle-file-tree-button:hover {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.text.primary,
|
||||
.flex-item a:not(.label, .button):hover {
|
||||
color: var(--color-blue) !important;
|
||||
}
|
||||
|
||||
.interact-fg:hover {
|
||||
color: var(--color-blue) !important;
|
||||
}
|
||||
|
||||
.issue.list a:not(.label):hover {
|
||||
color: var(--color-blue) !important;
|
||||
}
|
||||
|
||||
/* font color line numbers */
|
||||
.lines-num span:after {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.repository.file.list .file-actions .btn-octicon:hover {
|
||||
color: var(--color-blue) !important;
|
||||
}
|
||||
|
||||
.repo-list-link {
|
||||
color: var(--color-blue) !important;
|
||||
}
|
||||
|
||||
.repository.file.list #repo-files-table td a:hover {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
.repository #commits-table .author a {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.repository.view.issue .comment-list .comment>.content>div:last-child {
|
||||
border-bottom-right-radius: var(--border-radius);
|
||||
border-bottom-left-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
/* gpg commit label */
|
||||
.repository #commits-table td.sha .sha.label.isSigned.isVerified,
|
||||
.repository #repo-files-table .sha.label.isSigned.isVerified,
|
||||
.repository #rev-list .sha.label.isSigned.isVerified,
|
||||
.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified {
|
||||
border: 1.5px solid #21ba45 !important;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.header-wrapper .ui.tabular.menu .item,
|
||||
.ui.secondary.menu .item {
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.header-wrapper .ui.tabular.menu .item:hover,
|
||||
.ui.secondary.menu .item:hover {
|
||||
background: var(--color-hover) !important;
|
||||
}
|
||||
|
||||
.ui.secondary.pointing.menu .active.item,
|
||||
.ui.secondary.pointing.menu .active.item:hover {
|
||||
border-color: #f78166;
|
||||
}
|
||||
|
||||
/* hover font color */
|
||||
.ui.secondary.pointing.menu .active.item,
|
||||
.ui.secondary.pointing.menu .active.item:hover,
|
||||
.ui.secondary.pointing.menu .dropdown.item:hover,
|
||||
.ui.secondary.pointing.menu .link.item:hover,
|
||||
.ui.secondary.pointing.menu a.item:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.ui.cards>.card>.extra a:not(.ui):hover,
|
||||
.ui.card>.extra a:not(.ui):hover {
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
/* default border radius */
|
||||
.ui.button,
|
||||
.ui.basic.buttons .button,
|
||||
.ui.basic.button,
|
||||
.ui.dropdown .menu,
|
||||
.ui.form input:not([type]),
|
||||
.ui.form input[type="date"],
|
||||
.ui.form input[type="datetime-local"],
|
||||
.ui.form input[type="email"],
|
||||
.ui.form input[type="number"],
|
||||
.ui.form input[type="password"],
|
||||
.ui.form input[type="search"],
|
||||
.ui.form input[type="tel"],
|
||||
.ui.form input[type="time"],
|
||||
.ui.form input[type="text"],
|
||||
.ui.form input[type="file"],
|
||||
.ui.form input[type="url"],
|
||||
.ui.form textarea,
|
||||
.ui.input textarea,
|
||||
.ui.label,
|
||||
.ui.menu,
|
||||
.ui.segment,
|
||||
.ui.segments,
|
||||
.ui.segments:not(.horizontal)>.segment:only-child,
|
||||
.ui.secondary.menu .dropdown.item>.menu,
|
||||
.ui.selection.dropdown,
|
||||
.ui.selection.dropdown .menu,
|
||||
.ui.table,
|
||||
.ui.text.menu .dropdown.item>.menu {
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.ui.floating.dropdown>.menu {
|
||||
border-radius: var(--border-radius) !important;
|
||||
}
|
||||
|
||||
/* default left border radius */
|
||||
.ui.action.input>.dropdown:first-child,
|
||||
.ui.action.input>.button:first-child,
|
||||
.ui.action.input>.buttons:first-child>.button,
|
||||
.ui.compact.menu:not(.secondary) .item:first-child,
|
||||
.ui.horizontal.segments>.segment:first-child {
|
||||
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
||||
}
|
||||
|
||||
/* default right border radius */
|
||||
.ui.action.input>.dropdown:last-child,
|
||||
.ui.action.input>.button:last-child,
|
||||
.ui.action.input>.buttons:last-child>.button,
|
||||
.ui.compact.menu:not(.secondary) .item:last-child,
|
||||
.ui.horizontal.segments>.segment:last-child {
|
||||
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
||||
}
|
||||
|
||||
/* default top border radius */
|
||||
.ui.secondary.pointing.menu .active.item,
|
||||
.ui.secondary.pointing.menu .item:hover {
|
||||
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
||||
}
|
||||
|
||||
.ui.tabular.menu .active.item,
|
||||
.repository.view.issue .comment-list .comment>.content>div:first-child {
|
||||
border-top-left-radius: var(--border-radius) !important;
|
||||
border-top-right-radius: var(--border-radius) !important;
|
||||
}
|
||||
|
||||
/* default bottom border radius */
|
||||
.ui.segment[class*="bottom attached"] {
|
||||
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
||||
}
|
||||
|
||||
.ui.table>thead>tr:first-child>th:first-child {
|
||||
border-radius: var(--border-radius) 0 0;
|
||||
}
|
||||
|
||||
.ui.table>thead>tr:first-child>th:last-child {
|
||||
border-radius: 0 var(--border-radius) 0 0;
|
||||
}
|
||||
|
||||
/* border color form fields */
|
||||
input,
|
||||
textarea,
|
||||
.ui.input>input,
|
||||
.ui.form input:not([type]),
|
||||
.ui.form select,
|
||||
.ui.form textarea,
|
||||
.ui.form input[type="date"],
|
||||
.ui.form input[type="datetime-local"],
|
||||
.ui.form input[type="email"],
|
||||
.ui.form input[type="file"],
|
||||
.ui.form input[type="number"],
|
||||
.ui.form input[type="password"],
|
||||
.ui.form input[type="search"],
|
||||
.ui.form input[type="tel"],
|
||||
.ui.form input[type="text"],
|
||||
.ui.form input[type="time"],
|
||||
.ui.form input[type="url"],
|
||||
.ui.selection.dropdown,
|
||||
.ui.checkbox label:before,
|
||||
.ui.checkbox input:checked~label:before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate~label:before {
|
||||
border-color: var(--color-secondary);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
textarea:focus,
|
||||
.ui.input input:focus,
|
||||
.ui.form input:not([type]):focus,
|
||||
.ui.form select:focus,
|
||||
.ui.form textarea:focus,
|
||||
.ui.form input[type="date"]:focus,
|
||||
.ui.form input[type="datetime-local"]:focus,
|
||||
.ui.form input[type="email"]:focus,
|
||||
.ui.form input[type="file"]:focus,
|
||||
.ui.form input[type="number"]:focus,
|
||||
.ui.form input[type="password"]:focus,
|
||||
.ui.form input[type="search"]:focus,
|
||||
.ui.form input[type="tel"]:focus,
|
||||
.ui.form input[type="text"]:focus,
|
||||
.ui.form input[type="time"]:focus,
|
||||
.ui.form input[type="url"]:focus,
|
||||
.ui.selection.dropdown:focus {
|
||||
border: 1.5px solid var(--color-blue) !important;
|
||||
border-color: var(--color-blue);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.ui.checkbox input:focus~label:before,
|
||||
.ui.checkbox input:focus~label::before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate:focus~label:before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate:focus~label::before,
|
||||
.ui.checkbox input:checked:focus~label:before,
|
||||
.ui.checkbox input:checked:focus~label::before,
|
||||
.ui.radio.checkbox input:focus:checked~label:before,
|
||||
.ui.radio.checkbox input:focus:checked~label::before {
|
||||
border-color: var(--color-blue);
|
||||
}
|
||||
|
||||
.ui.selection.active.dropdown,
|
||||
.ui.selection.active.dropdown:hover,
|
||||
.ui.selection.active.dropdown .menu,
|
||||
.ui.selection.active.dropdown:hover .menu {
|
||||
border-color: var(--color-blue);
|
||||
}
|
||||
|
||||
.ui.label.sha {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.ui.label:not(.basic, .sha) {
|
||||
color: var(--color-blue);
|
||||
background: #121d2f;
|
||||
}
|
||||
|
||||
.ui.label>a {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.vch__day__square,
|
||||
.vch__legend__wrapper rect {
|
||||
rx: 2px;
|
||||
ry: 2px;
|
||||
}
|
||||
|
||||
:root {
|
||||
--is-dark-theme: true;
|
||||
--border-radius: 6px;
|
||||
--color-primary: rgba(57, 211, 83, 0.6);
|
||||
--color-primary-contrast: #fff;
|
||||
--color-primary-dark-1: rgba(57, 211, 83, 0.7);
|
||||
--color-primary-dark-2: rgba(57, 211, 83, 0.8);
|
||||
--color-primary-dark-3: rgba(57, 211, 83, 0.9);
|
||||
--color-primary-dark-4: rgba(57, 211, 83, 1.0);
|
||||
--color-primary-dark-4: rgba(57, 211, 83, 1);
|
||||
--color-primary-dark-5: #cfddc1;
|
||||
--color-primary-dark-6: #e7eee0;
|
||||
--color-primary-dark-7: #f8faf6;
|
||||
--color-primary-light-1: rgba(57, 211, 83, 0.5);
|
||||
--color-primary-light-2: rgba(57, 211, 83, 0.4);
|
||||
--color-primary-light-2: #006d32;
|
||||
--color-primary-light-3: rgba(57, 211, 83, 0.3);
|
||||
--color-primary-light-4: rgba(57, 211, 83, 0.2);
|
||||
--color-primary-light-4: #0e4429;
|
||||
--color-primary-light-5: #223546;
|
||||
--color-primary-light-6: #131923;
|
||||
--color-primary-light-7: #06090b;
|
||||
@@ -420,7 +712,7 @@ body {
|
||||
--color-primary-alpha-90: rgba(57, 211, 83, 0.9);
|
||||
--color-primary-hover: var(--color-primary-light-1);
|
||||
--color-primary-active: var(--color-primary-light-2);
|
||||
--color-secondary: #2c2f35;
|
||||
--color-secondary: #ffffff28;
|
||||
--color-secondary-dark-1: #505665;
|
||||
--color-secondary-dark-2: #5b6273;
|
||||
--color-secondary-dark-3: #71798e;
|
||||
@@ -442,8 +734,8 @@ body {
|
||||
--color-secondary-alpha-20: #2c2f3533;
|
||||
--color-secondary-alpha-30: #2c2f354b;
|
||||
--color-secondary-alpha-40: #2c2f3566;
|
||||
--color-secondary-alpha-50: #2c2f3580;
|
||||
--color-secondary-alpha-60: #2c2f3599;
|
||||
--color-secondary-alpha-50: #ffffff28;
|
||||
--color-secondary-alpha-60: #161b22;
|
||||
--color-secondary-alpha-70: #2c2f35b3;
|
||||
--color-secondary-alpha-80: #2c2f35cc;
|
||||
--color-secondary-alpha-90: #2c2f35e1;
|
||||
@@ -453,7 +745,7 @@ body {
|
||||
--color-olive: #c8df36;
|
||||
--color-green: #3bc75b;
|
||||
--color-teal: #69d4cf;
|
||||
--color-blue: #4b80ca;
|
||||
--color-blue: #4493f8;
|
||||
--color-violet: #754ad3;
|
||||
--color-purple: #b65dd4;
|
||||
--color-pink: #e04b9f;
|
||||
@@ -498,7 +790,11 @@ body {
|
||||
--color-pink-dark-2: #a9246f;
|
||||
--color-brown-dark-2: #835b42;
|
||||
--color-black-dark-2: #252832;
|
||||
--color-console-bg: #11171f;
|
||||
--color-console-fg: #f0f6fc;
|
||||
--color-console-bg: #010409;
|
||||
--color-console-active-bg: var(--color-active);
|
||||
--color-console-hover-bg: var(--color-hover);
|
||||
--color-console-border: var(--color-light-border);
|
||||
--color-ansi-black: var(--color-black);
|
||||
--color-ansi-red: var(--color-red);
|
||||
--color-ansi-green: var(--color-green);
|
||||
@@ -541,7 +837,7 @@ body {
|
||||
--color-warning-text: #fbbd08;
|
||||
--color-info-border: #306090;
|
||||
--color-info-bg: #26354c;
|
||||
--color-info-text: #38a8e8;
|
||||
--color-info-text: var(--color-blue);
|
||||
--color-red-badge: #db2828;
|
||||
--color-red-badge-bg: #db28281a;
|
||||
--color-red-badge-hover-bg: #db28284d;
|
||||
@@ -557,10 +853,10 @@ body {
|
||||
--color-git: #f05133;
|
||||
--color-body: #0d1117;
|
||||
--color-box-header: #161b22;
|
||||
--color-box-body: #11171f;
|
||||
--color-box-body: #0d1117;
|
||||
--color-box-body-highlight: #262b36;
|
||||
--color-text-dark: #dbe0ea;
|
||||
--color-text: #bbc0ca;
|
||||
--color-text: #dce2e7;
|
||||
--color-text-light: #a6aab5;
|
||||
--color-text-light-1: rgb(125, 133, 144);
|
||||
--color-text-light-2: #8a8e99;
|
||||
@@ -575,13 +871,10 @@ body {
|
||||
--color-header-wrapper: #0d1117;
|
||||
--color-header-wrapper-transparent: #20243000;
|
||||
--color-light: #00000028;
|
||||
--color-light-mimic-enabled: rgba(0,
|
||||
0,
|
||||
0,
|
||||
calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
|
||||
--color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
|
||||
--color-light-border: #ffffff28;
|
||||
--color-hover: #ffffff19;
|
||||
--color-active: #ffffff24;
|
||||
--color-hover: #15191f;
|
||||
--color-active: #2a313c;
|
||||
--color-menu: #0d1117;
|
||||
--color-card: #0d1117;
|
||||
--color-markup-table-row: #ffffff06;
|
||||
@@ -590,7 +883,7 @@ body {
|
||||
--color-code-bg: #0d1117;
|
||||
--color-code-sidebar-bg: #232834;
|
||||
--color-shadow: #00000060;
|
||||
--color-secondary-bg: #2c2f35;
|
||||
--color-secondary-bg: #ffffff26;
|
||||
--color-text-focus: #fff;
|
||||
--color-expand-button: #3c404d;
|
||||
--color-placeholder-text: #8a8e99;
|
||||
@@ -604,7 +897,7 @@ body {
|
||||
--color-tooltip-bg: #000000f0;
|
||||
--color-nav-bg: #010409;
|
||||
--color-nav-hover-bg: #383c47;
|
||||
--color-label-text: #dfe3ec;
|
||||
--color-label-text: #fff;
|
||||
--color-label-bg: #7c84974b;
|
||||
--color-label-hover-bg: #7c8497a0;
|
||||
--color-label-active-bg: #7c8497;
|
||||
@@ -614,7 +907,6 @@ body {
|
||||
accent-color: var(--color-accent);
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
.emoji[aria-label="check\ mark"],
|
||||
.emoji[aria-label="currency\ exchange"],
|
||||
.emoji[aria-label="TOP\ arrow"],
|
||||
@@ -641,4 +933,4 @@ body {
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-directory-fill,
|
||||
.repository.file.list #repo-files-table tbody .svg.octicon-file-submodule {
|
||||
color: #7d8590;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user