1
0
Fork 0

Unified datatable colouring of odd and even

This commit is contained in:
Michael Hackstein 2014-01-30 15:11:23 +01:00
parent fcb30082c9
commit fd80bf7387
13 changed files with 21 additions and 79 deletions

View File

@ -79,11 +79,3 @@
margin: 11px 10px 0 0 !important;
}
#resources > li:nth-child(even) {
background-color: #FFFFFF !important;
}
#resources > li:nth-child(odd) {
background-color: #F1F0EE !important;
}

View File

@ -51,14 +51,6 @@
padding:12px 18px;
}
#databaseTable tr:nth-child(odd) {
background-color: #F1F0EE;
}
#databaseTable tr:nth-child(even) {
background-color: #FFFFFF;
}
#createDatabaseModal table {
width: 100%;
}

View File

@ -6,14 +6,6 @@
padding:12px 18px !important;
}
#logContent .odd {
background-color: #F1F0EE;
}
#logContent .even {
background-color: #FFFFFF;
}
table.dataTable thead th {
border-bottom:none;
@ -31,8 +23,6 @@ table.arangoDataTable.dataTable td {
}
.arangoDataTable {
padding-left: 5px !important;
padding-right: 5px !important;
width: 100% !important;
position: relative;
table-layout:fixed !important;
@ -54,3 +44,13 @@ table.arangoDataTable.dataTable td {
margin-top: 4px;
}
/* Odd / Even coloring */
.api-container ul#resources > li.resource:nth-child(even),
table.arangoDataTable tr.even {
background-color: #FFFFFF;
}
.api-container ul#resources > li.resource:nth-child(odd),
table.arangoDataTable tr.odd {
background-color: #F1F0EE;
}

View File

@ -148,7 +148,6 @@ table.dataTable thead th {
}
#documentTableID.dataTable thead tr {
/* background-color: #F1F0EE;*/
background-color: #FFFFFF;
}
@ -159,23 +158,6 @@ table.dataTable thead th {
box-shadow: none;
}
#documentTableID .odd,
table.dataTable.arangoDataTable tr.odd {
background:#F1F0EE;
}
#documentTableID .even,
table.dataTable.arangoDataTable tr.even {
background:#FFFFFF;
}
#documentTableID tr.odd td.sorting_1 {
background:#F1F0EE;/* #fdf6df*/
}
#documentTableID tr.even td.sorting_1 {
background:#FFFFFF; /*#fdfaec*/
}
.arangoTab > li > a,
.arangoTab > li:hover > a {
border-radius: 0 !important;

View File

@ -401,14 +401,6 @@
min-width: 100% !important;
}
#collectionEditIndexTable tr:nth-child(even) {
background-color: white !important;
}
#collectionEditIndexTable tr:nth-child(odd) {
background-color: #F1F0EE !important;
}
#collectionEditIndexTable th {
padding-top: 5px;
padding-bottom: 5px;

View File

@ -25,25 +25,11 @@
word-break: break-all;
}
#logContent .sorting_1 {
background-color: #FBFBFB !important;
}
/*.odd .sorting_1 {
background-color: none !important;
}
.even .sorting_1 {
background-color: #F1F0EE !important;
}*/
#logToolbar {
padding-top: 10px;
padding-bottom: 15px;
border: 1px solid #C1BDBA;
background-color: #F7F6F6 !important;
#logToolbar {
padding-top: 10px;
padding-bottom: 15px;
border: 1px solid #C1BDBA;
background-color: #F7F6F6 !important;
}
#logToolbar button {

View File

@ -1,8 +1,6 @@
pre{
margin: 0 0 0 0;
}
.form-actions {
}
.swagger-ui-wrap .container {
width: auto;
margin: 20px;

View File

@ -5,7 +5,7 @@
</ul>
<div id="databaseDiv" class="thumbnails">
<table id="databaseTable">
<table id="databaseTable" class="arangoDataTable">
<thead>
<tr>
<td class="dbThFirst">Name</td>

View File

@ -13,7 +13,7 @@
</li>
</ul>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="documentTableID" width="100%">
<table cellpadding="0" cellspacing="0" border="0" class="display arangoDataTable" id="documentTableID" width="100%">
<thead>
<tr>
<th>Attribute</th>

View File

@ -66,7 +66,7 @@
<div class="contentIn" id="indexHeaderContent">
<div id="indexEditView">
<a>Indexes:</a>
<table id="collectionEditIndexTable">
<table id="collectionEditIndexTable" class="arangoDataTable">
<tr class="figuresHeader">
<th class="collectionInfoTh">ID</th>
<th class="collectionInfoTh">Type</th>

View File

@ -221,7 +221,6 @@
}
});
this.makeEditable();
$(this.table).dataTable().fnSort([ [0, 'asc'] ]);
},
addLine: function (event) {
@ -265,7 +264,7 @@
initTable: function () {
$(this.table).dataTable({
"aaSorting": [[ 1, "asc" ]],
"bSortClasses": false,
"bAutoWidth": false,
"bFilter": false,
"bPaginate":false,

View File

@ -477,7 +477,7 @@
initTable: function (colid, pageid) {
$('#documentsTableID').dataTable({
"aaSorting": [[ 1, "asc" ]],
"bSortClasses": false,
"bFilter": false,
"bPaginate":false,
"bRetrieve": true,

View File

@ -114,6 +114,7 @@
"bFilter": false,
"bPaginate": false,
"bSort" : false,
"bSortClasses": false,
"bLengthChange": false,
"bDeferRender": true,
"bProcessing": true,