system-status-counter.pcss.css

Same filename in other branches
  1. 8.9.x core/themes/claro/css/components/system-status-counter.pcss.css
  2. 10 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. @import "../base/variables.pcss.css";
  6. .system-status-counter {
  7. display: inline-block;
  8. overflow-y: hidden;
  9. box-sizing: border-box;
  10. width: 100%;
  11. white-space: nowrap;
  12. }
  13. .system-status-counter__status-icon {
  14. display: inline-block;
  15. width: 65px;
  16. height: 60px;
  17. vertical-align: middle;
  18. }
  19. [dir="rtl"] .system-status-counter__status-icon {
  20. border-right: 0;
  21. border-left: 1px solid #e6e4df;
  22. }
  23. .system-status-counter__status-icon:before {
  24. display: block;
  25. width: 100%;
  26. height: 100%;
  27. content: "";
  28. background-repeat: no-repeat;
  29. background-position: right center;
  30. background-size: 40px;
  31. }
  32. .system-status-counter__status-icon--error:before {
  33. background-image: url(../../../../misc/icons/dc2323/error.svg);
  34. }
  35. .system-status-counter__status-icon--warning:before {
  36. background-image: url(../../images/core/e29700/warning.svg);
  37. }
  38. .system-status-counter__status-icon--checked:before {
  39. background-image: url(../../images/core/73b355/check.svg);
  40. }
  41. @media (forced-colors: active) {
  42. .system-status-counter__status-icon:before {
  43. background-color: canvastext;
  44. background-image: none;
  45. mask-repeat: no-repeat;
  46. mask-position: right center;
  47. mask-size: 40px;
  48. }
  49. .system-status-counter__status-icon--error:before {
  50. mask-image: url(../../../../misc/icons/dc2323/error.svg);
  51. }
  52. .system-status-counter__status-icon--warning:before {
  53. mask-image: url(../../images/core/e29700/warning.svg);
  54. }
  55. .system-status-counter__status-icon--checked:before {
  56. mask-image: url(../../images/core/73b355/check.svg);
  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-bottom: 8px;
  70. }
  71. .system-status-counter__details {
  72. display: block;
  73. text-transform: none;
  74. font-size: 14px;
  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-top: var(--space-s);
  81. padding-bottom: var(--space-s);
  82. }
  83. .system-status-counter__status-icon,
  84. .system-status-counter {
  85. height: 65px;
  86. }
  87. .system-status-counter__status-icon {
  88. width: 65px;
  89. }
  90. }

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