You are here

table--file-multiple-widget.css in Drupal 10

Styles for multiple file widget table.

File

core/themes/claro/css/components/table--file-multiple-widget.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styles for multiple file widget table.
  10. */
  11. .table-file-multiple-widget tbody {
  12. vertical-align: top;
  13. }
  14. .table-file-multiple-widget .tabledrag-cell-content {
  15. position: relative;
  16. display: block;
  17. height: auto;
  18. }
  19. .table-file-multiple-widget .tabledrag-cell-content > * {
  20. display: block;
  21. }
  22. .table-file-multiple-widget .tabledrag-cell-content__item {
  23. padding: 0;
  24. }
  25. .table-file-multiple-widget .tabledrag-handle {
  26. float: left; /* LTR */
  27. }
  28. [dir="rtl"] .table-file-multiple-widget .tabledrag-handle {
  29. float: right;
  30. }
  31. .table-file-multiple-widget .tabledrag-changed {
  32. float: left; /* LTR */
  33. line-height: calc(var(--tabledrag-handle-icon-size) + calc(var(--space-xs) * 2));
  34. }
  35. [dir="rtl"] .table-file-multiple-widget .tabledrag-changed {
  36. float: left;
  37. }
  38. .table-file-multiple-widget td {
  39. height: calc(var(--space-m) * 3);
  40. }
  41. .table-file-multiple-widget td > :first-child {
  42. margin-top: 0;
  43. }
  44. .table-file-multiple-widget td > :last-child {
  45. margin-bottom: 0;
  46. }
  47. .table-file-multiple-widget .button.button:only-child {
  48. margin: 0;
  49. }
  50. .table-file-multiple-widget th {
  51. height: calc(var(--space-m) * 2);
  52. color: var(--color-gray-800);
  53. background: var(--color-gray-050);
  54. font-size: var(--font-size-s);
  55. }
  56. .table-file-multiple-widget td {
  57. padding-top: var(--space-m);
  58. padding-bottom: var(--space-m);
  59. }
  60. .table-file-multiple-widget .tabledrag-cell {
  61. padding-top: var(--space-xs);
  62. padding-bottom: var(--space-xs);
  63. }
  64. .table-file-multiple-widget .checkbox .form-type--boolean {
  65. line-height: calc(var(--space-m) * 3);
  66. }
  67. .no-touchevents .table-file-multiple-widget .checkbox .form-type--boolean {
  68. line-height: var(--line-height);
  69. }
  70. /**
  71. * The cell that contains file operations (usually, this is the remove button).
  72. */
  73. .file-operations-cell {
  74. width: 1px;
  75. white-space: nowrap; /* Don't let ajax-progress be broken into a new line. */
  76. }
  77. /**
  78. * Remove the border for the last table row if upload is not possible.
  79. * (A full file widget with limited cardinality.)
  80. */
  81. .table-file-multiple-widget--no-upload > tbody:last-child > tr:last-child {
  82. border-bottom: 0;
  83. }
  84. /**
  85. * Take as much space as possible.
  86. */
  87. @media screen and (max-width: 37.5em) {
  88. .claro-details__wrapper .file-widget-multiple__table-wrapper {
  89. margin-right: calc(var(--space-m) * -1);
  90. margin-left: calc(var(--space-m) * -1);
  91. }
  92. .claro-details__wrapper .file-widget-multiple__table-wrapper > :not(table) {
  93. margin-right: var(--space-m);
  94. margin-left: var(--space-m);
  95. }
  96. }