content-moderation.pcss.css

Same filename in other branches
  1. 9 core/themes/olivero/css/components/content-moderation.pcss.css
  2. 11.x core/themes/olivero/css/components/content-moderation.pcss.css

Styles for content moderation toolbar.

File

core/themes/olivero/css/components/content-moderation.pcss.css

View source
  1. /**
  2. * @file
  3. * Styles for content moderation toolbar.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .entity-moderation-form {
  7. flex-direction: column;
  8. padding-inline-start: var(--sp);
  9. padding-inline-end: var(--sp);
  10. border: 1px solid var(--color--gray-95);
  11. background-color: var(--color--gray-100);
  12. & select,
  13. & input:not([type="submit"]) {
  14. background-color: var(--color--white);
  15. }
  16. @media (--md) {
  17. flex-direction: row;
  18. }
  19. }
  20. .entity-moderation-form__item {
  21. flex-basis: 0;
  22. margin-inline-end: var(--sp);
  23. &:last-child {
  24. align-self: flex-start;
  25. margin-inline-end: 0;
  26. @media (--md) {
  27. align-self: flex-end;
  28. }
  29. }
  30. }
  31. .layout--content-narrow,
  32. .layout--pass--content-narrow > *,
  33. .layout--content-medium,
  34. .layout--pass--content-medium > * {
  35. & .entity-moderation-form {
  36. width: 100%;
  37. margin-inline-start: 0;
  38. @supports (width: max-content) {
  39. width: max-content;
  40. }
  41. @media (--grid-md) {
  42. width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap));
  43. margin-block: var(--sp2) var(--sp4);
  44. margin-inline-start: calc(-2 * (var(--grid-col-width) + var(--grid-gap)));
  45. }
  46. @media (--lg) {
  47. width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
  48. margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
  49. }
  50. @media (--grid-max) {
  51. width: calc(10 * var(--grid-col-width) + 11 * var(--grid-gap));
  52. margin-inline-start: 0;
  53. }
  54. }
  55. }

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