You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.1 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .o_list_view.table {
  20. overflow: hidden;
  21. }
  22. .o_list_view.table,
  23. .o_list_view.table thead,
  24. .o_list_view.table tfoot,
  25. .o_list_view.table td,
  26. .o_list_view.table th {
  27. border: none;
  28. }
  29. .o_list_view.table thead {
  30. background-color: white;
  31. th.o_column_sortable:hover {
  32. background-color: white;
  33. }
  34. }
  35. .table-striped > tbody > tr {
  36. background-color: white;
  37. &:nth-of-type(2n+1) {
  38. background-color: gray('200');
  39. }
  40. &:hover {
  41. background-color: gray('300');
  42. }
  43. }
  44. .o_list_view_grouped.table tbody tr {
  45. &:nth-of-type(2n+1) {
  46. background-color: white;
  47. }
  48. &.o_group_header {
  49. background-image: none;
  50. background-color: gray('300');
  51. box-shadow: inset 0 1px 0 gray('400');
  52. }
  53. &:hover {
  54. background-color: gray('300');
  55. }
  56. }
  57. .o_list_view tfoot {
  58. background-color: $o-brand-odoo;
  59. color: white;
  60. cursor: default;
  61. font-weight: normal;
  62. }
  63. .o_content, .modal-content {
  64. > div > .table-responsive {
  65. overflow-x: initial;
  66. > .o_list_view {
  67. thead, thead tr:nth-child(1) th {
  68. position: sticky;
  69. z-index: 1;
  70. top: 0;
  71. }
  72. tfoot, tfoot tr:nth-child(1) td {
  73. position: sticky;
  74. bottom: 0;
  75. }
  76. }
  77. }
  78. }