table--file-multiple-widget.css

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

Styles for multiple file widget table.

File

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

View source
  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. }

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