description_toggle.css
Same filename in this branch
Same filename and directory in other branches
Help icon description toggle styles.
File
-
core/
themes/ default_admin/ migration/ css/ components/ description_toggle.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Help icon description toggle styles.
- */
-
- .help-icon {
- display: flex;
- }
-
- .help-icon__description-toggle {
- all: unset;
- flex-shrink: 0;
- width: 1rem;
- height: 1rem;
- border-radius: 50%;
- margin-block: 0.1rem 0;
- margin-inline: 0.3rem var(--space-m);
-
- &::before {
- display: block;
- width: 100%;
- height: 100%;
- content: "";
- background-color: var(--gin-icon-color);
- 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 %3cpath d='M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z' /%3e %3cpath d='M9.09003 8.00002C9.32513 7.33169 9.78918 6.76813 10.4 6.40915C11.0108 6.05018 11.7289 5.91896 12.4272 6.03873C13.1255 6.15851 13.7588 6.52154 14.2151 7.06355C14.6714 7.60555 14.9211 8.29154 14.92 9.00002C14.92 11 11.92 12 11.92 12' /%3e %3cpath d='M12 17H12.01' /%3e %3c/g%3e%3c/svg%3e");
- mask-repeat: no-repeat;
- mask-position: center center;
- mask-size: 100% 100%;
- }
-
- &:hover::before {
- background-color: var(--gin-color-primary);
- }
- }
-
- .form-type--checkbox > .help-icon__element-has-description,
- .form-type--radio > .help-icon__element-has-description {
- display: flex;
- align-items: normal;
- }
-
- .form-type--checkbox > .help-icon__element-has-description > label,
- .form-type--radio > .help-icon__element-has-description > label {
- margin-inline-start: 0.375rem;
- }
-
- .field-group-details.help-icon__description-container .help-icon__description-toggle {
- margin-block-start: 0;
- }
-
- fieldset:not(.fieldgroup) .help-icon > .fieldset__legend .fieldset__label {
- padding-inline-end: 0;
- }
-
- .field-group-fieldset > .help-icon > .help-icon__description-toggle,
- fieldset.media-library-widget .help-icon > .help-icon__description-toggle,
- .field--type-datetime fieldset .help-icon > .help-icon__description-toggle {
- margin-block-start: 1rem;
- }
-
- .field-group-fieldset > .fieldset__description,
- fieldset.media-library-widget .fieldset__description,
- .field--type-datetime fieldset .fieldset__description {
- padding-inline-start: var(--space-m);
-
- @media (min-width: 48em) {
- padding-inline-start: var(--space-l);
- }
- }
-
- .system-modules .table-filter .form-type--search,
- .system-modules-uninstall .table-filter .form-type--search {
- position: relative;
- }
-
- .system-modules .table-filter .form-type--search .help-icon__description-toggle,
- .system-modules-uninstall .table-filter .form-type--search .help-icon__description-toggle {
- position: absolute;
- inset-inline-end: calc(var(--space-xs) * -1);
- inset-block-start: var(--space-m);
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.