Skip to content

Commit f73d891

Browse files
silverwindGiteaBot
andauthored
Remove fomantic table module (#30047)
Big CSS module. I tested basic functionality on admin and commits table. --------- Co-authored-by: Giteabot <[email protected]>
1 parent 8717c1c commit f73d891

File tree

5 files changed

+358
-1444
lines changed

5 files changed

+358
-1444
lines changed

web_src/css/base.css

-80
Original file line numberDiff line numberDiff line change
@@ -620,86 +620,6 @@ ol.ui.list li,
620620
color: var(--color-primary);
621621
}
622622

623-
.ui.attached.table {
624-
border-color: var(--color-secondary);
625-
}
626-
627-
.ui.table {
628-
color: var(--color-text);
629-
background: var(--color-box-body);
630-
border-color: var(--color-secondary);
631-
text-align: start; /* Override fomantic's `text-align: left` to make RTL work via HTML `dir="auto"` */
632-
}
633-
634-
.ui.table th,
635-
.ui.table td {
636-
transition: none;
637-
}
638-
639-
.ui.table > tr > td,
640-
.ui.table > tbody > tr > td {
641-
border-top-color: var(--color-secondary-alpha-50);
642-
}
643-
644-
.ui.striped.table > tr:nth-child(2n),
645-
.ui.striped.table > tbody > tr:nth-child(2n),
646-
.ui.basic.striped.table > tbody > tr:nth-child(2n) {
647-
background: var(--color-light);
648-
}
649-
650-
.ui.ui.ui.ui.table tr.active,
651-
.ui.ui.table td.active {
652-
color: var(--color-text);
653-
background: var(--color-active);
654-
}
655-
656-
.ui.ui.selectable.table > tbody > tr:hover,
657-
.ui.table tbody tr td.selectable:hover {
658-
color: var(--color-text);
659-
background-color: var(--color-secondary-alpha-40);
660-
}
661-
662-
.ui.ui.ui.ui.table tr.grey:not(.marked),
663-
.ui.ui.table td.grey:not(.marked) {
664-
background: var(--color-body);
665-
color: var(--color-text);
666-
}
667-
668-
.ui.table > thead > tr > th {
669-
background: var(--color-box-header);
670-
border-color: var(--color-secondary);
671-
color: var(--color-text);
672-
}
673-
674-
.ui.basic.table > tbody > tr {
675-
border-color: var(--color-secondary);
676-
}
677-
678-
.ui.table > tfoot > tr > th,
679-
.ui.table > tfoot > tr > td {
680-
border-color: var(--color-secondary);
681-
background: var(--color-box-body);
682-
color: var(--color-text);
683-
}
684-
685-
/* reduce table padding, needed especially for dense admin tables */
686-
.ui.table > thead > tr > th,
687-
.ui.table > tbody > tr > td,
688-
.ui.table > tr > td {
689-
padding: 6px 5px;
690-
}
691-
/* use more horizontal padding on first and last items for visuals */
692-
.ui.table > thead > tr > th:first-of-type,
693-
.ui.table > tbody > tr > td:first-of-type,
694-
.ui.table > tr > td:first-of-type {
695-
padding-left: 10px;
696-
}
697-
.ui.table > thead > tr > th:last-of-type,
698-
.ui.table > tbody > tr > td:last-of-type,
699-
.ui.table > tr > td:last-of-type {
700-
padding-right: 10px;
701-
}
702-
703623
img.ui.avatar,
704624
.ui.avatar img,
705625
.ui.avatar svg {

web_src/css/index.css

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@import "./modules/segment.css";
1010
@import "./modules/grid.css";
1111
@import "./modules/message.css";
12+
@import "./modules/table.css";
1213
@import "./modules/card.css";
1314
@import "./modules/modal.css";
1415

0 commit comments

Comments
 (0)