/* * 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)); } [dir="ltr"] .dropbutton-widget { padding-right: var(--dropbutton--height); } [dir="rtl"] .dropbutton-widget { padding-left: var(--dropbutton--height); } .dropbutton-widget { position: relative; width: -webkit-max-content; width: max-content; height: var(--dropbutton--height); border-radius: var(--dropbutton--border-radius) } [dir="ltr"] .dropbutton-single .dropbutton-widget { padding-right: 0; } [dir="rtl"] .dropbutton-single .dropbutton-widget { padding-left: 0; } .dropbutton-wrapper.open .dropbutton-widget { border-radius: var(--dropbutton--border-radius) var(--dropbutton--border-radius) 0 0 } [dir="ltr"] .dropbutton { margin-left: 0; } [dir="rtl"] .dropbutton { margin-right: 0; } [dir="ltr"] .dropbutton { padding-left: 0; } [dir="rtl"] .dropbutton { padding-right: 0; } .dropbutton { height: var(--dropbutton--height); margin-top: 0; margin-bottom: 0; list-style: none; font-size: var(--dropbutton--font-size); } /* This is the button that expands/collapses the secondary options. */ [dir="ltr"] .dropbutton-toggle button { right: 0; } [dir="rtl"] .dropbutton-toggle button { left: 0; } .dropbutton-toggle button { position: absolute; top: 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 .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