ShtukbaseStandard
файл пакета→ .shtukbase/packages/keer-ui/library/styles/frame.css

library/styles/frame.css

71 строка, 2.4 КБ.

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. /*
  2. * The page frame and backing: lines, crosshairs, dots and grain.
  3. *
  4. * Only the mechanism is here (position, layers); the color, step, size and strength come from
  5. * tokens.css, so a theme changes the look of the frame without edits to this file. In a theme without
  6. * crosshairs their size is zero, without grain the opacity is zero.
  7. */
  8. /* Where to use: the page backing: AppShell. */
  9. @utility canvas {
  10. background-color: var(--ds-bg);
  11. background-image: var(--ds-canvas-pattern);
  12. background-size: var(--ds-canvas-step) var(--ds-canvas-step);
  13. background-position: var(--ds-canvas-offset) var(--ds-canvas-offset);
  14. }
  15. /* Where to use: the side panel: a sheen over the gray background (nothing in a theme without a sheen). */
  16. @utility sidebar-sheen {
  17. background-image: var(--ds-sidebar-sheen);
  18. }
  19. /* Where to use: grain over the surface background, under its content: the backing, the side panel, the header. */
  20. @utility grain {
  21. isolation: isolate;
  22. &::before {
  23. content: "";
  24. position: absolute;
  25. inset: 0;
  26. z-index: -1;
  27. border-radius: inherit;
  28. pointer-events: none;
  29. background-image: var(--ds-grain-image);
  30. background-size: var(--ds-grain-size) var(--ds-grain-size);
  31. opacity: var(--ds-grain-opacity);
  32. }
  33. }
  34. /* Where to use: a crosshair in the bottom left corner, where the line under the header or heading meets the edge of the side panel. */
  35. @utility frame-cross {
  36. &::after {
  37. content: "";
  38. position: absolute;
  39. left: calc(var(--ds-frame-cross-size) / -2);
  40. bottom: calc(var(--ds-frame-cross-size) / -2);
  41. z-index: 1;
  42. width: var(--ds-frame-cross-size);
  43. height: var(--ds-frame-cross-size);
  44. pointer-events: none;
  45. background: var(--ds-frame-cross);
  46. }
  47. }
  48. /* Where to use: a semi-transparent page header blurs what is under it: AppShell. */
  49. @utility topbar-blur {
  50. backdrop-filter: var(--ds-topbar-blur);
  51. }
  52. /* Where to use: the same crosshair in the bottom right corner, on the side of the side panel where its edge meets the line under the header: SidebarHeader. */
  53. @utility frame-cross-end {
  54. &::after {
  55. content: "";
  56. position: absolute;
  57. right: calc(var(--ds-frame-cross-size) / -2 - 0.5px);
  58. bottom: calc(var(--ds-frame-cross-size) / -2 - 0.5px);
  59. z-index: 1;
  60. width: var(--ds-frame-cross-size);
  61. height: var(--ds-frame-cross-size);
  62. pointer-events: none;
  63. background: var(--ds-frame-cross);
  64. }
  65. }