/* * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/3084859 * @preserve */ /** * @file * Dropbutton styles. */ .dropbutton-wrapper { --dropbutton--height: var(--sp1-5); --dropbutton--secondary-bg-color: var(--color--white); --dropbutton--active-bg-color: var(--color--gray-90); --dropbutton--outline-color: var(--color--primary-40); /* Minimum 3:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */ --dropbutton--border-radius: var(--border-radius); --dropbutton--font-size: var(--font-size-s); --dropbutton--text-color: var(--color-text-neutral-medium); /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */ --dropbutton--text-hover-color: var(--color-text-primary-medium); /* Minimum 4.5:1 contrast ratio against --dropbutton--active-bg-color and --dropbutton--secondary-bg-color. */ } .dropbutton-wrapper.open { position: relative; z-index: 100; /* Ensure this appears above all other dropbuttons. */ filter: drop-shadow(0 2px 2px var(--dropbutton--active-bg-color)); } .dropbutton-widget { position: relative; width: max-content; height: var(--dropbutton--height); padding-inline-end: var(--dropbutton--height); border-radius: var(--dropbutton--border-radius); } .dropbutton-single .dropbutton-widget { padding-inline-end: 0; } .dropbutton-wrapper.open .dropbutton-widget { border-radius: var(--dropbutton--border-radius) var(--dropbutton--border-radius) 0 0; } .dropbutton { height: var(--dropbutton--height); margin-block: 0; margin-inline-start: 0; padding-inline-start: 0; list-style: none; font-size: var(--dropbutton--font-size); } /* This is the button that expands/collapses the secondary options. */ .dropbutton-toggle button { position: absolute; top: 0; inset-inline-end: 0; display: flex; align-items: center; justify-content: center; width: var(--dropbutton--height); height: var(--dropbutton--height); padding: 0; cursor: pointer; border-color: transparent; border-radius: 0 var(--border-radius) var(--border-radius) 0; /* LTR */ background: var(--dropbutton--active-bg-color); } .dropbutton-toggle button:focus { outline: solid 2px var(--dropbutton--outline-color); outline-offset: -2px; } .dropbutton-toggle button::before { display: block; width: var(--sp0-5); height: var(--sp0-5); content: ""; transform: translateY(-25%) rotate(45deg); border-right: solid 2px var(--dropbutton--outline-color); border-bottom: solid 2px var(--dropbutton--outline-color); } .dropbutton-wrapper.open :is(.dropbutton-toggle button::before) { transform: translateY(25%) rotate(225deg); } [dir="rtl"] .dropbutton-toggle button { border-radius: var(--dropbutton--border-radius) 0 0 var(--dropbutton--border-radius); } /* This is the first