mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Refactor repo header/list (#29969)
1. Use general "mobile-only" and "not-mobile" CSS styles, remove some`@media (max-width: 767.98px)` tricks 2. Use `CountFmt` for repo list, just like the repo header (and it matches GitHub, to avoid big numbers bloat the page)
This commit is contained in:
		| @@ -1252,13 +1252,6 @@ strong.attention-caution, svg.attention-caution { | ||||
|   text-align: center; | ||||
| } | ||||
|  | ||||
| @media (max-width: 767.98px) { | ||||
|   /* double selector so it wins over .gt-df etc */ | ||||
|   .not-mobile.not-mobile { | ||||
|     display: none !important; | ||||
|   } | ||||
| } | ||||
|  | ||||
| overflow-menu { | ||||
|   margin-bottom: 15px !important; | ||||
|   border-bottom: 1px solid var(--color-secondary) !important; | ||||
|   | ||||
| @@ -199,3 +199,15 @@ only use: | ||||
| * showElem/hideElem/toggleElem functions in "utils/dom.js" | ||||
| */ | ||||
| .gt-hidden.gt-hidden { display: none !important; } | ||||
|  | ||||
| @media (max-width: 767.98px) { | ||||
|   /* double selector so it wins over .tw-flex (old .gt-df) etc */ | ||||
|   .not-mobile.not-mobile { | ||||
|     display: none !important; | ||||
|   } | ||||
| } | ||||
| @media (min-width: 767.98px) { | ||||
|   .only-mobile.only-mobile { | ||||
|     display: none !important; | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -108,13 +108,6 @@ | ||||
|   } | ||||
| } | ||||
|  | ||||
| @media (min-width: 767.98px) { | ||||
|   #navbar .navbar-mobile-right, | ||||
|   #navbar .mobile-only { | ||||
|     display: none; | ||||
|   } | ||||
| } | ||||
|  | ||||
| #navbar a.item .notification_count { | ||||
|   color: var(--color-nav-bg); | ||||
|   padding: 0 3.75px; | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| .fork-flag { | ||||
| .header-wrapper .fork-flag { | ||||
|   margin-top: 0.5rem; | ||||
|   font-size: 12px; | ||||
| } | ||||
| @@ -15,11 +15,8 @@ | ||||
|   padding: 0; | ||||
| } | ||||
|  | ||||
| .repo-header .btn.interact-bg:hover { | ||||
|   text-decoration: none; | ||||
| } | ||||
|  | ||||
| .repo-header .flex-item-main { | ||||
|   flex: 0; | ||||
|   flex-basis: unset; | ||||
| } | ||||
|  | ||||
| @@ -27,10 +24,6 @@ | ||||
|   flex-wrap: nowrap; | ||||
| } | ||||
|  | ||||
| .repo-header .flex-item-trailing .repo-icon { | ||||
|   display: none; | ||||
| } | ||||
|  | ||||
| .repo-buttons { | ||||
|   align-items: center; | ||||
|   display: flex; | ||||
| @@ -75,15 +68,3 @@ | ||||
|   padding-top: 12px; | ||||
|   background-color: var(--color-header-wrapper); | ||||
| } | ||||
|  | ||||
| @media (max-width: 767.98px) { | ||||
|   .repo-header .flex-item { | ||||
|     flex-grow: 1; | ||||
|   } | ||||
|   .repo-header .flex-item-trailing .label { | ||||
|     display: none; | ||||
|   } | ||||
|   .repo-header .flex-item-trailing .repo-icon { | ||||
|     display: initial; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user