gin-body.pcss.css

Same filename and directory in other branches
  1. main 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);
}

::-moz-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. ::-moz-selection {
  30. background: var(--gin-color-primary-light-hover);
  31. }
  32. a {
  33. overflow-wrap: break-word;
  34. word-wrap: break-word;
  35. }
  36. /* Enforcing colors on visually hidden text does not change anything for the
  37. user, but it prevents accessibility scanners like Wave from reporting contrast
  38. errors on visually hidden elements. While this is certainly an issue with the
  39. scanners and not Gin, this ensures that scans provide an accurate account of
  40. Gin's contrast support. */
  41. .visually-hidden {
  42. color: #000;
  43. .gin--dark-mode
  44. &.skip-link {
  45. color: var(--gin-color-button-text);
  46. }
  47. }
  48. /* Set a dark color scheme to style native browser elements. */
  49. .gin--dark-mode {
  50. color-scheme: dark;
  51. }

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