content-moderation.pcss.css

Same filename in other branches
  1. 10 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/variables.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-80);
  11. background-color: var(--color--gray-95);
  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(14 * var(--grid-col-width--md) + 13 * var(--grid-gap--md));
  43. margin-block: var(--sp2) var(--sp4);
  44. margin-inline-start: calc(-2 * ((var(--grid-col-width--md) + var(--grid-gap--md))));
  45. }
  46. @media (--lg) {
  47. width: calc(12 * var(--grid-col-width--lg) + 11 * var(--grid-gap--lg));
  48. margin-inline-start: calc(-1 * (var(--grid-col-width--lg) + var(--grid-gap--lg)));
  49. }
  50. @media (--nav) {
  51. width: calc(12 * var(--grid-col-width--nav) + 11 * var(--grid-gap--nav));
  52. margin-inline-start: calc(-1 * (var(--grid-col-width--nav) + var(--grid-gap--nav)));
  53. }
  54. @media (--grid-max) {
  55. width: calc(10 * var(--grid-col-width--max) + 11 * var(--grid-gap--max));
  56. margin-inline-start: 0;
  57. }
  58. }
  59. }

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