node-preview.css

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/css/components/content/node-preview.css
  2. 11.x core/themes/claro/css/components/node-preview.css
  3. 11.x core/themes/admin/css/components/node-preview.css
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/css/components/content/node-preview.css
  2. 9 core/profiles/demo_umami/themes/umami/css/components/content/node-preview.css
  3. 9 core/themes/bartik/css/components/node-preview.css
  4. 8.9.x core/themes/bartik/css/components/node-preview.css
  5. 10 core/themes/claro/css/components/node-preview.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
.node-preview-container {
  position: sticky;
  z-index: 501;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: var(--gin-toolbar-secondary-height);
  padding: 0;
  border-block-end: 1px solid var(--gin-border-color-layer);
  background: rgb(255, 255, 255, 0.98);
  font-size: var(--font-size-xs);
  inset-block-start: 0;

  .gin--dark-mode & {
    background: rgb(27, 27, 29, 0.98);

    @supports (backdrop-filter: blur()) {
      background: rgb(22, 22, 23, 0.9);
    }
  }

  .gin--high-contrast-mode & {
    background: var(--gin-bg-app);
    backdrop-filter: none;
  }

  .gin--navigation & {
    width: calc(100% - var(--gin-toolbar-x-offset));
    margin-inline-start: var(--gin-toolbar-x-offset);
  }

  .gin-layout-container {
    box-sizing: border-box;
  }

  .node-preview-backlink,
  .node-preview-form-select label {
    color: var(--gin-color-text-light);
  }

  .node-preview-backlink {
    all: revert;
    position: relative;
    padding-inline-start: 1.75em;
    -webkit-text-decoration: none;
    text-decoration: none;
    color: var(--gin-color-text-light);
    border-radius: var(--gin-border-xxs);
    font-weight: var(--font-weight-normal);

    &:hover {
      color: var(--gin-color-primary-hover);
    }

    &:active {
      color: var(--gin-color-primary-active);
    }

    &::before {
      position: absolute;
      display: inline-block;
      width: var(--gin-icon-size-toolbar-secondary);
      height: var(--gin-icon-size-toolbar-secondary);
      content: "";
      transform: translateY(-50%);
      background-color: var(--gin-icon-color);
      inset-block-start: calc(50% - 1px);
      inset-inline-start: 0;
      /* cspell:disable-next-line */
      mask-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e  %3cg fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3e    %3cpolyline points='9 14 4 9 9 4'%3e%3c/polyline%3e    %3cpath d='M20 18V13C20 11.9391 19.5786 10.9217 18.8284 10.1716C18.0783 9.42143 17.0609 9 16 9H4'%3e%3c/path%3e  %3c/g%3e%3c/svg%3e");
      mask-size: 100% 100%;
      mask-position: center center;
    }

    &:dir(rtl)::before {
      scale: -1 1;
    }
  }

  .form-item {
    all: revert;
  }

  .form-item__label {
    margin: 0;
    color: var(--gin-color-title);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-normal);
  }

  .form-element {
    all: revert;
    box-sizing: border-box;
    color: var(--gin-color-text);
    border: 1px solid var(--gin-border-color-form-element);
    border-radius: var(--gin-border-s);
    background-color: var(--gin-bg-input);
    font-size: var(--font-size-s);
    line-height: 1.5;

    @media (prefers-reduced-motion: no-preference) {
      transition: var(--gin-transition);
    }
  }

  .js-hide {
    display: none;
  }

  *:focus {
    outline: none;
    box-shadow:
      0 0 0 1px var(--gin-color-focus-border),
      0 0 0 4px var(--gin-color-focus);
  }

  @supports (backdrop-filter: blur()) {
    opacity: 0.999;
    /* Fix Chrome issue with mask */
    background: rgb(255, 255, 255, 0.8);
    backdrop-filter: blur(0.75rem);
  }
}
.node-preview-form-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0 var(--space-m);
  padding: var(--space-s) 0;

  label {
    padding-inline-end: 0.5em;
  }

  @media (min-width: 48em) {
    margin: 0 var(--space-xl);
  }

  @media (min-width: 61em) {
    margin: 0 min(5vw, var(--space-xxl));
  }
}

File

