node_preview.pcss.css

Same filename and directory in other branches
  1. 11.x core/themes/default_admin/migration/css/components/node_preview.pcss.css

Node preview bar styles.

File

core/themes/default_admin/migration/css/components/node_preview.pcss.css

View source
  1. /**
  2. * @file
  3. * Node preview bar styles.
  4. */
  5. @import "../base/media-queries.pcss.css";
  6. .node-preview-container.node-preview-container {
  7. position: sticky;
  8. z-index: 501; /* on top of the Drupal world */
  9. width: 100%;
  10. height: var(--gin-toolbar-secondary-height);
  11. padding: 0;
  12. border-block-end: 1px solid var(--gin-border-color-layer);
  13. background: rgb(255, 255, 255, 0.98);
  14. font-size: var(--font-size-xs);
  15. inset-block-start: 0;
  16. .gin--dark-mode
  17. }
  18. .gin--high-contrast-mode
  19. .gin--navigation
  20. .gin-layout-container {
  21. box-sizing: border-box;
  22. }
  23. .node-preview-backlink,
  24. .node-preview-form-select label {
  25. color: var(--gin-color-text-light);
  26. }
  27. .node-preview-backlink {
  28. all: revert;
  29. position: relative;
  30. padding-inline-start: 1.75em;
  31. text-decoration: none;
  32. color: var(--gin-color-text-light);
  33. border-radius: var(--gin-border-xxs);
  34. font-weight: var(--font-weight-normal);
  35. &:hover {
  36. color: var(--gin-color-primary-hover);
  37. }
  38. &:active {
  39. color: var(--gin-color-primary-active);
  40. }
  41. &::before {
  42. position: absolute;
  43. display: inline-block;
  44. width: var(--gin-icon-size-toolbar-secondary);
  45. height: var(--gin-icon-size-toolbar-secondary);
  46. content: "";
  47. transform: translateY(-50%);
  48. background-color: var(--gin-icon-color);
  49. inset-block-start: calc(50% - 1px);
  50. inset-inline-start: 0;
  51. /* cspell:disable-next-line */
  52. mask-image: url("../../media/icons/toolbar-meta/backtosite.svg");
  53. mask-size: 100% 100%;
  54. mask-position: center center;
  55. }
  56. }
  57. .form-item {
  58. all: revert;
  59. }
  60. .form-item__label {
  61. margin: 0;
  62. color: var(--gin-color-title);
  63. font-size: var(--font-size-s);
  64. font-weight: var(--font-weight-normal);
  65. }
  66. .node-preview-form-select {
  67. display: flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. width: auto;
  71. height: 100%;
  72. margin: 0 var(--space-m);
  73. padding: var(--space-s) 0;
  74. label {
  75. padding-inline-end: 0.5em;
  76. }
  77. @media (--admin-small) {
  78. margin: 0 var(--space-xl);
  79. }
  80. @media (--admin-medium) {
  81. margin: 0 min(5vw, var(--space-xxl));
  82. }
  83. }
  84. .form-element {
  85. all: revert;
  86. box-sizing: border-box;
  87. color: var(--gin-color-text);
  88. border: 1px solid var(--gin-border-color-form-element);
  89. border-radius: var(--gin-border-s);
  90. background-color: var(--gin-bg-input);
  91. font-size: var(--font-size-s);
  92. line-height: 1.5;
  93. @media (prefers-reduced-motion: no-preference) {
  94. transition: var(--gin-transition);
  95. }
  96. }
  97. .js-hide {
  98. display: none;
  99. }
  100. *:focus {
  101. outline: none;
  102. box-shadow:
  103. 0 0 0 1px var(--gin-color-focus-border),
  104. 0 0 0 4px var(--gin-color-focus);
  105. }
  106. @supports (backdrop-filter: blur()) {
  107. opacity: 0.999; /* Fix Chrome issue with mask */
  108. background: rgb(255, 255, 255, 0.8);
  109. backdrop-filter: blur(12px);
  110. }
  111. }

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