off-canvas.pcss.css

Same filename and directory in other branches
  1. 11.x core/modules/layout_builder/css/off-canvas.pcss.css
  2. 10 core/modules/layout_builder/css/off-canvas.pcss.css

Settings tray specific styles.

File

core/themes/olivero/css/components/off-canvas.pcss.css

View source
  1. /**
  2. * @file
  3. * Settings tray specific styles.
  4. */
  5. @import "../base/variables.pcss.css";
  6. #drupal-off-canvas {
  7. & .form-type-boolean {
  8. margin-inline-start: 0;
  9. line-height: var(--line-height-s);
  10. & input[type="checkbox"],
  11. & input[type="radio"] {
  12. float: none;
  13. width: var(--sp0-75);
  14. height: var(--sp0-75);
  15. transform: none;
  16. vertical-align: middle;
  17. }
  18. & .form-item__description {
  19. margin-inline-start: 0;
  20. }
  21. }
  22. /* Necessary for Safari. */
  23. & .olivero-details {
  24. border-top: solid 1px rgba(255, 255, 255, 0.25);
  25. border-bottom: solid 1px rgba(255, 255, 255, 0.25);
  26. box-shadow: none;
  27. }
  28. & .olivero-details__wrapper {
  29. padding: 20px;
  30. }
  31. /* Necessary for Safari. */
  32. & .olivero-details__summary {
  33. display: block;
  34. list-style: initial;
  35. &:focus {
  36. outline: solid 1px rgba(255, 255, 255, 0.25);
  37. }
  38. &:before {
  39. content: none;
  40. }
  41. &::-webkit-details-marker {
  42. display: inline-block;
  43. }
  44. /* Necessary for IE11. */
  45. & .details-title:before {
  46. content: none;
  47. }
  48. /* Necessary for Firefox. */
  49. @supports (list-style-type: disclosure-closed) {
  50. display: list-item;
  51. list-style-position: inside;
  52. list-style-type: disclosure-closed;
  53. }
  54. }
  55. /* Necessary for Firefox. */
  56. & .olivero-details[open] .olivero-details__summary {
  57. @supports (list-style-type: disclosure-open) {
  58. list-style-type: disclosure-open;
  59. }
  60. }
  61. /* Necessary for Safari. */
  62. & div {
  63. display: block;
  64. color: #ddd;
  65. font-size: 14px;
  66. }
  67. }

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