system-admin--modules.pcss.css

Same filename in other branches
  1. 8.9.x core/themes/claro/css/components/system-admin--modules.pcss.css
  2. 10 core/themes/claro/css/components/system-admin--modules.pcss.css
  3. 11.x core/themes/claro/css/components/system-admin--modules.pcss.css

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

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