gin-body.pcss.css

Same filename and directory in other branches
  1. 11.x core/themes/default_admin/migration/css/base/gin-body.pcss.css
@import "media-queries.pcss.css";

html {
  font-family: var(--gin-font);
  scroll-padding-block-start: var(--gin-scroll-offset) !important;
}

body {
  overflow-x: hidden;
  color: var(--gin-color-text);
  background: var(--gin-bg-app);

  @media (--admin-large) {
    overflow-x: auto;
  }
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  font-weight: var(--gin-font-weight-normal);
}

h2 {
  font-size: var(--gin-font-size-h2);
}

h3 {
  font-size: var(--gin-font-size-h3);
}

::selection {
  background: var(--gin-color-primary-light-hover);
}

a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Enforcing colors on visually hidden text does not change anything for the
   user, but it prevents accessibility scanners like Wave from reporting contrast
   errors on visually hidden elements. While this is certainly an issue with the
   scanners and not Gin, this ensures that scans provide an accurate account of
   Gin's contrast support. */
.visually-hidden {
  color: #000;

  .gin--dark-mode & {
    color: #fff;
  }

  &.skip-link {
    color: var(--gin-color-button-text);
  }
}

/* Set a dark color scheme to style native browser elements. */
.gin--dark-mode {
  color-scheme: dark;
}

File

core/themes/default_admin/migration/css/base/gin-body.pcss.css

View source
  1. @import "media-queries.pcss.css";
  2. html {
  3. font-family: var(--gin-font);
  4. scroll-padding-block-start: var(--gin-scroll-offset) !important;
  5. }
  6. body {
  7. overflow-x: hidden;
  8. color: var(--gin-color-text);
  9. background: var(--gin-bg-app);
  10. @media (--admin-large) {
  11. overflow-x: auto;
  12. }
  13. }
  14. h1,
  15. h2,
  16. h3 {
  17. letter-spacing: -0.025em;
  18. font-weight: var(--gin-font-weight-normal);
  19. }
  20. h2 {
  21. font-size: var(--gin-font-size-h2);
  22. }
  23. h3 {
  24. font-size: var(--gin-font-size-h3);
  25. }
  26. ::selection {
  27. background: var(--gin-color-primary-light-hover);
  28. }
  29. a {
  30. overflow-wrap: break-word;
  31. word-wrap: break-word;
  32. }
  33. /* Enforcing colors on visually hidden text does not change anything for the
  34. user, but it prevents accessibility scanners like Wave from reporting contrast
  35. errors on visually hidden elements. While this is certainly an issue with the
  36. scanners and not Gin, this ensures that scans provide an accurate account of
  37. Gin's contrast support. */
  38. .visually-hidden {
  39. color: #000;
  40. .gin--dark-mode
  41. &.skip-link {
  42. color: var(--gin-color-button-text);
  43. }
  44. }
  45. /* Set a dark color scheme to style native browser elements. */
  46. .gin--dark-mode {
  47. color-scheme: dark;
  48. }

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