table--file-multiple-widget.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styles for multiple file widget table.
  10. */
  11. .table-file-multiple-widget tbody {
  12. vertical-align: top;
  13. }
  14. .table-file-multiple-widget .tabledrag-cell-content {
  15. position: relative;
  16. display: block;
  17. height: auto;
  18. }
  19. .table-file-multiple-widget .tabledrag-cell-content > * {
  20. display: block;
  21. }
  22. .table-file-multiple-widget .tabledrag-cell-content__item {
  23. padding: 0;
  24. }
  25. .table-file-multiple-widget .tabledrag-handle {
  26. float: left; /* LTR */
  27. }
  28. [dir="rtl"] .table-file-multiple-widget .tabledrag-handle {
  29. float: right;
  30. }
  31. .table-file-multiple-widget .tabledrag-changed {
  32. float: left; /* LTR */
  33. line-height: 2.0625rem;
  34. }
  35. [dir="rtl"] .table-file-multiple-widget .tabledrag-changed {
  36. float: left;
  37. }
  38. .table-file-multiple-widget td {
  39. height: 3rem;
  40. }
  41. .table-file-multiple-widget td > :first-child {
  42. margin-top: 0;
  43. }
  44. .table-file-multiple-widget td > :last-child {
  45. margin-bottom: 0;
  46. }
  47. .table-file-multiple-widget .button.button:only-child {
  48. margin: 0;
  49. }
  50. .table-file-multiple-widget th {
  51. height: 2rem;
  52. color: #545560;
  53. background: #f3f4f9;
  54. font-size: 0.889rem;
  55. }
  56. .table-file-multiple-widget td {
  57. padding-top: 1rem;
  58. padding-bottom: 1rem;
  59. }
  60. .table-file-multiple-widget .tabledrag-cell {
  61. padding-top: 0.5rem;
  62. padding-bottom: 0.5rem;
  63. }
  64. .table-file-multiple-widget .checkbox .form-type--boolean {
  65. line-height: 3rem;
  66. }
  67. .no-touchevents .table-file-multiple-widget .checkbox .form-type--boolean {
  68. line-height: 1.5;
  69. }
  70. /**
  71. * The cell that contains file operations (usually, this is the remove button).
  72. */
  73. .file-operations-cell {
  74. width: 1px;
  75. white-space: nowrap; /* Don't let ajax-progress be broken into a new line. */
  76. }
  77. /**
  78. * Remove the border for the last table row if upload is not possible.
  79. * (A full file widget with limited cardinality.)
  80. */
  81. .table-file-multiple-widget--no-upload > tbody:last-child > tr:last-child {
  82. border-bottom: 0;
  83. }
  84. /**
  85. * Take as much space as possible.
  86. */
  87. @media screen and (max-width: 37.5em) {
  88. .claro-details__wrapper .file-widget-multiple__table-wrapper {
  89. margin-right: -1rem;
  90. margin-left: -1rem;
  91. }
  92. .claro-details__wrapper .file-widget-multiple__table-wrapper > :not(table) {
  93. margin-right: 1rem;
  94. margin-left: 1rem;
  95. }
  96. }