base.css

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/css/base.css
  2. 11.x core/themes/olivero/css/base/base.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/base.css
  2. 9 core/themes/olivero/css/base/base.css
  3. 8.9.x core/profiles/demo_umami/themes/umami/css/base.css
  4. 8.9.x core/assets/vendor/jquery.ui/themes/base/base.css
  5. 10 core/profiles/demo_umami/themes/umami/css/base.css
  6. 10 core/misc/dialog/off-canvas/css/base.css
  7. 10 core/themes/olivero/css/base/base.css

Set base styles for the off-canvas dialog.

@internal

File

core/misc/dialog/off-canvas/css/base.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Set base styles for the off-canvas dialog.
  10. *
  11. * @internal
  12. */
  13. #drupal-off-canvas-wrapper {
  14. --off-canvas-background-color-light: #666;
  15. --off-canvas-background-color-medium: #444;
  16. --off-canvas-background-color-dark: #333;
  17. --off-canvas-background-color: var(--off-canvas-background-color-medium);
  18. --off-canvas-padding: 1.25rem;
  19. --off-canvas-text-color: #e5e5e5;
  20. --off-canvas-link-color: #85bef4;
  21. --off-canvas-border-color: #666;
  22. --off-canvas-font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  23. --off-canvas-vertical-spacing-unit: 0.5rem;
  24. --off-canvas-focus-outline-width: 2px;
  25. --off-canvas-focus-outline-color: #fff;
  26. padding: 0 var(--off-canvas-padding) var(--off-canvas-padding);
  27. color: var(--off-canvas-text-color);
  28. background-color: var(--off-canvas-background-color);
  29. font-family: var(--off-canvas-font-family);
  30. }
  31. #drupal-off-canvas-wrapper *:focus {
  32. outline: solid var(--off-canvas-focus-outline-width) var(--off-canvas-focus-outline-color);
  33. outline-offset: 2px;
  34. }
  35. #drupal-off-canvas-wrapper a,
  36. #drupal-off-canvas-wrapper .link {
  37. -webkit-text-decoration: none;
  38. text-decoration: none;
  39. color: var(--off-canvas-link-color);
  40. }
  41. #drupal-off-canvas-wrapper hr {
  42. height: 1px;
  43. background: var(--off-canvas-border-color);
  44. }
  45. #drupal-off-canvas-wrapper h1,
  46. #drupal-off-canvas-wrapper .heading-a {
  47. font-size: 1.4375rem;
  48. line-height: 1.2;
  49. }
  50. #drupal-off-canvas-wrapper h2,
  51. #drupal-off-canvas-wrapper .heading-b {
  52. margin: var(--off-canvas-vertical-spacing-unit) 0;
  53. font-size: 1.1875rem;
  54. }
  55. #drupal-off-canvas-wrapper h3,
  56. #drupal-off-canvas-wrapper .heading-c {
  57. margin: var(--off-canvas-vertical-spacing-unit) 0;
  58. font-size: 1.0625rem;
  59. }
  60. #drupal-off-canvas-wrapper h4,
  61. #drupal-off-canvas-wrapper .heading-d {
  62. margin: var(--off-canvas-vertical-spacing-unit) 0;
  63. font-size: 1rem;
  64. }
  65. #drupal-off-canvas-wrapper h5,
  66. #drupal-off-canvas-wrapper .heading-e,
  67. #drupal-off-canvas-wrapper h6,
  68. #drupal-off-canvas-wrapper .heading-f {
  69. margin: var(--off-canvas-vertical-spacing-unit) 0;
  70. font-size: 0.9375rem;
  71. }
  72. #drupal-off-canvas-wrapper p {
  73. margin: var(--off-canvas-vertical-spacing-unit) 0;
  74. }
  75. #drupal-off-canvas-wrapper img {
  76. max-width: 100%;
  77. height: auto;
  78. }
  79. #drupal-off-canvas-wrapper .links {
  80. margin: 0;
  81. padding: 0;
  82. list-style: none;
  83. }
  84. #drupal-off-canvas-wrapper .links li {
  85. margin: calc(var(--off-canvas-vertical-spacing-unit) / 2) 0;
  86. }

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