You are here

system-admin--modules.pcss.css in Drupal 10

System admin module: modules page.

File

core/themes/claro/css/components/system-admin--modules.pcss.css
View source
  1. /**
  2. * @file
  3. * System admin module: modules page.
  4. */
  5. :root {
  6. --module-table-cell-padding-vertical: var(--space-m);
  7. --module-table-cell-padding-horizontal: calc(var(--space-m) - (var(--input-border-size) * 2));
  8. }
  9. .modules-table-filter {
  10. padding: 0.25rem var(--space-l);
  11. border: 1px solid var(--color-gray-200);
  12. border-radius: 2px 2px 0 0;
  13. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  14. }
  15. /* Visually hide the module filter input description. */
  16. .modules-table-filter .form-item__description {
  17. position: absolute !important;
  18. overflow: hidden;
  19. clip: rect(1px, 1px, 1px, 1px);
  20. width: 1px;
  21. height: 1px;
  22. word-wrap: normal;
  23. }
  24. .claro-details.claro-details--package-listing,
  25. .claro-details.module-list__module-details {
  26. margin-top: 2rem;
  27. margin-bottom: 0;
  28. border: none;
  29. box-shadow: none;
  30. }
  31. .claro-details__wrapper.claro-details__wrapper--package-listing {
  32. margin: 0;
  33. }
  34. .claro-details__summary.claro-details__summary--package-listing {
  35. color: var(--color-text);
  36. border-radius: 4px;
  37. background: var(--color-gray-050);
  38. font-size: 1.125rem; /* 18px */
  39. line-height: 1.424rem; /* 23px */
  40. }
  41. .module-list {
  42. margin-top: 0;
  43. }
  44. .module-list__module {
  45. color: var(--color-text);
  46. border-bottom: 1px solid var(--color-gray-200);
  47. background: none;
  48. }
  49. .module-list__module:hover {
  50. background: none;
  51. }
  52. .module-list__module td {
  53. height: auto;
  54. padding: var(--module-table-cell-padding-vertical) var(--module-table-cell-padding-horizontal);
  55. vertical-align: top;
  56. }
  57. /* Set width only on wider view where description is visible by default. */
  58. @media screen and (min-width: 60em) {
  59. td.module-list__module {
  60. width: 25%;
  61. }
  62. }
  63. .module-list__module-name {
  64. font-weight: bold;
  65. }
  66. .module-list__checkbox {
  67. padding-left: 0.6875rem; /* LTR */
  68. text-align: left; /* LTR */
  69. }
  70. [dir="rtl"] .module-list__checkbox {
  71. padding-right: 0.6875rem;
  72. padding-left: var(--module-table-cell-padding-horizontal);
  73. text-align: right;
  74. }
  75. .module-list__checkbox .form-type--checkbox {
  76. margin: 0;
  77. line-height: var(--details-line-height);
  78. }
  79. .module-list__checkbox .form-checkbox:not([disabled]) {
  80. cursor: pointer;
  81. }
  82. td.module-list__checkbox {
  83. width: 4%;
  84. }
  85. td.module-list__description {
  86. padding-top: 0;
  87. padding-right: 0;
  88. padding-bottom: 0;
  89. }
  90. .claro-details.module-list__module-details {
  91. margin: 0;
  92. }
  93. .claro-details__summary.module-list__module-summary {
  94. padding-top: var(--module-table-cell-padding-vertical);
  95. padding-bottom: var(--module-table-cell-padding-vertical);
  96. font-weight: normal;
  97. line-height: var(--details-line-height);
  98. }
  99. .claro-details__summary.module-list__module-summary::before {
  100. top: calc(var(--space-m) + var(--space-s));
  101. }
  102. .module-details__description {
  103. font-size: var(--space-s);
  104. line-height: 0.9375rem;
  105. }
  106. .claro-details__wrapper.module-details__wrapper {
  107. margin-top: 0;
  108. margin-bottom: 0;
  109. }
  110. .module-details__requirements {
  111. margin-bottom: var(--space-m);
  112. }
  113. .module-details__links {
  114. position: relative;
  115. /* Negative margin matches the value of action link's top padding. */
  116. margin-top: calc((var(--space-s) - ((var(--space-l) - var(--space-s)) / 2)) * -1);
  117. margin-bottom: var(--space-m);
  118. }
  119. .module-details__links .action-link + .action-link {
  120. margin-left: 0; /* LTR */
  121. }
  122. [dir="rtl"] .module-details__links .action-link + .action-link {
  123. margin-right: 0;
  124. }
  125. .claro-details .tableresponsive-toggle {
  126. padding: var(--space-m) var(--space-m) var(--space-m) 0;
  127. }
  128. .claro-details .tableresponsive-toggle::before {
  129. /* This adjustment is necessary for better alignment with the adjacent button
  130. text. */
  131. position: relative;
  132. top: -1px;
  133. display: inline-block;
  134. width: calc(var(--space-m) * 2);
  135. height: 1.25rem;
  136. content: "";
  137. cursor: pointer;
  138. vertical-align: text-top;
  139. background: url(../../images/icons/545560/plus.svg) no-repeat center;
  140. background-size: contain;
  141. }
  142. .claro-details .tableresponsive-toggle:hover {
  143. color: var(--color-absolutezero-hover);
  144. background-color: var(--color-bgblue-hover);
  145. }
  146. .claro-details .tableresponsive-toggle:hover::before {
  147. background-image: url(../../images/icons/0036b1/plus.svg);
  148. }
  149. .claro-details .tableresponsive-toggle-columns button {
  150. margin-top: var(--space-xs);
  151. text-decoration: none;
  152. color: var(--color-gray-800);
  153. font-weight: bold;
  154. }