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

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

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