mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
Compare commits
11 Commits
1.22.4-202
...
1.22.4-202
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb3b4a939d | ||
|
|
1c14e5bad7 | ||
|
|
e20d2fcffd | ||
|
|
29ad9f3d1e | ||
|
|
446ca12bf4 | ||
|
|
08797fe8a1 | ||
|
|
962e83172e | ||
|
|
94564cc5a0 | ||
|
|
0dbf29934e | ||
|
|
8e33f16a90 | ||
|
|
0f8a5a6ae1 |
19
README.md
19
README.md
@@ -1,10 +1,5 @@
|
||||
# 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 优先
|
||||
|
||||
@@ -28,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 |
330
theme-github.css
330
theme-github.css
@@ -9,6 +9,46 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#navbar .item,
|
||||
.menu .item,
|
||||
.header-wrapper .ui.tabular.menu .item,
|
||||
input,
|
||||
textarea,
|
||||
tr,
|
||||
button,
|
||||
.job-step-summary,
|
||||
.job-log-line,
|
||||
.job-brief-item,
|
||||
.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.label,
|
||||
.ui.selection.dropdown,
|
||||
.ui.checkbox label:before,
|
||||
.ui.checkbox input:checked~label:before,
|
||||
.ui.checkbox input:not([type="radio"]):indeterminate~label:before,
|
||||
.ui.selection.active.dropdown,
|
||||
.ui.selection.active.dropdown:hover,
|
||||
.ui.selection.active.dropdown .menu,
|
||||
.ui.selection.active.dropdown:hover .menu,
|
||||
.ui.menu .item,
|
||||
.ui.vertical.menu .header.item,
|
||||
.ui.secondary.menu .item {
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.chroma {
|
||||
background-color: var(--color-code-bg);
|
||||
}
|
||||
@@ -391,11 +431,239 @@
|
||||
}
|
||||
|
||||
.job-step-summary {
|
||||
color: #9198a1;
|
||||
color: var(--color-console-fg-subtle);
|
||||
}
|
||||
|
||||
.job-log-line {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.job-log-line:hover {
|
||||
color: var(--color-console-fg);
|
||||
}
|
||||
|
||||
.text.green {
|
||||
color: #3fb950 !important;
|
||||
}
|
||||
|
||||
.ui.ui.ui.green.label {
|
||||
background: var(--color-body);
|
||||
border-color: #3fb950;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 25px;
|
||||
color: #3fb950;
|
||||
}
|
||||
|
||||
.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: 1px solid #3fb950 !important;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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: 3px;
|
||||
ry: 3px;
|
||||
}
|
||||
|
||||
: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);
|
||||
@@ -406,9 +674,9 @@
|
||||
--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;
|
||||
@@ -423,7 +691,7 @@
|
||||
--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: #ffffff28;
|
||||
--color-secondary: #3d444d;
|
||||
--color-secondary-dark-1: #505665;
|
||||
--color-secondary-dark-2: #5b6273;
|
||||
--color-secondary-dark-3: #71798e;
|
||||
@@ -446,7 +714,7 @@
|
||||
--color-secondary-alpha-30: #2c2f354b;
|
||||
--color-secondary-alpha-40: #2c2f3566;
|
||||
--color-secondary-alpha-50: #ffffff28;
|
||||
--color-secondary-alpha-60: #2c2f3599;
|
||||
--color-secondary-alpha-60: #161b22;
|
||||
--color-secondary-alpha-70: #2c2f35b3;
|
||||
--color-secondary-alpha-80: #2c2f35cc;
|
||||
--color-secondary-alpha-90: #2c2f35e1;
|
||||
@@ -454,9 +722,9 @@
|
||||
--color-orange: #f17a2b;
|
||||
--color-yellow: #f3c640;
|
||||
--color-olive: #c8df36;
|
||||
--color-green: #3bc75b;
|
||||
--color-green: #39d353;
|
||||
--color-teal: #69d4cf;
|
||||
--color-blue: #4b80ca;
|
||||
--color-blue: #4493f8;
|
||||
--color-violet: #754ad3;
|
||||
--color-purple: #b65dd4;
|
||||
--color-pink: #e04b9f;
|
||||
@@ -501,11 +769,6 @@
|
||||
--color-pink-dark-2: #a9246f;
|
||||
--color-brown-dark-2: #835b42;
|
||||
--color-black-dark-2: #252832;
|
||||
--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);
|
||||
@@ -522,6 +785,14 @@
|
||||
--color-ansi-bright-magenta: var(--color-pink-light);
|
||||
--color-ansi-bright-cyan: var(--color-teal-light);
|
||||
--color-ansi-bright-white: var(--color-console-fg);
|
||||
--color-console-fg: #f0f6fc;
|
||||
--color-console-fg-subtle: #9198a1;
|
||||
--color-console-bg: #010409;
|
||||
--color-console-border: #2b3139;
|
||||
--color-console-active-bg: var(--color-active);
|
||||
--color-console-hover-bg: var(--color-hover);
|
||||
--color-console-menu-bg: var(--color-body);
|
||||
--color-console-menu-border: var(--color-light-border);
|
||||
--color-grey: #505665;
|
||||
--color-grey-light: #a1a6b7;
|
||||
--color-gold: #b1983b;
|
||||
@@ -577,14 +848,14 @@
|
||||
--color-input-text: #d5dbe6;
|
||||
--color-input-background: #2c2f35;
|
||||
--color-input-toggle-background: #454a57;
|
||||
--color-input-border: #2c2f35;
|
||||
--color-input-border-hover: #505667;
|
||||
--color-input-border: var(--color-light-border);
|
||||
--color-input-border-hover: var(--color-light-border);
|
||||
--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-border: #ffffff28;
|
||||
--color-hover: #15191f;
|
||||
--color-light-border: #3d444d;
|
||||
--color-hover: #20252e;
|
||||
--color-active: #2a313c;
|
||||
--color-menu: #0d1117;
|
||||
--color-card: #0d1117;
|
||||
@@ -607,8 +878,8 @@
|
||||
--color-tooltip-text: #fff;
|
||||
--color-tooltip-bg: #000000f0;
|
||||
--color-nav-bg: #010409;
|
||||
--color-nav-hover-bg: #383c47;
|
||||
--color-label-text: #dfe3ec;
|
||||
--color-nav-hover-bg: var(--color-hover);
|
||||
--color-label-text: #fff;
|
||||
--color-label-bg: #7c84974b;
|
||||
--color-label-hover-bg: #7c8497a0;
|
||||
--color-label-active-bg: #7c8497;
|
||||
@@ -642,29 +913,6 @@
|
||||
filter: invert() hue-rotate(180deg);
|
||||
}
|
||||
|
||||
.emoji[aria-label="check\ mark"],
|
||||
.emoji[aria-label="currency\ exchange"],
|
||||
.emoji[aria-label="TOP\ arrow"],
|
||||
.emoji[aria-label="END\ arrow"],
|
||||
.emoji[aria-label="ON! arrow"],
|
||||
.emoji[aria-label="SOON\ arrow"],
|
||||
.emoji[aria-label="heavy dollar sign"],
|
||||
.emoji[aria-label="copyright"],
|
||||
.emoji[aria-label="registered"],
|
||||
.emoji[aria-label="trade\ mark"],
|
||||
.emoji[aria-label="multiply"],
|
||||
.emoji[aria-label="plus"],
|
||||
.emoji[aria-label="minus"],
|
||||
.emoji[aria-label="divide"],
|
||||
.emoji[aria-label="curly\ loop"],
|
||||
.emoji[aria-label="double curly loop"],
|
||||
.emoji[aria-label="wavy\ dash"],
|
||||
.emoji[aria-label="paw\ prints"],
|
||||
.emoji[aria-label="musical\ note"],
|
||||
.emoji[aria-label="musical\ notes"] {
|
||||
filter: invert() hue-rotate(180deg);
|
||||
}
|
||||
|
||||
.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