off-canvas.pcss.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. }