You are here

maintenance-page.pcss.css in Drupal 10

Maintenance theming.

These styles affect the installation UI, maintenance page, and the database update UI.

File

core/themes/claro/css/theme/maintenance-page.pcss.css
View source
  1. /**
  2. * @file
  3. * Maintenance theming.
  4. *
  5. * These styles affect the installation UI, maintenance page, and the database update UI.
  6. */
  7. .maintenance-page {
  8. min-height: 100%;
  9. background-color: var(--color-gray-100);
  10. }
  11. h1,
  12. h2 {
  13. font-size: var(--font-size-h3);
  14. }
  15. h3 {
  16. font-size: var(--font-size-h4);
  17. }
  18. .site-name {
  19. margin-top: var(--space-s);
  20. word-wrap: break-word;
  21. color: var(--color-gray);
  22. font-size: var(--font-size-xl);
  23. }
  24. .site-name--subtle {
  25. margin-top: var(--space-s);
  26. color: var(--color-gray-800);
  27. font-size: var(--font-size-h4);
  28. }
  29. .title {
  30. margin-top: 0;
  31. font-size: var(--font-size-h3);
  32. }
  33. .title--broad {
  34. font-size: var(--font-size-h1);
  35. }
  36. .site-name,
  37. .title {
  38. margin-bottom: var(--space-l);
  39. }
  40. .content {
  41. margin-bottom: var(--space-m);
  42. color: var(--color-gray);
  43. }
  44. .content--subtle {
  45. color: var(--color-gray-800);
  46. }
  47. .site-name,
  48. .title,
  49. .content {
  50. max-width: 34rem;
  51. }
  52. /**
  53. * Task list & step indicator.
  54. * Shows on both the install screen and the database update page.
  55. */
  56. @media all and (max-width: 48em) { /* 768px */
  57. header[role="banner"] {
  58. position: relative;
  59. }
  60. .step-indicator {
  61. position: absolute;
  62. top: 0.2em;
  63. right: 0.5em; /* LTR */
  64. display: block;
  65. font-size: 1.385em;
  66. }
  67. [dir="rtl"] .step-indicator {
  68. right: auto;
  69. left: 0.5em;
  70. }
  71. }
  72. @media all and (min-width: 48em) { /* 768px */
  73. .step-indicator {
  74. display: none;
  75. }
  76. .task-list {
  77. margin-left: -3rem; /* LTR */
  78. padding: 0;
  79. list-style-type: none;
  80. counter-reset: steps;
  81. font-weight: bold;
  82. }
  83. [dir="rtl"] .task-list {
  84. margin-right: -3rem;
  85. margin-left: 0;
  86. }
  87. .task-list li {
  88. padding: 1rem 1rem 1rem 3rem; /* LTR */
  89. counter-increment: steps;
  90. color: var(--color-gray);
  91. border-radius: 0 2rem 2rem 0 /* LTR */;
  92. font-weight: 500;
  93. }
  94. [dir="rtl"] .task-list li {
  95. padding: 1rem 3rem 1rem 1rem;
  96. border-radius: 2rem 0 0 2rem;
  97. }
  98. .task-list li:before {
  99. margin-right: 0.375rem;
  100. content: counter(steps);
  101. }
  102. [dir="rtl"] .task-list li:before {
  103. margin-right: 0;
  104. margin-left: 0.375rem;
  105. }
  106. .task-list .is-active {
  107. color: var(--color-absolutezero);
  108. border: 1px solid transparent; /* Required for forced-colors mode. */
  109. background: var(--color-bgblue-active);
  110. font-weight: 500;
  111. }
  112. .task-list .done {
  113. color: var(--color-gray-700);
  114. }
  115. }
  116. /**
  117. * Layout
  118. */
  119. .layout-container {
  120. width: auto;
  121. margin-right: 1.25em;
  122. margin-left: 1.25em;
  123. padding: var(--space-xl);
  124. border: 1px solid transparent; /* Required for forced-colors mode. */
  125. border-radius: 8px;
  126. background: #fff;
  127. box-shadow: var(--shadow-z3);
  128. }
  129. .layout-container:after { /* No reason for a clearfix in the markup. */
  130. display: table;
  131. clear: both;
  132. content: "";
  133. }
  134. @media all and (max-width: 48em) { /* 768px */
  135. .layout-container {
  136. margin: 1.25em;
  137. padding: var(--space-m) var(--space-l);
  138. }
  139. .layout-sidebar-first {
  140. display: none;
  141. }
  142. }
  143. @media all and (min-width: 48em) { /* 768px */
  144. html {
  145. display: table;
  146. }
  147. .install-page,
  148. .maintenance-page {
  149. display: table-cell;
  150. padding: 1em 0;
  151. vertical-align: middle;
  152. }
  153. html,
  154. .install-page,
  155. .maintenance-page {
  156. width: 100%;
  157. height: 100%;
  158. margin: 0;
  159. }
  160. /**
  161. * Needed to override rules from system-admin--layout.pcss.
  162. */
  163. .layout-container.layout-container.layout-container {
  164. width: 75%;
  165. max-width: 940px;
  166. margin: 0 auto;
  167. }
  168. ul {
  169. margin: 0.25em 0;
  170. padding: 15px;
  171. }
  172. [dir="rtl"] ul {
  173. margin-right: 0; /* Overrides default [dir="rtl"] ul margin. */
  174. }
  175. /* Positioning sidebar & content. */
  176. .layout-sidebar-first {
  177. float: left; /* LTR */
  178. width: 35%;
  179. }
  180. [dir="rtl"] .layout-sidebar-first {
  181. float: right;
  182. }
  183. .main-content {
  184. float: left; /* LTR */
  185. clear: none;
  186. box-sizing: border-box;
  187. width: 65%;
  188. padding-left: 3.85em; /* LTR */
  189. }
  190. [dir="rtl"] .main-content {
  191. float: right;
  192. padding-right: 3.85em;
  193. padding-left: 0;
  194. }
  195. .main-content--attached {
  196. padding-left: 0;
  197. }
  198. }
  199. /**
  200. * Status report customization for install and update page.
  201. */
  202. .system-status-report__status-title {
  203. float: none;
  204. width: 100%;
  205. }
  206. .system-status-report__entry__value {
  207. float: none;
  208. width: 100%;
  209. padding-top: 0;
  210. padding-left: 3em; /* LTR */
  211. }
  212. [dir="rtl"] .system-status-report__entry__value {
  213. padding-right: 3em;
  214. padding-left: 1em;
  215. }
  216. /**
  217. * Updates list customization for update page.
  218. */
  219. .update-results {
  220. overflow: auto; /* Required to prevent text clipping. */
  221. margin-top: 0;
  222. padding: var(--space-s);
  223. border: 1px solid var(--color-gray-100);
  224. border-radius: var(--base-border-radius);
  225. background: var(--color-gray-050);
  226. }
  227. .update-results > h3:first-child {
  228. margin-top: 0;
  229. }
  230. .update-results .failure strong {
  231. color: var(--color-maximumred);
  232. }
  233. .item-list > h3 {
  234. font-size: var(--font-size-h5);
  235. }
  236. .item-list > ul {
  237. margin-left: 0;
  238. }