mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2026-04-13 23:11:37 +08:00
Compare commits
6 Commits
ec0f8660e9
...
v1.25.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c130e6c778 | ||
|
|
c6134161bf | ||
|
|
d65a5e8f67 | ||
|
|
86d67a4559 | ||
|
|
5b9b7372a6 | ||
|
|
59b9c66c4e |
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
src:
|
src:
|
||||||
|
- ".github/workflows/*.yml"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
- "src/**/*.ts"
|
- "src/**/*.ts"
|
||||||
- "styles/**/*.ts"
|
- "styles/**/*.ts"
|
||||||
@@ -26,7 +27,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: steps.changes.outputs.src == 'true'
|
||||||
run: |
|
run: |
|
||||||
npm run install:vite8
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Upload css assets
|
- name: Upload css assets
|
||||||
@@ -53,4 +54,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: locales
|
name: locales
|
||||||
path: dist/options/locale
|
path: dist/options/locale
|
||||||
|
|||||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"typescript.experimental.useTsgo": false
|
"typescript.experimental.useTsgo": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#### More aligned with GitHub style
|
#### More aligned with GitHub style
|
||||||
|
|
||||||
##### Template File
|
- Fine-tune the style of the navigation bar.
|
||||||
|
|
||||||
### 🐞 Fix
|
### 🐞 Fix
|
||||||
|
|
||||||
|
- Fix no auto-focus of search filter on issue/PR properties. #27
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitea-github-theme",
|
"name": "gitea-github-theme",
|
||||||
"version": "1.25.4.rc",
|
"version": "1.25.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --mode dev",
|
"dev": "vite build --mode dev",
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
"sass-embedded": "^1.89.2",
|
"sass-embedded": "^1.89.2",
|
||||||
"typescript-eslint": "^8.34.1",
|
"typescript-eslint": "^8.34.1",
|
||||||
"typescript-plugin-css-modules": "^5.1.0",
|
"typescript-plugin-css-modules": "^5.1.0",
|
||||||
"vite": "^8.0.0-beta.0"
|
"vite": "^7.3.1"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
|||||||
bg: githubColor.bgColor.emphasis,
|
bg: githubColor.bgColor.emphasis,
|
||||||
},
|
},
|
||||||
nav: {
|
nav: {
|
||||||
bg: githubColor.bgColor.muted,
|
bg: githubColor.bgColor.inset,
|
||||||
hoverBg: githubColor.control.transparent.bgColor.hover,
|
hoverBg: githubColor.control.transparent.bgColor.hover,
|
||||||
text: themeVars.color.text.self,
|
text: themeVars.color.text.self,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ export const comment = css`
|
|||||||
.ui.basic.label {
|
.ui.basic.label {
|
||||||
${botLabelStyle}
|
${botLabelStyle}
|
||||||
}
|
}
|
||||||
a:has(relative-time){
|
a:has(relative-time) {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
// 已编辑按钮
|
// 已编辑按钮
|
||||||
@@ -741,6 +741,10 @@ export const issueSidebar = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 修复菜单下拉打开时, 无法聚焦输入框
|
||||||
|
.menu input {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 时间追踪
|
// 时间追踪
|
||||||
> div:not([class]):not([id]) {
|
> div:not([class]):not([id]) {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { css, customThemeVars, otherThemeVars, themeVars } from "src/types/vars"
|
|||||||
|
|
||||||
export const navbarRight = css`
|
export const navbarRight = css`
|
||||||
#navbar {
|
#navbar {
|
||||||
border-bottom: 0;
|
|
||||||
padding: 8px 16px; // 上下内边距 + .navbar-left & .navbar-right 的 min-height = 64px
|
padding: 8px 16px; // 上下内边距 + .navbar-left & .navbar-right 的 min-height = 64px
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
.navbar-left,
|
.navbar-left,
|
||||||
|
|||||||
@@ -123,3 +123,15 @@ export const packagesDetail = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// 手机页面下的软件包详细信息页
|
||||||
|
export const packagesListMobile = css`
|
||||||
|
@media (max-width: 767.98px) {
|
||||||
|
.page-content.packages .packages-content {
|
||||||
|
.packages-content-left,
|
||||||
|
.packages-content-right {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user