table--file-multiple-widget.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/table--file-multiple-widget.css
  2. 8.9.x core/themes/claro/css/components/table--file-multiple-widget.css
  3. 11.x core/themes/claro/css/components/table--file-multiple-widget.css

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. .table-file-multiple-widget .tabledrag-changed {
  27. float: left;
  28. }
  29. .table-file-multiple-widget .tabledrag-changed {
  30. line-height: calc(var(--tabledrag-handle-icon-size) + calc(var(--space-xs) * 2));
  31. }
  32. .table-file-multiple-widget td {
  33. height: calc(var(--space-m) * 3);
  34. padding-block: var(--space-m);
  35. }
  36. .table-file-multiple-widget td > :first-child,
  37. .table-file-multiple-widget td > :last-child {
  38. margin-block: 0;
  39. }
  40. .table-file-multiple-widget .button.button:only-child {
  41. margin: 0;
  42. }
  43. .table-file-multiple-widget th {
  44. height: calc(var(--space-m) * 2);
  45. color: var(--color-gray-800);
  46. background: var(--color-gray-050);
  47. font-size: var(--font-size-s);
  48. }
  49. .table-file-multiple-widget .tabledrag-cell {
  50. padding-block: var(--space-xs);
  51. }
  52. .table-file-multiple-widget .checkbox .form-type--boolean {
  53. line-height: calc(var(--space-m) * 3);
  54. }
  55. [dir="rtl"] .table-file-multiple-widget .tabledrag-handle,
  56. [dir="rtl"] .table-file-multiple-widget .tabledrag-changed {
  57. float: right;
  58. }
  59. .no-touchevents .table-file-multiple-widget .checkbox .form-type--boolean {
  60. line-height: var(--line-height);
  61. }
  62. /**
  63. * The cell that contains file operations (usually, this is the remove button).
  64. */
  65. .file-operations-cell {
  66. width: 1px;
  67. white-space: nowrap; /* Don't let ajax-progress be broken into a new line. */
  68. }
  69. /**
  70. * Remove the border for the last table row if upload is not possible.
  71. * (A full file widget with limited cardinality.)
  72. */
  73. .table-file-multiple-widget--no-upload > tbody:last-child > tr:last-child {
  74. border-block-end: 0;
  75. }
  76. /**
  77. * Take as much space as possible.
  78. */
  79. @media screen and (max-width: 37.5em) {
  80. .claro-details__wrapper .file-widget-multiple__table-wrapper {
  81. margin-inline: calc(var(--space-m) * -1);
  82. }
  83. .claro-details__wrapper .file-widget-multiple__table-wrapper > :not(table) {
  84. margin-inline: var(--space-m);
  85. }
  86. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.