src/ApplicationBundle/Resources/views/framework/_empty_state_css.html.twig line 1

Open in your IDE?
  1. {#
  2.   framework/_empty_state_css.html.twig
  3.   ==============================================================================
  4.   The shared "nothing here" state, for lists that are NOT inside a cp scope.
  5.   WHY THIS EXISTS SEPARATELY FROM .cp-empty. Phase 0 added cp-empty/cp-loading/
  6.   cp-error, and they work — but they live in _cp_tokens under the `.cp-scope`
  7.   namespace. Measured across the 415 row-loops that lack an empty branch, only 37
  8.   are on cp-scoped pages; 378 are not (the Tax module, for one, never loads
  9.   _cp_tokens at all). Using .cp-empty there would emit unstyled text.
  10.   So this is deliberately namespace-free and token-optional: every value has a
  11.   literal fallback, so it looks right whether or not --cp-* is in scope. It is
  12.   loaded from codecovers_header, which 381 templates pull in.
  13.   Do not reach for this inside a cp page — use cp-empty there; the two are the
  14.   same idea rendered by whichever design system the page actually has.
  15.   ==============================================================================
  16. #}
  17. <style type="text/css">
  18.     .hb-empty {
  19.         display: block;
  20.         padding: 26px 16px;
  21.         text-align: center;
  22.         color: var(--cp-text-faint, #76899a);
  23.         font-size: var(--cp-fs-sm, 12.5px);
  24.         line-height: 1.5;
  25.     }
  26.     .hb-empty .hb-empty-t {
  27.         display: block;
  28.         font-weight: 600;
  29.         color: var(--cp-text-muted, #3f5560);
  30.         font-size: var(--cp-fs-base, 13px);
  31.         margin-bottom: 2px;
  32.     }
  33.     /* the way out of the dead end — an empty list with no next step is most of
  34.        why a screen reads as broken rather than merely empty */
  35.     .hb-empty .hb-empty-act {
  36.         display: inline-block;
  37.         margin-top: 10px;
  38.     }
  39.     td > .hb-empty, th > .hb-empty { width: 100%; }
  40. </style>