mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	add stylelint-stylistic (#25285)
				
					
				
			Add [stylelint-stylistic](https://github.com/elirasza/stylelint-stylistic), autofix all issues with two manual tweaks. This restores all the stylistic rules removed in Stylelint 15.
This commit is contained in:
		| @@ -1573,7 +1573,7 @@ img.ui.avatar, | ||||
|   position: absolute; | ||||
|   display: block; | ||||
|   background: linear-gradient(to right, var(--color-header-wrapper-transparent), var(--color-header-wrapper) 100%); | ||||
|   content: ''; | ||||
|   content: ""; | ||||
|   right: 0; | ||||
|   height: 39px; | ||||
|   width: 60px; | ||||
| @@ -2168,7 +2168,6 @@ table th[data-sortt-desc] .svg { | ||||
|   background: var(--color-secondary-dark-1) !important; | ||||
| } | ||||
|  | ||||
|  | ||||
| /* https://github.com/go-gitea/gitea/pull/11486 */ | ||||
| .ui.sub.header { | ||||
|   text-transform: none; | ||||
|   | ||||
| @@ -50,11 +50,7 @@ | ||||
|   overflow: hidden; | ||||
| } | ||||
|  | ||||
| .image-diff-container | ||||
|   .diff-swipe | ||||
|   .swipe-frame | ||||
|   .swipe-container | ||||
|   .after-container { | ||||
| .image-diff-container .diff-swipe .swipe-frame .swipe-container .after-container { | ||||
|   position: absolute; | ||||
|   right: 0; | ||||
| } | ||||
|   | ||||
| @@ -40,7 +40,6 @@ Gitea's private styles use `g-` prefix. | ||||
|   text-overflow: ellipsis !important; | ||||
| } | ||||
|  | ||||
|  | ||||
| .g-table-auto-ellipsis td.auto-ellipsis { | ||||
|   position: relative; | ||||
| } | ||||
|   | ||||
| @@ -95,7 +95,6 @@ a.btn:hover { | ||||
|   background: var(--color-hover); | ||||
| } | ||||
|  | ||||
|  | ||||
| .ui.basic.buttons .button:active, | ||||
| .ui.basic.button:active, | ||||
| .ui.basic.buttons .active.button, | ||||
|   | ||||
							
								
								
									
										8
									
								
								web_src/css/modules/normalize.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								web_src/css/modules/normalize.css
									
									
									
									
										vendored
									
									
								
							| @@ -144,9 +144,9 @@ Correct the inability to style clickable types in iOS and Safari. | ||||
| */ | ||||
|  | ||||
| button, | ||||
| [type='button'], | ||||
| [type='reset'], | ||||
| [type='submit'] { | ||||
| [type="button"], | ||||
| [type="reset"], | ||||
| [type="submit"] { | ||||
|   -webkit-appearance: button; | ||||
| } | ||||
|  | ||||
| @@ -206,7 +206,7 @@ Correct the cursor style of increment and decrement buttons in Safari. | ||||
| 2. Correct the outline style in Safari. | ||||
| */ | ||||
|  | ||||
| [type='search'] { | ||||
| [type="search"] { | ||||
|   -webkit-appearance: textfield; /* 1 */ | ||||
|   outline-offset: -2px; /* 2 */ | ||||
| } | ||||
|   | ||||
| @@ -13,7 +13,7 @@ | ||||
|   top: 12px; | ||||
|   right: 8px; | ||||
|   pointer-events: none; | ||||
|   content: ''; | ||||
|   content: ""; | ||||
|   width: 14px; | ||||
|   height: 14px; | ||||
|   mask-size: cover; | ||||
|   | ||||
| @@ -1844,7 +1844,6 @@ | ||||
|   border: none; | ||||
| } | ||||
|  | ||||
|  | ||||
| @media (max-width: 991.98px) { | ||||
|   .diff-file-box { | ||||
|     scroll-margin-top: 77px; /* match .repository .diff-detail-box */ | ||||
| @@ -1854,9 +1853,9 @@ | ||||
| /* TODO: this can potentially be made "global" by removing the class prefix */ | ||||
| .diff-file-box .ui.attached.header, | ||||
| .diff-file-box .ui.attached.table { | ||||
|   margin: 0; /* remove fomantic negative margins */; | ||||
|   width: initial; /* remove fomantic over 100% width */; | ||||
|   max-width: initial; /* remove fomantic over 100% width */; | ||||
|   margin: 0; /* remove fomantic negative margins */ | ||||
|   width: initial; /* remove fomantic over 100% width */ | ||||
|   max-width: initial; /* remove fomantic over 100% width */ | ||||
| } | ||||
|  | ||||
| .repository .diff-stats { | ||||
| @@ -1908,7 +1907,6 @@ | ||||
|   flex: 1 | ||||
| } | ||||
|  | ||||
|  | ||||
| .repository.packages .empty { | ||||
|   padding-top: 70px; | ||||
|   padding-bottom: 100px; | ||||
|   | ||||
| @@ -95,11 +95,7 @@ | ||||
|   .comment-code-cloud .comments .comment { | ||||
|     display: flex; | ||||
|   } | ||||
|   .comment-code-cloud | ||||
|     .comments | ||||
|     .comment | ||||
|     .comment-header-right.actions | ||||
|     .ui.basic.label { | ||||
|   .comment-code-cloud .comments .comment .comment-header-right.actions .ui.basic.label { | ||||
|     display: none; | ||||
|   } | ||||
|   .comment-code-cloud .comments .comment .avatar { | ||||
|   | ||||
| @@ -21,7 +21,7 @@ details.toggleable-item summary::-webkit-details-marker /* Safari */ { | ||||
|  | ||||
| details.toggleable-item summary::after { | ||||
|   transition: transform 0.25s ease; | ||||
|   content: ''; | ||||
|   content: ""; | ||||
|   width: 14px; | ||||
|   height: 14px; | ||||
|   mask-size: cover; | ||||
|   | ||||
| @@ -34,9 +34,9 @@ body { | ||||
|     background: #1e1e1e; | ||||
|   } | ||||
|   .swagger-ui, .swagger-back-link { | ||||
|       filter: invert(88%) hue-rotate(180deg); | ||||
|     filter: invert(88%) hue-rotate(180deg); | ||||
|   } | ||||
|   .swagger-ui .microlight { | ||||
|       filter: invert(100%) hue-rotate(180deg); | ||||
|     filter: invert(100%) hue-rotate(180deg); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user