core/themes/default_admin/css/components/node-preview.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. .node-preview-container {
  8. position: sticky;
  9. z-index: 501;
  10. display: flex;
  11. align-items: center;
  12. justify-content: space-between;
  13. box-sizing: border-box;
  14. width: 100%;
  15. height: var(--gin-toolbar-secondary-height);
  16. padding: 0;
  17. border-block-end: 1px solid var(--gin-border-color-layer);
  18. background: rgb(255, 255, 255, 0.98);
  19. font-size: var(--font-size-xs);
  20. inset-block-start: 0;
  21. .gin--dark-mode
  22. }
  23. .gin--high-contrast-mode
  24. .gin--navigation
  25. .gin-layout-container {
  26. box-sizing: border-box;
  27. }
  28. .node-preview-backlink,
  29. .node-preview-form-select label {
  30. color: var(--gin-color-text-light);
  31. }
  32. .node-preview-backlink {
  33. all: revert;
  34. position: relative;
  35. padding-inline-start: 1.75em;
  36. -webkit-text-decoration: none;
  37. text-decoration: none;
  38. color: var(--gin-color-text-light);
  39. border-radius: var(--gin-border-xxs);
  40. font-weight: var(--font-weight-normal);
  41. &:hover {
  42. color: var(--gin-color-primary-hover);
  43. }
  44. &:active {
  45. color: var(--gin-color-primary-active);
  46. }
  47. &::before {
  48. position: absolute;
  49. display: inline-block;
  50. width: var(--gin-icon-size-toolbar-secondary);
  51. height: var(--gin-icon-size-toolbar-secondary);
  52. content: "";
  53. transform: translateY(-50%);
  54. background-color: var(--gin-icon-color);
  55. inset-block-start: calc(50% - 1px);
  56. inset-inline-start: 0;
  57. /* cspell:disable-next-line */
  58. mask-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cg fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3e %3cpolyline points='9 14 4 9 9 4'%3e%3c/polyline%3e %3cpath d='M20 18V13C20 11.9391 19.5786 10.9217 18.8284 10.1716C18.0783 9.42143 17.0609 9 16 9H4'%3e%3c/path%3e %3c/g%3e%3c/svg%3e");
  59. mask-size: 100% 100%;
  60. mask-position: center center;
  61. }
  62. &:dir(rtl)::before {
  63. scale: -1 1;
  64. }
  65. }
  66. .form-item {
  67. all: revert;
  68. }
  69. .form-item__label {
  70. margin: 0;
  71. color: var(--gin-color-title);
  72. font-size: var(--font-size-s);
  73. font-weight: var(--font-weight-normal);
  74. }
  75. .form-element {
  76. all: revert;
  77. box-sizing: border-box;
  78. color: var(--gin-color-text);
  79. border: 1px solid var(--gin-border-color-form-element);
  80. border-radius: var(--gin-border-s);
  81. background-color: var(--gin-bg-input);
  82. font-size: var(--font-size-s);
  83. line-height: 1.5;
  84. @media (prefers-reduced-motion: no-preference) {
  85. transition: var(--gin-transition);
  86. }
  87. }
  88. .js-hide {
  89. display: none;
  90. }
  91. *:focus {
  92. outline: none;
  93. box-shadow:
  94. 0 0 0 1px var(--gin-color-focus-border),
  95. 0 0 0 4px var(--gin-color-focus);
  96. }
  97. @supports (backdrop-filter: blur()) {
  98. opacity: 0.999;
  99. /* Fix Chrome issue with mask */
  100. background: rgb(255, 255, 255, 0.8);
  101. backdrop-filter: blur(0.75rem);
  102. }
  103. }
  104. .node-preview-form-select {
  105. display: flex;
  106. flex-wrap: wrap;
  107. align-items: center;
  108. justify-content: space-between;
  109. width: 100%;
  110. height: 100%;
  111. margin: 0 var(--space-m);
  112. padding: var(--space-s) 0;
  113. label {
  114. padding-inline-end: 0.5em;
  115. }
  116. @media (min-width: 48em) {
  117. margin: 0 var(--space-xl);
  118. }
  119. @media (min-width: 61em) {
  120. margin: 0 min(5vw, var(--space-xxl));
  121. }
  122. }

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