Skip to content

Commit c110521

Browse files
committed
move inline css to less
1 parent 1e30e66 commit c110521

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

templates/repo/issue/list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
135135
{{range .Posters}}
136136
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
137-
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
137+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
138138
</a>
139139
{{end}}
140140
</div>
@@ -154,7 +154,7 @@
154154
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_assginee_no_select"}}</a>
155155
{{range .Assignees}}
156156
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{.ID}}&poster={{$.PosterID}}">
157-
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
157+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
158158
</a>
159159
{{end}}
160160
</div>

templates/repo/issue/milestone_issues.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
7878
{{range .Posters}}
7979
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
80-
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
80+
{{avatar $.Context .}} {{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
8181
</a>
8282
{{end}}
8383
</div>
@@ -99,7 +99,7 @@
9999
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{.ID}}&poster={{$.PosterID}}">
100100
{{avatar $.Context . 28 "gt-mr-2"}}
101101
{{.Name}}
102-
{{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
102+
{{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
103103
</a>
104104
{{end}}
105105
</div>

templates/repo/issue/new_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<a class="item muted" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}">
187187
<span class="octicon-check invisible">{{svg "octicon-check"}}</span>
188188
<span class="text">
189-
{{avatar $.Context . 28 "gt-mr-3"}}{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
189+
{{avatar $.Context . 28 "gt-mr-3"}}{{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
190190
</span>
191191
</a>
192192
{{end}}

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{avatar $.Context .User 28 "gt-mr-3"}}
3030
{{.User.Name}}
3131
</span>
32-
{{if $.IsShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.User.FullName}}</span>{{end}}
32+
{{if $.IsShowFullName}}<span class="text search-fullname">{{.User.FullName}}</span>{{end}}
3333
</a>
3434
{{end}}
3535
{{end}}
@@ -262,7 +262,7 @@
262262
{{avatar $.Context . 28 "gt-mr-3"}}
263263
{{.Name}}
264264
</span>
265-
{{if $.IsShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
265+
{{if $.IsShowFullName}}<span class="text search-fullname">{{.FullName}}</span>{{end}}
266266
</a>
267267
{{end}}
268268
</div>

templates/repo/settings/protected_branch.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{{range .Users}}
5151
<div class="item" data-value="{{.ID}}">
5252
{{avatar $.Context . 28 "mini"}}
53-
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
53+
{{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
5454
</div>
5555
{{end}}
5656
</div>
@@ -102,7 +102,7 @@
102102
{{range .Users}}
103103
<div class="item" data-value="{{.ID}}">
104104
{{avatar $.Context . 28 "mini"}}
105-
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
105+
{{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
106106
</div>
107107
{{end}}
108108
</div>
@@ -182,7 +182,7 @@
182182
{{range .Users}}
183183
<div class="item" data-value="{{.ID}}">
184184
{{avatar $.Context . 28 "mini"}}
185-
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
185+
{{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
186186
</div>
187187
{{end}}
188188
</div>

templates/repo/settings/tags.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{range .Users}}
3838
<div class="item" data-value="{{.ID}}">
3939
{{avatar $.Context . 28 "mini"}}
40-
{{.Name}} {{if $.IsShowFullName}}<span style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
40+
{{.Name}} {{if $.IsShowFullName}}<span class="search-fullname">{{.FullName}}</span>{{end}}
4141
</div>
4242
{{end}}
4343
</div>

web_src/less/_repository.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,10 @@
24632463
padding-top: 9px !important;
24642464
padding-bottom: 9px !important;
24652465
}
2466+
2467+
.search-fullname {
2468+
color: var(--color-text-light-2);
2469+
}
24662470
}
24672471

24682472
// End of .repository

0 commit comments

Comments
 (0)