gin-body.css
Same filename and directory in other branches
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
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 (min-width: 64em) {
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.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
- 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 (min-width: 64em) {
- 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
-
- &.skip-link {
- color: var(--gin-color-button-text);
- }
- }
- /* Set a dark color scheme to style native browser elements. */
- .gin--dark-mode {
- color-scheme: dark;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.