maintenance-page.pcss.css

Same filename in this branch
  1. 9 core/themes/olivero/css/components/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. 8.9.x core/themes/claro/css/theme/maintenance-page.pcss.css

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

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