File tree 8 files changed +26
-16
lines changed
8 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -73,5 +73,23 @@ export default {
73
73
semibold : 'var(--font-weight-semibold)' ,
74
74
bold : 'var(--font-weight-bold)' ,
75
75
} ,
76
+ fontSize : { // not using `rem` units because our root is currently 14px
77
+ 'xs' : '12px' ,
78
+ 'sm' : '14px' ,
79
+ 'base' : '16px' ,
80
+ 'lg' : '18px' ,
81
+ 'xl' : '20px' ,
82
+ '2xl' : '24px' ,
83
+ '3xl' : '30px' ,
84
+ '4xl' : '36px' ,
85
+ '5xl' : '48px' ,
86
+ '6xl' : '60px' ,
87
+ '7xl' : '72px' ,
88
+ '8xl' : '96px' ,
89
+ '9xl' : '128px' ,
90
+ ...Object . fromEntries ( Array . from ( { length : 100 } , ( _ , i ) => {
91
+ return [ `${ i } ` , `${ i === 0 ? '0' : `${ i } px` } ` ] ;
92
+ } ) ) ,
93
+ } ,
76
94
} ,
77
95
} ;
Original file line number Diff line number Diff line change 7
7
{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}}
8
8
{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}}
9
9
</span>
10
- <span class="tw-flex tw-items-center gt-gap-2 tw-ml-auto gt-font -16 tw-whitespace-nowrap">
10
+ <span class="tw-flex tw-items-center gt-gap-2 tw-ml-auto tw-text -16 tw-whitespace-nowrap">
11
11
{{if .EnableFeed}}
12
12
<a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
13
13
{{svg "octicon-rss" 24}}
Original file line number Diff line number Diff line change 7
7
{{template "repo/icon" .}}
8
8
</div>
9
9
<div class="flex-item-main">
10
- <div class="flex-item-title gt-font -18">
10
+ <div class="flex-item-title tw-text -18">
11
11
<a class="muted tw-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/<a class="muted" href="{{$.RepoLink}}">{{.Name}}</a>
12
12
</div>
13
13
</div>
Original file line number Diff line number Diff line change 6
6
{{template "repo/code/recently_pushed_new_branches" .}}
7
7
{{if and (not .HideRepoInfo) (not .IsBlame)}}
8
8
<div class="ui repo-description gt-word-break">
9
- <div id="repo-desc" class="gt-font -16">
9
+ <div id="repo-desc" class="tw-text -16">
10
10
{{$description := .Repository.DescriptionHTML $.Context}}
11
11
{{if $description}}<span class="description">{{$description | RenderCodeBlock}}</span>{{else if .IsRepositoryAdmin}}<span class="no-description text-italic">{{ctx.Locale.Tr "repo.no_desc"}}</span>{{end}}
12
12
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
29
29
</div>
30
30
<div class="tw-flex tw-items-center tw-flex-wrap gt-gap-2" id="repo-topics">
31
31
{{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
32
- {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg gt-font -12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
32
+ {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text -12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
33
33
</div>
34
34
{{end}}
35
35
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
Original file line number Diff line number Diff line change 107
107
<a href="{{.GetCommentLink ctx}}" class="text truncate issue title">{{(.GetIssueTitle ctx) | RenderEmoji $.Context | RenderCodeBlock}}</a>
108
108
{{$comment := index .GetIssueInfos 1}}
109
109
{{if $comment}}
110
- <div class="markup gt-font -14">{{RenderMarkdownToHtml ctx $comment}}</div>
110
+ <div class="markup tw-text -14">{{RenderMarkdownToHtml ctx $comment}}</div>
111
111
{{end}}
112
112
{{else if .GetOpType.InActions "merge_pull_request"}}
113
113
<div class="flex-item-body text black">{{index .GetIssueInfos 1}}</div>
Original file line number Diff line number Diff line change 44
44
{{end}}
45
45
</div>
46
46
<a class="notifications-link tw-flex tw-flex-1 tw-flex-col silenced" href="{{.Link ctx}}">
47
- <div class="notifications-top-row gt-font -13">
47
+ <div class="notifications-top-row tw-text -13">
48
48
{{.Repository.FullName}} {{if .Issue}}<span class="text light-3">#{{.Issue.Index}}</span>{{end}}
49
49
{{if eq .Status 3}}
50
50
{{svg "octicon-pin" 13 "text blue gt-mt-1 gt-ml-2"}}
51
51
{{end}}
52
52
</div>
53
- <div class="notifications-bottom-row gt-font -16 gt-py-1">
53
+ <div class="notifications-bottom-row tw-text -16 gt-py-1">
54
54
<span class="issue-title">
55
55
{{if .Issue}}
56
56
{{.Issue.Title | RenderEmoji $.Context | RenderCodeBlock}}
Original file line number Diff line number Diff line change @@ -163,14 +163,6 @@ Gitea's private styles use `g-` prefix.
163
163
.gt-gap-y-4 { row-gap : 1rem !important ; }
164
164
.gt-gap-y-5 { row-gap : 2rem !important ; }
165
165
166
- .gt-font-12 { font-size : 12px !important }
167
- .gt-font-13 { font-size : 13px !important }
168
- .gt-font-14 { font-size : 14px !important }
169
- .gt-font-15 { font-size : 15px !important }
170
- .gt-font-16 { font-size : 16px !important }
171
- .gt-font-17 { font-size : 17px !important }
172
- .gt-font-18 { font-size : 18px !important }
173
-
174
166
/*
175
167
gt-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element.
176
168
do not use:
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ export default {
384
384
<h4 v-else class =" contributor-name" >
385
385
{{ contributor.name }}
386
386
</h4 >
387
- <p class =" gt-font -12 tw-flex gt-gap-2" >
387
+ <p class =" tw-text -12 tw-flex gt-gap-2" >
388
388
<strong v-if =" contributor.total_commits" >{{ contributor.total_commits.toLocaleString() }} {{ locale.contributionType.commits }}</strong >
389
389
<strong v-if =" contributor.total_additions" class =" text green" >{{ contributor.total_additions.toLocaleString() }}++ </strong >
390
390
<strong v-if =" contributor.total_deletions" class =" text red" >
You can’t perform that action at this time.
0 commit comments