mirror of
				https://github.com/lutinglt/gitea-github-theme.git
				synced 2025-10-31 17:11:12 +00:00 
			
		
		
		
	1.25.0
This commit is contained in:
		| @@ -7,6 +7,7 @@ export const attached = css` | ||||
|   .user-setting-content, | ||||
|   .org-setting-content, | ||||
|   .admin-setting-content, | ||||
|   // 仓库动态页面 | ||||
|   // 新建页面内容 | ||||
|   .page-content.repository.new-repo, | ||||
|   .page-content.repository.new.migrate, | ||||
| @@ -18,19 +19,45 @@ export const attached = css` | ||||
|       font-weight: 400; | ||||
|       background-color: unset !important; | ||||
|       margin-bottom: 0.25rem; | ||||
|       padding-left: 0; | ||||
|       padding-right: 0; | ||||
|       > .ui.right { | ||||
|         right: 0; | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     .ui.attached.segment { | ||||
|       background-color: unset; | ||||
|       border-radius: ${otherThemeVars.border.radius} !important; | ||||
|     } | ||||
|  | ||||
|     .ui.attached.segment:not(.error) { | ||||
|       border-top-left-radius: ${otherThemeVars.border.radius} !important; | ||||
|       border-top-right-radius: ${otherThemeVars.border.radius} !important; | ||||
|       border-bottom-left-radius: 0 !important; | ||||
|       border-bottom-right-radius: 0 !important; | ||||
|       border: 1px solid ${themeVars.color.light.border} !important; | ||||
|       + .ui.attached.segment { | ||||
|         border-top: 0 !important; | ||||
|         border-top-left-radius: 0 !important; | ||||
|         border-top-right-radius: 0 !important; | ||||
|       } | ||||
|       &:has(+ :not(.ui.attached.segment)), | ||||
|       &:last-child { | ||||
|         border-bottom-left-radius: ${otherThemeVars.border.radius} !important; | ||||
|         border-bottom-right-radius: ${otherThemeVars.border.radius} !important; | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     .ui.attached.segment.error { | ||||
|       border: 1px solid ${themeVars.color.error.border} !important; | ||||
|     } | ||||
|   } | ||||
| `; | ||||
|  | ||||
| // 仓库活动页面下的边框线修复 | ||||
| export const fixActivity = css` | ||||
|   .page-content.repository.commits .flex-container-main:has(.ui.header.activity-header) { | ||||
|     > .ui.attached.segment { | ||||
|       border-radius: 0; | ||||
|       &:has(+ :not(.ui.attached.segment)) { | ||||
|         border-bottom-left-radius: ${otherThemeVars.border.radius}; | ||||
|         border-bottom-right-radius: ${otherThemeVars.border.radius}; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| `; | ||||
|   | ||||
							
								
								
									
										7
									
								
								styles/public/base.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								styles/public/base.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| import { css } from "src/types/vars"; | ||||
|  | ||||
| export const body = css` | ||||
|   body { | ||||
|     line-height: 18px; | ||||
|   } | ||||
| `; | ||||
| @@ -118,6 +118,7 @@ export const fixButtonHeight = css` | ||||
|     .ui.labeled.button > .label { | ||||
|       height: 28px; | ||||
|       min-height: 28px; | ||||
|       line-height: 1.5; | ||||
|     } | ||||
|   } | ||||
|   .ui.ui.ui.ui.small.button.compact .ui.tiny.buttons .button, | ||||
|   | ||||
| @@ -57,7 +57,7 @@ export const dropdown = css` | ||||
|         } | ||||
|         svg { | ||||
|           margin-top: 2px; | ||||
|           margin-right: 4px; | ||||
|           margin-right: 2px; | ||||
|         } | ||||
|         // 复选框对齐 | ||||
|         .ui.checkbox input[type="checkbox"] { | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| // organize-imports-ignore | ||||
| // tslint:disable:ordered-imports | ||||
| // 组件导入有顺序, 禁止插件优化 | ||||
| import "./base"; // 基础样式, 确保在其他样式之前导入 | ||||
| import "./radius"; // 圆角, 此样式为基础样式, 确保在其他样式之前导入 | ||||
| import "./animation"; // 动画效果 | ||||
| import "./transition"; // 过渡效果 | ||||
|   | ||||
| @@ -8,6 +8,7 @@ export const label = css` | ||||
|     &.ui.ui.ui { | ||||
|       &.label { | ||||
|         border-radius: 25px; | ||||
|         padding: 1.5px 6px; | ||||
|         // 多个标签的组合标签的圆角修复 | ||||
|         &.scope-parent { | ||||
|           .scope-left { | ||||
| @@ -99,10 +100,14 @@ export const shaLabel = css` | ||||
|       span.ui.label.commit-is-signed { | ||||
|         padding: 3px 5px; | ||||
|         margin-left: 5px; | ||||
|         height: 25px; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   // 修复带验证的提交 SHA 标签的高度 | ||||
|   .ui.label.commit-id-short { | ||||
|     height: 25px; | ||||
|   } | ||||
|   // 验证提交附带的图标 | ||||
|   span.ui.label.commit-is-signed { | ||||
|     // 验证信任 | ||||
| @@ -181,7 +186,7 @@ export const repoLabel = css` | ||||
|       color: ${themeVars.color.text.light.num1}; | ||||
|       font-size: 12px; | ||||
|       font-weight: 500; | ||||
|       padding: 3px 6px; | ||||
|       padding: 1.5px 6px; | ||||
|     } | ||||
|   } | ||||
|   .org-visibility span.ui.basic.label { | ||||
|   | ||||
| @@ -139,6 +139,10 @@ export const menu = css` | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|   // 菜单标签样式 | ||||
|   .ui.menu .item>.label:not(.floating) { | ||||
|     padding: 1.5px 6px; | ||||
|   } | ||||
| `; | ||||
|  | ||||
| export const secondaryMenu = css` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 lutinglt
					lutinglt