Skip to content

Commit 4d53e54

Browse files
committed
Remove fomantic button module
1 parent e20428d commit 4d53e54

File tree

13 files changed

+217
-2931
lines changed

13 files changed

+217
-2931
lines changed

templates/admin/notice.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</div>
5050
</div>
5151
</div>
52-
<button class="ui small teal button" id="delete-selection" data-link="{{.Link}}/delete" data-redirect="?page={{.Page.Paginater.Current}}">
52+
<button class="ui small button" id="delete-selection" data-link="{{.Link}}/delete" data-redirect="?page={{.Page.Paginater.Current}}">
5353
<span class="text">{{ctx.Locale.Tr "admin.notices.delete_selected"}}</span>
5454
</button>
5555
</th>

templates/devtest/gitea-ui.tmpl

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,41 +29,13 @@
2929
<button class="ui basic button">Basic Unclassed</button>
3030
<button class="ui primary button">Primary</button>
3131
<button class="ui basic primary button">Basic Primary</button>
32-
<button class="ui negative button">Negative</button>
33-
<button class="ui basic negative button">Basic Negative</button>
34-
<button class="ui positive button">Positive</button>
35-
<button class="ui basic positive button">Basic Positive</button>
3632
</li>
3733
<li class="sample-group">
3834
<h2>Recommended colors:</h2>
3935
<button class="ui red button">Red</button>
4036
<button class="ui basic red button">Basic Red</button>
41-
<button class="ui primary button">Green</button>
42-
<button class="ui basic primary button">Basic Green</button>
43-
<button class="ui blue button">Blue</button>
44-
<button class="ui basic blue button">Basic Blue</button>
45-
<button class="ui orange button">Orange</button>
46-
<button class="ui basic orange button">Basic Orange</button>
47-
<button class="ui yellow button">Yellow</button>
48-
<button class="ui basic yellow button">Basic Yellow</button>
49-
</li>
50-
<li class="sample-group">
51-
<h2>Supported but not recommended:</h2>
52-
<p>Do not use if there is no strong requirement. Do not use grey/black buttons, they don't work well with dark theme.</p>
53-
<button class="ui secondary button">Secondary</button>
54-
<button class="ui basic secondary button">Basic Secondary</button>
55-
<button class="ui olive button">Olive</button>
56-
<button class="ui basic olive button">Basic Olive</button>
57-
<button class="ui teal button">Teal</button>
58-
<button class="ui basic teal button">Basic Teal</button>
59-
<button class="ui violet button">Violet</button>
60-
<button class="ui basic violet button">Basic Violet</button>
61-
<button class="ui purple button">Purple</button>
62-
<button class="ui basic purple button">Basic Purple</button>
63-
<button class="ui pink button">Pink</button>
64-
<button class="ui basic pink button">Basic Pink</button>
65-
<button class="ui brown button">Brown</button>
66-
<button class="ui basic brown button">Basic Brown</button>
37+
<button class="ui green button">Green</button>
38+
<button class="ui basic green button">Basic Green</button>
6739
</li>
6840
<li class="sample-group">
6941
<h2>Inline / Plain:</h2>
@@ -198,7 +170,7 @@
198170
<button class="ui basic button">labeled button</button>
199171
<a class="ui basic label">123</a>
200172
</div>
201-
<button class="ui yellow button">{{svg "octicon-x" 16}} button with very very very very very very very very long text</button>
173+
<button class="ui button">{{svg "octicon-x" 16}} button with very very very very very very very very long text</button>
202174
</div>
203175

204176
<h2>Input with SVG</h2>
@@ -271,10 +243,6 @@
271243
<span class="text">button dropdown</span>
272244
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
273245
</div>
274-
<div class="ui dropdown large button">
275-
<span class="text">large dropdown</span>
276-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
277-
</div>
278246
</div>
279247

280248
<div>
@@ -290,10 +258,6 @@
290258
<span class="text">button compact</span>
291259
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
292260
</div>
293-
<div class="ui dropdown large compact button">
294-
<span class="text">large compact</span>
295-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
296-
</div>
297261
</div>
298262

299263
<div>

