content-moderation.pcss.css
Same filename in other branches
Styles for content moderation toolbar.
File
-
core/
themes/ olivero/ css/ components/ content-moderation.pcss.css
View source
- /**
- * @file
- * Styles for content moderation toolbar.
- */
-
- @import "../base/media-queries.pcss.css";
-
- .entity-moderation-form {
- flex-direction: column;
- padding-inline-start: var(--sp);
- padding-inline-end: var(--sp);
- border: 1px solid var(--color--gray-95);
- background-color: var(--color--gray-100);
-
- & select,
- & input:not([type="submit"]) {
- background-color: var(--color--white);
- }
-
- @media (--md) {
- flex-direction: row;
- }
- }
-
- .entity-moderation-form__item {
- flex-basis: 0;
- margin-inline-end: var(--sp);
-
- &:last-child {
- align-self: flex-start;
- margin-inline-end: 0;
-
- @media (--md) {
- align-self: flex-end;
- }
- }
- }
-
- .layout--content-narrow,
- .layout--pass--content-narrow > *,
- .layout--content-medium,
- .layout--pass--content-medium > * {
- & .entity-moderation-form {
- width: 100%;
- margin-inline-start: 0;
-
- @supports (width: max-content) {
- width: max-content;
- }
-
- @media (--grid-md) {
- width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap));
- margin-block: var(--sp2) var(--sp4);
- margin-inline-start: calc(-2 * (var(--grid-col-width) + var(--grid-gap)));
- }
-
- @media (--lg) {
- width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
- margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
- }
-
- @media (--grid-max) {
- width: calc(10 * var(--grid-col-width) + 11 * var(--grid-gap));
- margin-inline-start: 0;
- }
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.