mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Migrate gt-hidden to tw-hidden (#30046)
				
					
				
			We have to define this one in helpers.css because tailwind only generates a single class but certain things rely on this being double-class. Command ran: ```sh perl -p -i -e 's#gt-hidden#tw-hidden#g' web_src/js/**/* templates/**/* models/**/* web_src/css/**/* --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -118,7 +118,7 @@ However, there are still some special cases, so the current guideline is: | ||||
| ### Show/Hide Elements | ||||
|  | ||||
| * Vue components are recommended to use `v-if` and `v-show` to show/hide elements. | ||||
| * Go template code should use Gitea's `.gt-hidden` and `showElem()/hideElem()/toggleElem()`, see more details in `.gt-hidden`'s comment. | ||||
| * Go template code should use `.tw-hidden` and `showElem()/hideElem()/toggleElem()`, see more details in `.tw-hidden`'s comment. | ||||
|  | ||||
| ### Styles and Attributes in Go HTML Template | ||||
|  | ||||
|   | ||||
| @@ -117,7 +117,7 @@ Gitea 使用一些补丁使 Fomantic UI 更具可访问性(参见 `aria.md`) | ||||
| ### 显示/隐藏元素 | ||||
|  | ||||
| * 推荐在Vue组件中使用`v-if`和`v-show`来显示/隐藏元素。 | ||||
| * Go 模板代码应使用 Gitea 的 `.gt-hidden` 和 `showElem()/hideElem()/toggleElem()` 来显示/隐藏元素,请参阅`.gt-hidden`的注释以获取更多详细信息。 | ||||
| * Go 模板代码应使用 `.tw-hidden` 和 `showElem()/hideElem()/toggleElem()` 来显示/隐藏元素,请参阅`.tw-hidden`的注释以获取更多详细信息。 | ||||
|  | ||||
| ### Go HTML 模板中的样式和属性 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user