templates/org/team/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</div>
8080
{{if .IsOrganizationOwner}}
8181
<div class="ui bottom attached segment">
82-
<a class="ui teal small button" href="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/edit">{{svg "octicon-gear"}} {{ctx.Locale.Tr "org.teams.settings"}}</a>
82+
<a class="ui small button" href="{{.OrgLink}}/teams/{{.Team.LowerName | PathEscape}}/edit">{{svg "octicon-gear"}} {{ctx.Locale.Tr "org.teams.settings"}}</a>
8383
</div>
8484
{{end}}
8585
</div>

templates/repo/code/recently_pushed_new_branches.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{$branchLink := HTMLFormat `<a href="%s/src/branch/%s">%s</a>` $.RepoLink (PathEscapeSegments .Name) .Name}}
66
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
77
</div>
8-
<a role="button" class="ui compact positive button tw-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo .Name}}">
8+
<a role="button" class="ui compact green button tw-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo .Name}}">
99
{{ctx.Locale.Tr "repo.pulls.compare_changes"}}
1010
</a>
1111
</div>

templates/repo/diff/compare.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@
194194
</div>
195195
<div class="four wide column middle aligned text right">
196196
{{- if .PullRequest.HasMerged -}}
197-
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button purple show-form">{{svg "octicon-git-merge" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
197+
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-git-merge" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
198198
{{else if .Issue.IsClosed}}
199-
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button red show-form">{{svg "octicon-issue-closed" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
199+
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-issue-closed" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
200200
{{else}}
201201
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button primary show-form">{{svg "octicon-git-pull-request" 16}} {{ctx.Locale.Tr "repo.pulls.view"}}</a>
202202
{{end}}

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
</form>
573573
{{end}}
574574

575-
<button class="tw-mt-1 fluid ui show-modal button {{if .Issue.IsLocked}} negative {{end}}" data-modal="#lock">
575+
<button class="tw-mt-1 fluid ui show-modal button{{if .Issue.IsLocked}} negative{{end}}" data-modal="#lock">
576576
{{if .Issue.IsLocked}}
577577
{{svg "octicon-key"}}
578578
{{ctx.Locale.Tr "repo.issues.unlock"}}

templates/repo/settings/lfs_pointers.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</a>
3838
</td>
3939
<td>
40-
<a {{if and .Exists .InRepo}}href="{{$.LFSFilesLink}}/show/{{.Oid}}" rel="nofollow" target="_blank"{{end}} title="{{.Oid}}" class="ui brown button tw-font-mono">
40+
<a {{if and .Exists .InRepo}}href="{{$.LFSFilesLink}}/show/{{.Oid}}" rel="nofollow" target="_blank"{{end}} title="{{.Oid}}" class="ui button tw-font-mono">
4141
{{ShortSha .Oid}}
4242
</a>
4343
</td>

templates/repo/settings/webhook/history.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="ui right">
77
<!-- the button is wrapped with a span because the tooltip doesn't show on hover if we put data-tooltip-content directly on the button -->
88
<span data-tooltip-content="{{if or $isNew .Webhook.IsActive}}{{ctx.Locale.Tr "repo.settings.webhook.test_delivery_desc"}}{{else}}{{ctx.Locale.Tr "repo.settings.webhook.test_delivery_desc_disabled"}}{{end}}">
9-
<button class="ui teal tiny button{{if not (or $isNew .Webhook.IsActive)}} disabled{{end}}" id="test-delivery" data-link="{{.Link}}/test" data-redirect="{{.Link}}">
9+
<button class="ui tiny button{{if not (or $isNew .Webhook.IsActive)}} disabled{{end}}" id="test-delivery" data-link="{{.Link}}/test" data-redirect="{{.Link}}">
1010
<span class="text">{{ctx.Locale.Tr "repo.settings.webhook.test_delivery"}}</span>
1111
</button>
1212
</span>

web_src/css/base.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,6 @@ input:-webkit-autofill:active,
663663
font-size: 0.75em;
664664
}
665665

666-
.ui.form .ui.button {
667-
font-weight: var(--font-weight-normal);
668-
}
669-
670666
/* popover box shadows */
671667
.ui.dropdown .menu,
672668
.ui.upward.dropdown > .menu,
@@ -1347,10 +1343,6 @@ table th[data-sortt-desc] .svg {
13471343
vertical-align: middle;
13481344
}
13491345

1350-
.ui.ui.button {
1351-
justify-content: center;
1352-
}
1353-
13541346
.ui.dropdown .ui.label .svg {
13551347
vertical-align: middle;
13561348
}

0 commit comments

Comments
 (0)