maintenance-page.pcss.css

Same filename in this branch
  1. main core/themes/olivero/css/components/maintenance-page.pcss.css
  2. main core/themes/claro/css/theme/maintenance-page.pcss.css
  3. main core/themes/admin/css/theme/maintenance-page.pcss.css
Same filename and directory in other branches
  1. 10 core/themes/olivero/css/components/maintenance-page.pcss.css
  2. 10 core/themes/claro/css/theme/maintenance-page.pcss.css
  3. 11.x core/themes/olivero/css/components/maintenance-page.pcss.css
  4. 11.x core/themes/claro/css/theme/maintenance-page.pcss.css
  5. 9 core/themes/olivero/css/components/maintenance-page.pcss.css
  6. 9 core/themes/claro/css/theme/maintenance-page.pcss.css
  7. 8.9.x core/themes/claro/css/theme/maintenance-page.pcss.css
  8. 11.x core/themes/admin/css/theme/maintenance-page.pcss.css
  9. 11.x core/themes/default_admin/css/theme/maintenance-page.pcss.css

Maintenance theming.

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

File

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

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