Skip to content

Commit 00ec651

Browse files
authored
CSS table fixes (#13692)
* CSS table fixes Override the right fomantic selectors. Fixes: #13690 * use flexbox
1 parent 24330f7 commit 00ec651

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

templates/repo/wiki/pages.tmpl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
<div class="repository wiki pages">
33
{{template "repo/header" .}}
44
<div class="ui container">
5-
<div class="ui header">
6-
{{.i18n.Tr "repo.wiki.pages"}}
7-
{{if and .CanWriteUncyclo (not .IsRepositoryMirror)}}
8-
<div class="ui right">
9-
<a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
5+
<h2 class="ui header df ac sb">
6+
<div>
7+
{{.i18n.Tr "repo.wiki.pages"}}
108
</div>
11-
{{end}}
12-
</div>
9+
<div>
10+
{{if and .CanWriteUncyclo (not .IsRepositoryMirror)}}
11+
<a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
12+
{{end}}
13+
</div>
14+
</h2>
1315
<table class="ui table">
1416
<tbody>
1517
{{range .Pages}}

web_src/less/_base.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ a:hover,
229229

230230
.ui.table {
231231
color: var(--color-text);
232+
background: var(--color-body);
233+
border-color: var(--color-secondary);
232234
}
233235

234236
.ui.ui.selectable.table > tbody > tr:hover,
@@ -237,6 +239,12 @@ a:hover,
237239
background-color: var(--color-secondary-alpha-40);
238240
}
239241

242+
.ui.ui.ui.ui.table tr.grey:not(.marked),
243+
.ui.ui.table td.grey:not(.marked) {
244+
background: var(--color-body);
245+
color: var(--color-text);
246+
}
247+
240248
.ui.modal {
241249
background: var(--color-body);
242250
}

web_src/less/themes/theme-arc-green.less

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -891,25 +891,10 @@ a.ui.basic.green.label:hover {
891891
background-color: #393d4a !important;
892892
}
893893

894-
.ui.table {
895-
border-color: var(--color-secondary);
896-
background: #353945;
897-
}
898-
899-
.ui.table tbody tr {
900-
border-color: var(--color-secondary);
901-
background: #353945;
902-
}
903-
904894
.ui .text.grey {
905895
color: var(--color-secondary-dark-6) !important;
906896
}
907897

908-
.ui.attached.table.segment {
909-
background: #353945;
910-
color: #dbdbdb !important;
911-
}
912-
913898
.markdown:not(code) h2 {
914899
border-bottom: 1px solid #304251;
915900
}

0 commit comments

Comments
 (0)