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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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-davysgrey);
  48. background: var(--color-whitesmoke);
  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. }