-
-
Notifications
You must be signed in to change notification settings - Fork 641
update datatables.net-bs #3663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
update datatables.net-bs #3663
Changes from 4 commits
b52dca4
fcf6432
435bc20
2b09d8f
1f1e05e
4369db3
d91d8e9
0273c29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -397,29 +397,6 @@ td.highlight { | |
| background-color: rgba(255, 204, 0, 0.333); | ||
| } | ||
|
|
||
| table.dataTable thead .sorting:after, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this for the light theme? |
||
| table.dataTable thead .sorting_asc:after, | ||
| table.dataTable thead .sorting_desc:after, | ||
| table.dataTable thead .sorting_asc_disabled:after, | ||
| table.dataTable thead .sorting_desc_disabled:after { | ||
| opacity: 1; | ||
| width: 20px; | ||
| padding: 0 1px; | ||
| border-radius: 4px; | ||
| text-align: center; | ||
| } | ||
| table.dataTable thead .sorting:after { | ||
| opacity: 0.6; | ||
| } | ||
| table.dataTable thead th:hover.sorting::after, | ||
| table.dataTable thead th:hover.sorting_asc::after, | ||
| table.dataTable thead th:hover.sorting_desc::after, | ||
| table.dataTable thead th:hover.sorting_asc_disabled::after, | ||
| table.dataTable thead th:hover.sorting_desc_disabled::after { | ||
| color: #fff; | ||
| background: #000; | ||
| } | ||
|
|
||
| #domain-frequency .table-responsive table tr th:nth-child(3), | ||
| #domain-frequency .table-responsive table tr td:nth-child(3), | ||
| #ad-frequency .table-responsive table tr th:nth-child(3), | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1361,44 +1361,6 @@ table.table-bordered.dataTable td { | |||||||||||||||||||||
| border: 1px solid #111 !important; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting::before { | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree most of the old CSS can be removed here, but I still think the default opacity is too low and the controls look too faded in this theme. Can you please try these CSS rules? |
||||||||||||||||||||||
| content: "\25B3"; | ||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||
| bottom: 16px; | ||||||||||||||||||||||
| right: 8px; | ||||||||||||||||||||||
| display: block; | ||||||||||||||||||||||
| font-family: "Glyphicons Halflings"; | ||||||||||||||||||||||
| opacity: 0.3; | ||||||||||||||||||||||
| font-size: 0.6em; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting:after, | ||||||||||||||||||||||
| table.dataTable thead .sorting_asc:after, | ||||||||||||||||||||||
| table.dataTable thead .sorting_desc:after, | ||||||||||||||||||||||
| table.dataTable thead .sorting_asc_disabled:after, | ||||||||||||||||||||||
| table.dataTable thead .sorting_desc_disabled:after { | ||||||||||||||||||||||
| opacity: 0.6; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting:after { | ||||||||||||||||||||||
| opacity: 0.3; | ||||||||||||||||||||||
| content: "\25BD"; | ||||||||||||||||||||||
| font-size: 0.6em; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting_asc::after { | ||||||||||||||||||||||
| content: "\25B2"; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting_desc::after { | ||||||||||||||||||||||
| content: "\25BC"; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| table.dataTable thead .sorting_asc_disabled:after, | ||||||||||||||||||||||
| table.dataTable thead .sorting_desc_disabled:after { | ||||||||||||||||||||||
| color: #eee; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .table-striped > tbody > tr:nth-of-type(2n + 1) { | ||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new CSS changed the selector here, so we need to changed it to make sure the table rows have alternating background colors:
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about using
Suggested change
From the Domains page: <tbody>
<tr
class="odd"
data-id="0064006f006d00610069006e0031002e0063006f006d_deny_exact"
></tr>
<tr
class="even"
data-id="0064006f006d00610069006e0032002e0063006f006d_deny_exact"
></tr>
<tr
class="odd"
data-id="0064006f006d00610069006e0033002e0063006f006d_deny_exact"
></tr>
<tr
class="even"
data-id="0064006f006d00610069006e0034002e0063006f006d_deny_exact"
></tr>
</tbody>
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both The old The table on the homepage does not have We would need something like this for default-dark.css: .table-striped > tbody > tr:nth-of-type(2n + 1) {
background-color: #2d343a;
}
table.dataTable.table-striped > tbody > tr.odd {
background-color: #2d343a;
}The same is true for all other themes as well.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For High contrast light we dont seem to need it at all. .table-striped > tbody > tr:nth-of-type(2n + 1) {
background-color: #fcfcfc;
}
table.dataTable.table-striped > tbody > tr.odd {
background-color: #fcfcfc;
}
We might want to keep it, but use a color with better contrast instead, I will commit the Without changes for now.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm... I only used the group management pages for testing my suggestions. Your suggestions will probably fix all issues, but I will take a look an check (using the last commit) why some tables are working differently, to make sure nothing else is broken. |
||||||||||||||||||||||
| background: none; | ||||||||||||||||||||||
| background-color: rgba(80, 80, 80, 0.1); | ||||||||||||||||||||||
|
|
||||||||||||||||||||||








There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to try co increase the contrast on these 2 themes
Can you try this for the dark theme?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[deleted](Commented on the wrong suggestion)