contextual-links.css
Same filename and directory in other branches
Contextual links styles.
File
-
core/
themes/ default_admin/ css/ components/ contextual-links.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Contextual links styles.
- */
-
- .contextual {
- z-index: 100;
- box-sizing: border-box;
-
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
-
- .trigger {
- overflow: clip;
- text-indent: -62.4375rem;
- border: 1px solid var(--gin-border-color-layer2);
- border-radius: 50%;
- background: var(--gin-bg-layer3);
- box-shadow: 0 2px 4px rgb(0, 0, 0, 0.15);
-
- &,
- &.visually-hidden.focusable {
- width: 2rem;
- height: 2rem;
- }
-
- &::before {
- position: absolute;
- display: block;
- width: 0.75rem;
- height: 0.75rem;
- margin: auto;
- content: "";
- background: var(--gin-color-primary);
- inset: 0;
- 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='3' stroke-linecap='round' stroke-linejoin='round'%3e %3cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'%3e%3c/path%3e %3c/g%3e%3c/svg%3e");
- mask-size: var(--space-s);
- mask-position: 100% 100%;
-
- @media (forced-colors: active) {
- background: buttonText;
- }
- }
-
- &:hover {
- box-shadow:
- 0 0 0 1px var(--gin-color-focus-border),
- 0 0 0 4px var(--gin-color-focus);
- }
- }
-
- &.open .trigger {
- border-block-end: 0 none;
- border-radius: 50%;
- }
- }
-
- .contextual-region .contextual .contextual-links {
- min-width: 7.5rem;
- margin: 0;
- padding: 0.5em;
- border: 1px solid transparent;
- border-radius: var(--gin-border-l);
- background: var(--gin-bg-layer3);
- box-shadow: var(--gin-shadow-l2);
- inset-block-start: var(--space-xxs);
-
- li {
- background: transparent;
-
- a {
- margin: 0;
- padding: var(--space-xs) var(--space-m);
- white-space: nowrap;
- color: var(--gin-color-primary);
- border-radius: var(--gin-border-s);
- background: transparent;
- font-family: var(--gin-font);
- line-height: 1;
-
- &:hover,
- &:active {
- color: var(--gin-color-button-text);
- background: var(--gin-color-primary);
-
- @media (forced-colors: active) {
- -webkit-text-decoration: underline;
- text-decoration: underline;
- }
- }
-
- .no-touchevents
- }
- }
- }
-
- .ajax-progress-throbber {
- border-radius: 50%;
- background: var(--gin-color-primary);
- inset-block-start: 0.125rem;
-
- &::before {
- position: absolute;
- display: block;
- width: 1.125rem;
- height: 1.125rem;
- content: "";
- animation: gin-throbber 0.75s linear infinite;
- border: 2px solid var(--gin-color-primary);
- border-inline-end: 2px dotted transparent;
- border-radius: 50%;
- inset-block-start: var(--space-xs);
- inset-inline-start: var(--space-xs);
- }
- }
- }
-
- @keyframes gin-throbber {
- 0% {
- transform: rotateZ(0);
- }
-
- 100% {
- transform: rotateZ(360deg);
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.