Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

maintenance-page.pcss.css

Same filename in this branch
  1. 11.1.x core/themes/olivero/css/components/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. .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) {
  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(--color-gray);
  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(--color-absolutezero);
  110. border: 1px solid transparent; /* Required for forced-colors mode. */
  111. background: var(--color-bgblue-active);
  112. font-weight: 500;
  113. }
  114. .task-list .done {
  115. color: var(--color-gray-700);
  116. }
  117. }
  118. /**
  119. * Layout
  120. */
  121. .layout-container {
  122. width: auto;
  123. margin-right: 1.25em;
  124. margin-left: 1.25em;
  125. padding: var(--space-xl);
  126. border: 1px solid transparent; /* Required for forced-colors mode. */
  127. border-radius: 8px;
  128. background: #fff;
  129. box-shadow: var(--shadow-z3);
  130. }
  131. .layout-container::after {
  132. /* No reason for a clearfix in the markup. */
  133. display: table;
  134. clear: both;
  135. content: "";
  136. }
  137. @media all and (max-width: 48em) {
  138. /* 768px */
  139. .layout-container {
  140. margin: 1.25em;
  141. padding: var(--space-m) var(--space-l);
  142. }
  143. .layout-sidebar-first {
  144. display: none;
  145. }
  146. }
  147. @media all and (min-width: 48em) {
  148. /* 768px */
  149. html {
  150. display: table;
  151. }
  152. .install-page,
  153. .maintenance-page {
  154. display: table-cell;
  155. padding: 1em 0;
  156. vertical-align: middle;
  157. }
  158. html,
  159. .install-page,
  160. .maintenance-page {
  161. width: 100%;
  162. height: 100%;
  163. margin: 0;
  164. }
  165. /**
  166. * Needed to override rules from system-admin--layout.pcss.
  167. */
  168. .layout-container.layout-container.layout-container {
  169. width: 75%;
  170. max-width: 940px;
  171. margin: 0 auto;
  172. }
  173. ul {
  174. margin: 0.25em 0;
  175. padding: 15px;
  176. }
  177. [dir="rtl"] ul {
  178. margin-right: 0; /* Overrides default [dir="rtl"] ul margin. */
  179. }
  180. /* Positioning sidebar & content. */
  181. .layout-sidebar-first {
  182. float: left; /* LTR */
  183. width: 35%;
  184. }
  185. [dir="rtl"] .layout-sidebar-first {
  186. float: right;
  187. }
  188. .main-content {
  189. float: left; /* LTR */
  190. clear: none;
  191. box-sizing: border-box;
  192. width: 65%;
  193. padding-left: 3.85em; /* LTR */
  194. }
  195. [dir="rtl"] .main-content {
  196. float: right;
  197. padding-right: 3.85em;
  198. padding-left: 0;
  199. }
  200. .main-content--attached {
  201. padding-left: 0;
  202. }
  203. }
  204. /**
  205. * Status report customization for install and update page.
  206. */
  207. .system-status-report__status-title {
  208. float: none;
  209. width: 100%;
  210. }
  211. .system-status-report__entry__value {
  212. float: none;
  213. width: 100%;
  214. padding-top: 0;
  215. padding-left: 3em; /* LTR */
  216. }
  217. [dir="rtl"] .system-status-report__entry__value {
  218. padding-right: 3em;
  219. padding-left: 1em;
  220. }
  221. /**
  222. * Updates list customization for update page.
  223. */
  224. .update-results {
  225. overflow: auto; /* Required to prevent text clipping. */
  226. margin-top: 0;
  227. padding: var(--space-s);
  228. border: 1px solid var(--color-gray-100);
  229. border-radius: var(--base-border-radius);
  230. background: var(--color-gray-050);
  231. }
  232. .update-results > h3:first-child {
  233. margin-top: 0;
  234. }
  235. .update-results .failure strong {
  236. color: var(--color-maximumred);
  237. }
  238. .item-list > h3 {
  239. font-size: var(--font-size-h5);
  240. }
  241. .item-list > ul {
  242. margin-left: 0;
  243. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal