You are here

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

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