node_preview.css

Same filename in this branch
  1. main core/themes/admin/migration/css/components/node_preview.css
Same filename and directory in other branches
  1. 11.x core/themes/admin/migration/css/components/node_preview.css
  2. 11.x core/themes/default_admin/migration/css/components/node_preview.css

Node preview bar styles.

File

core/themes/default_admin/migration/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. /**
  8. * @file
  9. * Node preview bar styles.
  10. */
  11. .node-preview-container.node-preview-container {
  12. position: sticky;
  13. z-index: 501; /* on top of the Drupal world */
  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. }
  63. .form-item {
  64. all: revert;
  65. }
  66. .form-item__label {
  67. margin: 0;
  68. color: var(--gin-color-title);
  69. font-size: var(--font-size-s);
  70. font-weight: var(--font-weight-normal);
  71. }
  72. .node-preview-form-select {
  73. display: flex;
  74. align-items: center;
  75. justify-content: space-between;
  76. width: auto;
  77. height: 100%;
  78. margin: 0 var(--space-m);
  79. padding: var(--space-s) 0;
  80. label {
  81. padding-inline-end: 0.5em;
  82. }
  83. @media (min-width: 48em) {
  84. margin: 0 var(--space-xl);
  85. }
  86. @media (min-width: 61em) {
  87. margin: 0 min(5vw, var(--space-xxl));
  88. }
  89. }
  90. .form-element {
  91. all: revert;
  92. box-sizing: border-box;
  93. color: var(--gin-color-text);
  94. border: 1px solid var(--gin-border-color-form-element);
  95. border-radius: var(--gin-border-s);
  96. background-color: var(--gin-bg-input);
  97. font-size: var(--font-size-s);
  98. line-height: 1.5;
  99. @media (prefers-reduced-motion: no-preference) {
  100. transition: var(--gin-transition);
  101. }
  102. }
  103. .js-hide {
  104. display: none;
  105. }
  106. *:focus {
  107. outline: none;
  108. box-shadow:
  109. 0 0 0 1px var(--gin-color-focus-border),
  110. 0 0 0 4px var(--gin-color-focus);
  111. }
  112. @supports (backdrop-filter: blur()) {
  113. opacity: 0.999; /* Fix Chrome issue with mask */
  114. background: rgb(255, 255, 255, 0.8);
  115. backdrop-filter: blur(0.75rem);
  116. }
  117. }

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