table--file-multiple-widget.css

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

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