You are here

system-status-counter.pcss.css in Drupal 10

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