table--file-multiple-widget.pcss.css

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

Styles for multiple file widget table.

File

core/themes/claro/css/components/table--file-multiple-widget.pcss.css

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

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