system-status-counter.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/system-status-counter.pcss.css
  2. 8.9.x core/themes/claro/css/components/system-status-counter.pcss.css
  3. 11.x core/themes/claro/css/components/system-status-counter.pcss.css

Styles for the system status counter component.

File

core/themes/claro/css/components/system-status-counter.pcss.css

View source
  1. /**
  2. * @file
  3. * Styles for the system status counter component.
  4. */
  5. .system-status-counter {
  6. --system-status-counter-status-icon: #e6e4df;
  7. --system-status-counter-status-icon-error: url(../../../../misc/icons/dc2323/error.svg);
  8. --system-status-counter-status-icon-warning: url(../../images/core/e29700/warning.svg);
  9. --system-status-counter-status-icon-checked: url(../../images/core/73b355/check.svg);
  10. display: inline-block;
  11. overflow-y: hidden;
  12. box-sizing: border-box;
  13. inline-size: 100%;
  14. white-space: nowrap;
  15. }
  16. .system-status-counter__status-icon {
  17. display: inline-block;
  18. block-size: 65px;
  19. inline-size: 60px;
  20. vertical-align: middle;
  21. &::before {
  22. display: block;
  23. block-size: 100%;
  24. inline-size: 100%;
  25. content: "";
  26. background-repeat: no-repeat;
  27. background-position: right center;
  28. background-size: 40px;
  29. @media (forced-colors: active) {
  30. background-color: canvastext;
  31. background-image: none;
  32. mask-repeat: no-repeat;
  33. mask-position: right center;
  34. mask-size: 40px;
  35. }
  36. @nest [dir="rtl"]
  37. }
  38. }
  39. .system-status-counter__status-icon--error::before {
  40. background-image: var(--system-status-counter-status-icon-error);
  41. }
  42. .system-status-counter__status-icon--warning::before {
  43. background-image: var(--system-status-counter-status-icon-warning);
  44. }
  45. .system-status-counter__status-icon--checked::before {
  46. background-image: var(--system-status-counter-status-icon-checked);
  47. }
  48. @media (forced-colors: active) {
  49. .system-status-counter__status-icon--error::before {
  50. mask-image: var(--system-status-counter-status-icon-error);
  51. }
  52. .system-status-counter__status-icon--warning::before {
  53. mask-image: var(--system-status-counter-status-icon-warning);
  54. }
  55. .system-status-counter__status-icon--checked::before {
  56. mask-image: var(--system-status-counter-status-icon-checked);
  57. }
  58. }
  59. .system-status-counter__status-title {
  60. display: inline-block;
  61. padding: 0 18px;
  62. vertical-align: middle;
  63. font-size: 1.125em;
  64. font-weight: bold;
  65. line-height: 1em;
  66. }
  67. .system-status-counter__title-count {
  68. display: block;
  69. margin-block-end: 8px;
  70. }
  71. .system-status-counter__details {
  72. display: block;
  73. text-transform: none;
  74. font-size: var(--font-size-s);
  75. font-weight: normal;
  76. line-height: 1.5;
  77. }
  78. @media screen and (min-width: 61rem) {
  79. .system-status-report-counters__item {
  80. padding-block: var(--space-s);
  81. }
  82. .system-status-counter__status-icon,
  83. .system-status-counter {
  84. block-size: 65px;
  85. }
  86. .system-status-counter__status-icon {
  87. inline-size: 65px;
  88. }
  89. }

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