Skip to content

Commit 2e52465

Browse files
committed
remove all left/center/right aligned
1 parent 3ae6c21 commit 2e52465

21 files changed

+36
-92
lines changed

templates/install.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content install">
33
<div class="ui grid install-config-container">
4-
<div class="sixteen wide center aligned centered column">
4+
<div class="sixteen wide tw-text-center centered column">
55
<h3 class="ui top attached header">
66
{{ctx.Locale.Tr "install.title"}}
77
</h3>

templates/org/team/new.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
<thead>
7878
<tr>
7979
<th>{{ctx.Locale.Tr "units.unit"}}</th>
80-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.none_access"}}
80+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.none_access"}}
8181
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.none_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
82-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.read_access"}}
82+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.read_access"}}
8383
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.read_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
84-
<th class="center aligned">{{ctx.Locale.Tr "org.teams.write_access"}}
84+
<th class="tw-text-center">{{ctx.Locale.Tr "org.teams.write_access"}}
8585
<span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.write_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th>
8686
</tr>
8787
</thead>
@@ -97,17 +97,17 @@
9797
</div>
9898
</div>
9999
</td>
100-
<td class="center aligned">
100+
<td class="tw-text-center">
101101
<div class="ui radio checkbox">
102102
<input type="radio" name="unit_{{$unit.Type.Value}}" value="0"{{if or ($unit.Type.UnitGlobalDisabled) (eq ($.Team.UnitAccessMode ctx $unit.Type) 0)}} checked{{end}} title="{{ctx.Locale.Tr "org.teams.none_access"}}">
103103
</div>
104104
</td>
105-
<td class="center aligned">
105+
<td class="tw-text-center">
106106
<div class="ui radio checkbox">
107107
<input type="radio" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode ctx $unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{ctx.Locale.Tr "org.teams.read_access"}}">
108108
</div>
109109
</td>
110-
<td class="center aligned">
110+
<td class="tw-text-center">
111111
<div class="ui radio checkbox">
112112
<input type="radio" name="unit_{{$unit.Type.Value}}" value="2"{{if (ge ($.Team.UnitAccessMode ctx $unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}} title="{{ctx.Locale.Tr "org.teams.write_access"}}">
113113
</div>

templates/repo/branch/list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{ctx.RenderUtils.RenderCommitMessage .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .DefaultBranchBranch.DBBranch.CommitTime}}{{if .DefaultBranchBranch.DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p>
3131
</td>
3232
{{/* FIXME: here and below, the tw-overflow-visible is not quite right but it is still needed the moment: to show the important buttons when the width is narrow */}}
33-
<td class="right aligned middle aligned tw-overflow-visible">
33+
<td class="tw-text-right tw-overflow-visible">
3434
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
3535
<button class="btn interact-bg show-create-branch-modal tw-p-2"
3636
data-modal="#create-branch-modal"
@@ -121,7 +121,7 @@
121121
</div>
122122
{{end}}
123123
</td>
124-
<td class="two wide right aligned">
124+
<td class="two wide tw-text-right">
125125
{{if not .LatestPullRequest}}
126126
{{if .IsIncluded}}
127127
<span class="ui orange large label" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.included_desc"}}">
@@ -150,7 +150,7 @@
150150
{{end}}
151151
</td>
152152
{{/* FIXME: here and above, the tw-overflow-visible is not quite right */}}
153-
<td class="three wide right aligned tw-overflow-visible">
153+
<td class="three wide tw-text-right tw-overflow-visible">
154154
{{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}}
155155
<button class="btn interact-bg tw-p-2 show-modal show-create-branch-modal"
156156
data-branch-from="{{.DBBranch.Name}}"

templates/repo/commits_list.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<th class="three wide">{{ctx.Locale.Tr "repo.commits.author"}}</th>
66
<th class="two wide sha">{{StringUtils.ToUpper $.Repository.ObjectFormatName}}</th>
77
<th class="eight wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th>
8-
<th class="two wide right aligned">{{ctx.Locale.Tr "repo.commits.date"}}</th>
8+
<th class="two wide tw-text-right">{{ctx.Locale.Tr "repo.commits.date"}}</th>
99
<th class="one wide"></th>
1010
</tr>
1111
</thead>
@@ -61,11 +61,11 @@
6161
{{end}}
6262
</td>
6363
{{if .Committer}}
64-
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Committer.When}}</td>
64+
<td class="tw-text-right">{{DateUtils.TimeSince .Committer.When}}</td>
6565
{{else}}
66-
<td class="tw-text-right aligned">{{DateUtils.TimeSince .Author.When}}</td>
66+
<td class="tw-text-right">{{DateUtils.TimeSince .Author.When}}</td>
6767
{{end}}
68-
<td class="tw-text-right aligned tw-py-0">
68+
<td class="tw-text-right tw-py-0">
6969
<button class="btn interact-bg tw-p-2 copy-commit-id" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
7070
{{/* at the moment, wiki doesn't support these "view" links like "view at history point" */}}
7171
{{if not $.PageIsWiki}}

templates/repo/issue/choose.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
{{range .IssueTemplates}}
1111
<div class="ui attached segment">
1212
<div class="ui two column grid">
13-
<div class="column left aligned">
13+
<div class="column">
1414
<strong>{{.Name}}</strong>
1515
<br>{{.About}}
1616
</div>
17-
<div class="column right aligned">
17+
<div class="column tw-text-right">
1818
<a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
1919
</div>
2020
</div>
@@ -23,11 +23,11 @@
2323
{{range .IssueConfig.ContactLinks}}
2424
<div class="ui attached segment">
2525
<div class="ui two column grid">
26-
<div class="column left aligned">
26+
<div class="column">
2727
<strong>{{.Name}}</strong>
2828
<br>{{.About}}
2929
</div>
30-
<div class="column right aligned">
30+
<div class="column tw-text-right">
3131
<a href="{{.URL}}" class="ui primary button">{{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues.choose.open_external_link"}}</a>
3232
</div>
3333
</div>
@@ -36,11 +36,11 @@
3636
{{if .IssueConfig.BlankIssuesEnabled}}
3737
<div class="ui attached segment">
3838
<div class="ui two column grid">
39-
<div class="column left aligned">
39+
<div class="column">
4040
<strong>{{ctx.Locale.Tr "repo.issues.choose.blank"}}</strong>
4141
<br/>{{ctx.Locale.Tr "repo.issues.choose.blank_about"}}
4242
</div>
43-
<div class="column right aligned">
43+
<div class="column tw-text-right">
4444
<a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
4545
</div>
4646
</div>

templates/repo/migrate/migrating.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
{{template "base/alert" .}}
88
<div class="home">
99
<div class="ui stackable middle very relaxed page grid">
10-
<div id="repo_migrating" class="sixteen wide center aligned centered column" data-migrating-repo-link="{{.Link}}">
10+
<div id="repo_migrating" class="sixteen wide tw-text-center centered column" data-migrating-repo-link="{{.Link}}">
1111
<div>
1212
<img src="{{AssetUrlPrefix}}/img/loading.png">
1313
</div>
1414
</div>
15-
<div id="repo_migrating_failed_image" class="sixteen wide center aligned centered column tw-hidden">
15+
<div id="repo_migrating_failed_image" class="sixteen wide tw-text-center centered column tw-hidden">
1616
<div>
1717
<img src="{{AssetUrlPrefix}}/img/failed.png">
1818
</div>
1919
</div>
2020
</div>
2121
<div class="ui stackable middle very relaxed page grid">
22-
<div class="sixteen wide center aligned centered column">
22+
<div class="sixteen wide tw-text-center centered column">
2323
<div id="repo_migrating_progress">
2424
<p>{{ctx.Locale.Tr "repo.migrate.migrating" .CloneAddr}}</p>
2525
<p id="repo_migrating_progress_message"></p>

templates/repo/pulse.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
8484
{{if eq .Activity.Code.CommitCountInAllBranches 0}}
85-
<div class="ui center aligned segment">
85+
<div class="ui tw-text-center segment">
8686
<h4 class="ui header">{{ctx.Locale.Tr "repo.activity.no_git_activity"}}</h4>
8787
</div>
8888
{{end}}

templates/repo/settings/branches.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</div>
5757
</div>
5858
{{else}}
59-
<div class="flex-item center aligned">
59+
<div class="flex-item tw-text-center">
6060
{{ctx.Locale.Tr "repo.settings.no_protected_branch"}}
6161
</div>
6262
{{end}}

templates/repo/settings/lfs.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</td>
1919
<td>{{FileSize .Size}}</td>
2020
<td>{{DateUtils.TimeSince .CreatedUnix}}</td>
21-
<td class="right aligned">
21+
<td class="tw-text-right">
2222
<a class="ui primary button" href="{{$.Link}}/find?oid={{.Oid}}&size={{.Size}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a>
2323
<button class="ui basic show-modal icon button red" data-modal="#delete-{{.Oid}}">
2424
<span class="btn-octicon btn-octicon-danger" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.delete_this_file"}}">{{svg "octicon-trash"}}</span>

templates/repo/settings/lfs_locks.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</a>
3737
</td>
3838
<td>{{DateUtils.TimeSince .Created}}</td>
39-
<td class="right aligned">
39+
<td class="tw-text-right">
4040
<form action="{{$.LFSFilesLink}}/locks/{{$lock.ID}}/unlock" method="post">
4141
{{$.CsrfTokenHtml}}
4242
<button class="ui primary button"><span class="btn-octicon">{{svg "octicon-lock"}}</span>{{ctx.Locale.Tr "repo.settings.lfs_force_unlock"}}</button>

templates/repo/settings/options.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
<td>{{.PullMirror.RemoteAddress}}</td>
118118
<td>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction.pull"}}</td>
119119
<td>{{DateUtils.FullTime .PullMirror.UpdatedUnix}}</td>
120-
<td class="right aligned">
120+
<td class="tw-text-right">
121121
<form method="post" class="tw-inline-block">
122122
{{.CsrfTokenHtml}}
123123
<input type="hidden" name="action" value="mirror-sync">
@@ -214,7 +214,7 @@
214214
{{if .LastError}}<span class="ui red label" data-tooltip-content="{{.LastError}}">{{ctx.Locale.Tr "error"}}</span>{{end}}
215215
</span>
216216
</td>
217-
<td class="right aligned">
217+
<td class="tw-text-right">
218218
<button
219219
class="ui tiny button show-modal"
220220
data-modal="#push-mirror-edit-modal"

templates/repo/settings/tags.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
{{ctx.Locale.Tr "repo.settings.tags.protection.allowed.noone"}}
105105
{{end}}
106106
</td>
107-
<td class="right aligned">
107+
<td class="tw-text-right">
108108
<a class="ui tiny primary button" href="{{$.RepoLink}}/settings/tags/{{.ID}}">{{ctx.Locale.Tr "edit"}}</a>
109109
<form class="tw-inline-block" action="{{$.RepoLink}}/settings/tags/delete" method="post">
110110
{{$.CsrfTokenHtml}}
@@ -114,7 +114,7 @@
114114
</td>
115115
</tr>
116116
{{else}}
117-
<tr class="center aligned"><td colspan="3">{{ctx.Locale.Tr "repo.settings.tags.protection.none"}}</td></tr>
117+
<tr class="tw-text-center"><td colspan="3">{{ctx.Locale.Tr "repo.settings.tags.protection.none"}}</td></tr>
118118
{{end}}
119119
</tbody>
120120
</table>

templates/shared/actions/runner_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
{{end}}
8888
{{else}}
8989
<tr>
90-
<td class="center aligned" colspan="8">{{ctx.Locale.Tr "actions.runners.none"}}</td>
90+
<td class="tw-text-center" colspan="8">{{ctx.Locale.Tr "actions.runners.none"}}</td>
9191
</tr>
9292
{{end}}
9393
</tbody>

templates/user/auth/grant.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box">
2+
<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable tw-text-center page grid oauth2-authorize-application-box">
33
<div class="column seven wide">
44
<div class="ui middle centered raised segments">
55
<h3 class="ui top attached header">

templates/user/auth/grant_error.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{template "base/head" .}}
2-
<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box {{if .IsRepo}}repository{{end}}">
2+
<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable tw-text-center page grid oauth2-authorize-application-box {{if .IsRepo}}repository{{end}}">
33
{{if .IsRepo}}{{template "repo/header" .}}{{end}}
44
<div class="column seven wide">
55
<div class="ui middle centered raised segments">

templates/user/auth/webauthn.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content user signin webauthn-prompt">
33
<div class="ui page grid">
4-
<div class="column center aligned">
4+
<div class="column tw-text-center">
55
{{template "user/auth/webauthn_error" .}}
66
<h3 class="ui top attached header">{{ctx.Locale.Tr "twofa"}}</h3>
77
<div class="ui attached segment">

templates/user/notification/notification_subscriptions.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929
</div>
3030
<div class="tw-flex tw-justify-between">
31-
<div class="ui right aligned secondary filter menu labels">
31+
<div class="ui secondary filter menu labels">
3232
<!-- Type -->
3333
<div class="ui dropdown type jump item">
3434
<span class="text">

web_src/css/modules/container.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,3 @@
1414
.ui.container.medium-width {
1515
width: 800px;
1616
}
17-
18-
.ui[class*="center aligned"].container {
19-
text-align: center;
20-
}

web_src/css/modules/grid.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -403,36 +403,6 @@
403403
align-self: center !important;
404404
}
405405

406-
.ui[class*="left aligned"].grid > .column,
407-
.ui[class*="left aligned"].grid > .row > .column,
408-
.ui.grid > [class*="left aligned"].row > .column,
409-
.ui.grid > [class*="left aligned"].column.column,
410-
.ui.grid > .row > [class*="left aligned"].column.column {
411-
text-align: left;
412-
align-self: inherit;
413-
}
414-
415-
.ui[class*="center aligned"].grid > .column,
416-
.ui[class*="center aligned"].grid > .row > .column,
417-
.ui.grid > [class*="center aligned"].row > .column,
418-
.ui.grid > [class*="center aligned"].column.column,
419-
.ui.grid > .row > [class*="center aligned"].column.column {
420-
text-align: center;
421-
align-self: inherit;
422-
}
423-
.ui[class*="center aligned"].grid {
424-
justify-content: center;
425-
}
426-
427-
.ui[class*="right aligned"].grid > .column,
428-
.ui[class*="right aligned"].grid > .row > .column,
429-
.ui.grid > [class*="right aligned"].row > .column,
430-
.ui.grid > [class*="right aligned"].column.column,
431-
.ui.grid > .row > [class*="right aligned"].column.column {
432-
text-align: right;
433-
align-self: inherit;
434-
}
435-
436406
.ui[class*="equal width"].grid > .column:not(.row),
437407
.ui[class*="equal width"].grid > .row > .column,
438408
.ui.grid > [class*="equal width"].row > .column {

web_src/css/modules/segment.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,6 @@
123123
clear: both;
124124
}
125125

126-
.ui[class*="left aligned"].segment {
127-
text-align: left;
128-
}
129-
.ui[class*="center aligned"].segment {
130-
text-align: center;
131-
}
132-
133126
.ui.secondary.segment {
134127
background: var(--color-secondary-bg);
135128
color: var(--color-text-light);

web_src/css/modules/table.css

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,6 @@
152152
}
153153
}
154154

155-
.ui.table[class*="left aligned"],
156-
.ui.table [class*="left aligned"] {
157-
text-align: left;
158-
}
159-
160-
.ui.table[class*="center aligned"],
161-
.ui.table [class*="center aligned"] {
162-
text-align: center;
163-
}
164-
165-
.ui.table[class*="right aligned"],
166-
.ui.table [class*="right aligned"] {
167-
text-align: right;
168-
}
169-
170155
.ui.table[class*="top aligned"],
171156
.ui.table [class*="top aligned"] {
172157
vertical-align: top;

0 commit comments

Comments
 (0)