[Rt-commit] rt branch, 4.6-theme-trunk, updated. rt-4.4.4-174-gb9801dcc9
? sunnavy
sunnavy at bestpractical.com
Thu Apr 4 18:21:05 EDT 2019
The branch, 4.6-theme-trunk has been updated
via b9801dcc93bf7a1195a022702c9e40dfe1bf560f (commit)
from 3adc1a3279a9412d473b91256284ce2a2426c0e2 (commit)
Summary of changes:
share/html/Elements/CollectionList | 2 +-
share/static/css/elevator-light/ticket-lists.css | 215 +----------------------
2 files changed, 9 insertions(+), 208 deletions(-)
- Log -----------------------------------------------------------------
commit b9801dcc93bf7a1195a022702c9e40dfe1bf560f
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Apr 5 05:49:25 2019 +0800
Switch to bootstrap styled table
diff --git a/share/html/Elements/CollectionList b/share/html/Elements/CollectionList
index 275ea76b6..f21785e2d 100644
--- a/share/html/Elements/CollectionList
+++ b/share/html/Elements/CollectionList
@@ -116,7 +116,7 @@ if ($Class =~ /::/) { # older passed in value
$Class =~ s/:/_/g;
}
-$m->out('<table cellspacing="0" class="' .
+$m->out('<table cellspacing="0" class="table ' .
($Collection->isa('RT::Tickets') ? 'ticket-list' : 'collection') . ' collection-as-table">');
if ( $ShowHeader ) {
diff --git a/share/static/css/elevator-light/ticket-lists.css b/share/static/css/elevator-light/ticket-lists.css
index 6d3444c8d..ee7c19743 100644
--- a/share/static/css/elevator-light/ticket-lists.css
+++ b/share/static/css/elevator-light/ticket-lists.css
@@ -1,41 +1,17 @@
-table.queue-summary,
-table.collection-as-table {
- width: 100%;
- border-spacing: 0;
- border-collapse: collapse;
-}
-
-table.collection-as-table td {
- padding-bottom: 0.25em
-}
-
-table.collection-as-table h1,
-table.collection-as-table h2,
-table.collection-as-table h3,
-table.collection-as-table h4,
-table.collection-as-table h5 {
- margin: 0;
- margin-right: 0.5em;
- padding: 0;
- padding: 0.1em;
- display: inline-block;
- font-weight: normal;
+table.table tbody {
+ border: none;
}
-table.collection-as-table h1 a,
-table.collection-as-table h2 a,
-table.collection-as-table h3 a,
-table.collection-as-table h4 a,
-table.collection-as-table h5 a {
- font-weight: normal
+table.table th {
+ border: none;
}
-table.queue-summary tr>*:first-child {
- padding-left: 1em
+tr.oddline td {
+ background: #eee;
}
-table.queue-summary tr>*:last-child {
- padding-right: 1em
+table.queue-summary th.collection-as-table:first-child {
+ text-align: left
}
table.queue-summary a,
@@ -43,186 +19,11 @@ table.collection-as-table a {
font-weight: bold
}
-table.collection-as-table th.collection-as-table,
-table.queue-summary th.collection-as-table {
- background: transparent;
- padding: 0.25em;
- margin-bottom: 0.5em;
- padding-bottom: 0.5em;
- color: #3858a3;
-}
-
table.collection-as-table th.collection-as-table a,
table.queue-summary th.collection-as-table a {
color: #3858a3
}
-table.collection-as-table th.collection-as-table {
- text-align: left
-}
-
table.queue-summary th.collection-as-table {
text-align: right
}
-
-table.collection-as-table,
-table.queue-summary {
- border-bottom: 1px solid #ccc;
- margin-bottom: 1em;
-}
-
-table.queue-summary th.collection-as-table:first-child {
- text-align: left
-}
-
-tr.collection-as-table+tr.collection-as-table th,
-table.collection-as-table.chart th {
- border-bottom: 2px solid #ccc
-}
-
-table.queue-summary td {
- background: #efefef;
- border-bottom: 1px solid #ccc;
-}
-
-tr.evenline td,
-tr.oddline td {
- padding-top: 0.5em;
- border-top: 1px solid #cccccc;
-}
-
-tr.evenline td {
- background: #fff
-}
-
-tr.oddline td {
- background: #eee
-}
-
-tr.evenline+tr.evenline td,
-tr.oddline+tr.oddline td {
- border-top: none
-}
-
-tr.evenline,
-tr.oddline {
- border-left: 1px solid #cccccc;
- border-right: 1px solid #cccccc;
-}
-
-tr.evenline+tr.evenline td,
-tr.oddline+tr.oddline td {
- padding-top: 0;
- border: none;
-}
-
-table.collection-as-table td:first-child,
-table.collection-as-table th:first-child {
- padding-left: 1em
-}
-
-table.collection-as-table td:last-child,
-table.collection-as-table th:last-child {
- padding-right: 1em
-}
-
-th.collection-as-table,
-td.collection-as-table {
- padding-right: 0.5em
-}
-
-.pagenum.a:hover,
-.paging a.nav:hover {
- text-decoration: underline
-}
-
-.pagenum *,
-.paging a.nav {
- padding: .5em
-}
-
-.currentpage {
- text-decoration: none;
- font-weight: bold;
- background: #eee;
-}
-
-div.paging {
- text-align: center;
- padding-bottom: 1em;
-}
-
-/* full-page ticket lists */
-
-#body>table.collection-as-table {
- margin-bottom: 2em
-}
-
-.chart.image {
- padding-right: 2em;
- float: left;
- clear: both;
-}
-
-.chart.image.bar {
- margin-top: -1em;
-}
-
-.chart-wrapper {
- display: block;
- width: auto;
-}
-
-.chart-wrapper .collection-as-table {
- width: auto;
- font-size: 1em;
- /* Firefox needs this to let the table flow below the chart on narrow screens */
- clear: right;
-}
-
-.chart-wrapper .collection-as-table th.collection-as-table {
- text-align: center;
- padding: 0.5em;
- padding-right: 1em;
- padding-left: 1em;
-}
-
-.chart-wrapper .collection-as-table tr.total td {
- border-top: 1px solid #ccc
-}
-
-.chart-wrapper .collection-as-table td.value {
- padding-left: 0.5em
-}
-
-.chart-wrapper .query {
- clear: both;
- text-align: center;
- font-size: 1.2em;
- padding: 1em;
-}
-
-.chart-wrapper .collection-as-table .label {
- font-weight: bold
-}
-
-.chart-wrapper .query .label {
- font-weight: bold
-}
-
-.chart-meta {
- padding-top: 2em;
- border-top: 1px solid #ccc;
- clear: both;
-}
-
-.chart-meta .chart-type {
- display: inline-block;
- float: left;
- padding-right: 2em;
- clear: both;
-}
-
-.chart-meta .saved-search {
- display: inline-block
-}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list