node_preview.css
Same filename in this branch
Same filename and directory in other branches
Node preview bar styles.
File
-
core/
themes/ default_admin/ migration/ css/ components/ node_preview.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Node preview bar styles.
- */
-
- .node-preview-container.node-preview-container {
- position: sticky;
- z-index: 501; /* on top of the Drupal world */
- 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
- }
-
- .gin--high-contrast-mode
-
- .gin--navigation
-
- .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;
- }
- }
-
- .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);
- }
-
- .node-preview-form-select {
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: auto;
- 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));
- }
- }
-
- .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);
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.