From 17647f2452464523c320d02390bdbb7ee27619cd Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 7 Feb 2018 20:35:03 -0700 Subject: [PATCH] Add some table CSS --- static/css/tables.css | 120 ++++++++++++++++++++++++++++++++++ static/img/minus-square.svg | 1 + static/img/search-plus.svg | 1 + static/img/up-arrow-black.png | Bin 341 -> 0 bytes static/img/up-arrow-black.svg | 94 -------------------------- static/img/up-arrow-white.png | Bin 334 -> 0 bytes static/img/up-arrow-white.svg | 94 -------------------------- 7 files changed, 122 insertions(+), 188 deletions(-) create mode 100644 static/css/tables.css create mode 100644 static/img/minus-square.svg create mode 100644 static/img/search-plus.svg delete mode 100644 static/img/up-arrow-black.png delete mode 100644 static/img/up-arrow-black.svg delete mode 100644 static/img/up-arrow-white.png delete mode 100644 static/img/up-arrow-white.svg diff --git a/static/css/tables.css b/static/css/tables.css new file mode 100644 index 0000000..abae78e --- /dev/null +++ b/static/css/tables.css @@ -0,0 +1,120 @@ +table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, +table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child { + position: relative; + padding-left: 30px; + cursor: pointer; +} +table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, +table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before { + top: 10px; + left: initial; + right: 15px; + height: 16px; + width: 16px; + color: initial; + border: initial; + border-radius: initial; + text-align: initial; + line-height: initial; + box-shadow: initial; + box-sizing: initial; + background-color: initial; + display: block; + position: absolute; + background-image: url(../img/search-plus.svg); + background-repeat: no-repeat; + background-size: 16px 16px; + content: ''; +} +table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child.dataTables_empty:before, +table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child.dataTables_empty:before { + display: none; +} +table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, +table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before { + background-color: initial; + background-image: url(../img/minus-square.svg); + background-repeat: no-repeat; + background-size: 16px 16px; + content: ''; +} +table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before { + display: none; +} +table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, +table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child { + padding-left: 27px; +} +table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, +table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before { + top: 5px; + left: 4px; + height: 14px; + width: 14px; + border-radius: 14px; + line-height: 12px; +} +table.dataTable.dtr-column > tbody > tr > td.control, +table.dataTable.dtr-column > tbody > tr > th.control { + position: relative; + cursor: pointer; + width: 15px; +} +table.dataTable.dtr-column > tbody > tr > td.control:before, +table.dataTable.dtr-column > tbody > tr > th.control:before { + top: initial; + left: initial; + height: 16px; + width: 16px; + margin-top: auto; + margin-left: auto; + display: block; + position: absolute; + background-image: url(../img/search-plus.svg); + background-repeat: no-repeat; + background-size: 16px 16px; + content: ''; + color: initial; + border: initial; + border-radius: initial; + text-align: initial; + line-height: initial; + box-shadow: initial; + box-sizing: initial; + background-color: initial; +} +table.dataTable.dtr-column > tbody > tr.parent td.control:before, +table.dataTable.dtr-column > tbody > tr.parent th.control:before { + background-color: initial; + background-image: url(../img/minus-square.svg); + background-repeat: no-repeat; + background-size: 16px 16px; + content: ''; +} +table.dataTable > tbody > tr.child { + padding: 0.5em 1em; +} +table.dataTable > tbody > tr.child:hover { + background: transparent !important; +} +table.dataTable > tbody > tr.child ul { + display: inline-block; + list-style-type: none; + margin: 0; + padding: 0; +} +table.dataTable > tbody > tr.child ul li { + border-bottom: 1px solid #efefef; + padding: 0.5em 0; +} +table.dataTable > tbody > tr.child ul li:first-child { + padding-top: 0; +} +table.dataTable > tbody > tr.child ul li:last-child { + border-bottom: none; +} +table.dataTable > tbody > tr.child span.dtr-title { + display: inline-block; + min-width: 75px; + font-weight: bold; +} \ No newline at end of file diff --git a/static/img/minus-square.svg b/static/img/minus-square.svg new file mode 100644 index 0000000..30fcd62 --- /dev/null +++ b/static/img/minus-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/search-plus.svg b/static/img/search-plus.svg new file mode 100644 index 0000000..d7fc4b7 --- /dev/null +++ b/static/img/search-plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/up-arrow-black.png b/static/img/up-arrow-black.png deleted file mode 100644 index ad374713654f510238696c6a0c70266c9e2f994d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 341 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7T#lEV3hH6aSW-r_4f98Etf=@_K*HK zIyYuW)pzYqJXcg4K# zCFi1_*K#Vh>`xb(z2kuJx(!jT`?`%y?muHaojX1L$XkY==Wnjkxxe6g*iXwle-!S! zFMoB){KjgX`regY{k5M3GZa5f?5}yEEdTR_yB&gAcjwHbJdU62Z<3zRKWBDrzkUMy zdFK<`Gk;ke;gJ!a{NHMMLA-^-WCjZ@o%*1!sz17zeZv3ntV^_$UigMhSW!?26Fr=+ zQ5#Zrh2wXW&&$W37Ta*z>Ms8>b*BHWd;bse?lRfBghTko0ZX~UPEo}cgS2}L%I6Eq U%9Gw+2L=~|r>mdKI;Vst0FsH5?*IS* diff --git a/static/img/up-arrow-black.svg b/static/img/up-arrow-black.svg deleted file mode 100644 index 843f74b..0000000 --- a/static/img/up-arrow-black.svg +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/static/img/up-arrow-white.png b/static/img/up-arrow-white.png deleted file mode 100644 index 176e6c37dd10abbe1877a53e04b36ef7414c3d00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 334 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7T#lEU=;OqaSW-r_4c-{9*cua+egmc zrekWal^>d2xf0D`9$?v^JfXw5BWjbAzTjM!^$La_i18(%@bw$pGeI8)8-%hs{SN@WAEB}E3=Ki(wHtDY>wjD(7&?H zx%8#^9T7eS#)5zw|5v - - - - - - - - - image/svg+xml - - - - - - - - - - - - -