mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-30 19:08:37 +00:00 
			
		
		
		
	Migrate font-family to tailwind (#30118)
Enable us to use tailwind's [`font-family`](https://tailwindcss.com/docs/font-family) classes as well as remove `gt-mono` in favor of `tw-font-mono`. I also merged the "compensation" to one selector, previously this was two different values 0.9em and 0.95em. I did not declare a `serif` font because I don't think there will ever be a use case for those. Command ran: ```sh perl -p -i -e 's#gt-mono#tw-font-mono#g' web_src/js/**/* templates/**/*
This commit is contained in:
		| @@ -252,7 +252,7 @@ export default { | ||||
|               </span> | ||||
|             </div> | ||||
|           </div> | ||||
|           <div class="gt-mono"> | ||||
|           <div class="tw-font-mono"> | ||||
|             {{ commit.short_sha }} | ||||
|           </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -47,7 +47,7 @@ export default { | ||||
|       </div> | ||||
|       <!-- todo finish all file status, now modify, add, delete and rename --> | ||||
|       <span :class="['status', diffTypeToString(file.Type)]" :data-tooltip-content="diffTypeToString(file.Type)"> </span> | ||||
|       <a class="file gt-mono" :href="'#diff-' + file.NameHash">{{ file.Name }}</a> | ||||
|       <a class="file tw-font-mono" :href="'#diff-' + file.NameHash">{{ file.Name }}</a> | ||||
|     </li> | ||||
|     <li v-if="store.isIncomplete" class="tw-pt-1"> | ||||
|       <span class="file tw-flex tw-items-center tw-justify-between">{{ store.tooManyFilesMessage }} | ||||
|   | ||||
| @@ -105,7 +105,7 @@ class ComboMarkdownEditor { | ||||
|       e.preventDefault(); | ||||
|       const enabled = localStorage?.getItem('markdown-editor-monospace') !== 'true'; | ||||
|       localStorage.setItem('markdown-editor-monospace', String(enabled)); | ||||
|       this.textarea.classList.toggle('gt-mono', enabled); | ||||
|       this.textarea.classList.toggle('tw-font-mono', enabled); | ||||
|       const text = monospaceButton.getAttribute(enabled ? 'data-disable-text' : 'data-enable-text'); | ||||
|       monospaceButton.setAttribute('data-tooltip-content', text); | ||||
|       monospaceButton.setAttribute('aria-checked', String(enabled)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user