off-canvas.table.css 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * @file
  3. * Visual styling for tables in the off-canvas dialog.
  4. */
  5. #drupal-off-canvas table * {
  6. font-family: "Lucida Grande", 'Lucida Sans Unicode', 'liberation sans', sans-serif;
  7. }
  8. #drupal-off-canvas table {
  9. display: table;
  10. width: 100%;
  11. min-width: calc(100% + 40px);
  12. /* Cancel out the padding of the parent to make the table full width. */
  13. margin: 0 -20px -10px -20px;
  14. border: 0;
  15. border-collapse: collapse;
  16. font-size: 12px;
  17. color: #ddd;
  18. }
  19. #drupal-off-canvas table thead {
  20. display: table-header-group;
  21. }
  22. #drupal-off-canvas table tbody {
  23. display: table-row-group;
  24. }
  25. #drupal-off-canvas tr {
  26. display: table-row;
  27. }
  28. #drupal-off-canvas tr:hover td {
  29. background-color: transparent;
  30. }
  31. #drupal-off-canvas td,
  32. #drupal-off-canvas th {
  33. display: table-cell;
  34. height: auto;
  35. width: auto;
  36. padding: 2px 8px;
  37. vertical-align: middle;
  38. border-bottom: 1px solid #777;
  39. background-color: transparent;
  40. }
  41. [dir="rtl"] #drupal-off-canvas th,
  42. [dir="rtl"] #drupal-off-canvas td {
  43. text-align: right;
  44. }
  45. #drupal-off-canvas th {
  46. font-weight: bold;
  47. }
  48. #drupal-off-canvas th.checkbox,
  49. #drupal-off-canvas td.checkbox {
  50. width: 20px;
  51. padding: 0;
  52. text-align: center;
  53. }
  54. #drupal-off-canvas div.checkbox.menu-enabled {
  55. position: static;
  56. display: inline;
  57. width: auto;
  58. }
  59. #drupal-off-canvas th:first-child,
  60. #drupal-off-canvas td:first-child {
  61. width: 150px;
  62. }
  63. /* For lack of a better class, using this to grab the operations th. */
  64. #drupal-off-canvas .tabledrag-has-colspan {
  65. text-align: right;
  66. padding-right: 20px;
  67. }
  68. #drupal-off-canvas td {
  69. padding: 6px 8px;
  70. color: #ddd;
  71. }
  72. /* Hide overflow with ellipsis for links. */
  73. #drupal-off-canvas td a {
  74. display: block;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. white-space: nowrap;
  78. background: transparent;
  79. }
  80. #drupal-off-canvas tr td:first-child,
  81. #drupal-off-canvas tr th:first-child {
  82. padding-left: 20px; /* LTR */
  83. }
  84. [dir="rtl"] #drupal-off-canvas tr td:first-child,
  85. [dir="rtl"] #drupal-off-canvas tr th:first-child {
  86. padding-right: 20px;
  87. }