dropbutton.css
Same filename in this branch
- 9 core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
- 9 core/misc/dropbutton/dropbutton.css
- 9 core/themes/stable9/css/core/dropbutton/dropbutton.css
- 9 core/themes/seven/css/classy/components/dropbutton.css
- 9 core/themes/claro/css/components/dropbutton.css
- 9 core/themes/bartik/css/classy/components/dropbutton.css
- 9 core/themes/stable/css/core/dropbutton/dropbutton.css
- 9 core/themes/starterkit_theme/css/components/dropbutton.css
- 9 core/themes/classy/css/components/dropbutton.css
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
- 8.9.x core/misc/dropbutton/dropbutton.css
- 8.9.x core/themes/seven/css/classy/components/dropbutton.css
- 8.9.x core/themes/claro/css/components/dropbutton.css
- 8.9.x core/themes/bartik/css/classy/components/dropbutton.css
- 8.9.x core/themes/stable/css/core/dropbutton/dropbutton.css
- 8.9.x core/themes/classy/css/components/dropbutton.css
- 10 core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
- 10 core/misc/dialog/off-canvas/css/dropbutton.css
- 10 core/misc/dropbutton/dropbutton.css
- 10 core/themes/olivero/css/components/dropbutton.css
- 10 core/themes/stable9/css/core/dropbutton/dropbutton.css
- 10 core/themes/claro/css/components/dropbutton.css
- 10 core/themes/starterkit_theme/css/components/dropbutton.css
- 11.x core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
- 11.x core/misc/dialog/off-canvas/css/dropbutton.css
- 11.x core/misc/dropbutton/dropbutton.css
- 11.x core/themes/olivero/css/components/dropbutton.css
- 11.x core/themes/stable9/css/core/dropbutton/dropbutton.css
- 11.x core/themes/claro/css/components/dropbutton.css
- 11.x core/themes/starterkit_theme/css/components/dropbutton.css
Dropbutton styles.
File
-
core/
themes/ olivero/ css/ components/ dropbutton.css
View source
- /*
- * 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.open {
- position: relative;
- z-index: 100; /* Ensure this appears above all other dropbuttons. */
- filter: drop-shadow(0 2px 2px #e3e3e5);
- }
-
- [dir="ltr"] .dropbutton-widget {
- padding-right: 1.6875rem;
- }
-
- [dir="rtl"] .dropbutton-widget {
- padding-left: 1.6875rem;
- }
-
- .dropbutton-widget {
- position: relative;
- width: 12.5rem;
- height: 1.6875rem;
- border-radius: 0.1875rem;
- }
-
- @supports (width: max-content) {
-
- .dropbutton-widget {
- width: max-content;
- }
- }
-
- [dir="ltr"] .dropbutton-single .dropbutton-widget {
- padding-right: 0;
- }
-
- [dir="rtl"] .dropbutton-single .dropbutton-widget {
- padding-left: 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: 1.6875rem;
- margin-top: 0;
- margin-bottom: 0;
- list-style: none;
- font-size: 0.875rem;
- }
-
- [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: 1.6875rem;
- height: 1.6875rem;
- padding: 0;
- cursor: pointer;
- border-color: transparent;
- border-radius: 0 0.1875rem 0.1875rem 0; /* LTR */
- background: #e3e3e5;
- }
-
- .dropbutton-toggle button:focus {
- outline: solid 2px #0d77b5;
- outline-offset: -2px;
- }
-
- .dropbutton-toggle button:before {
- display: block;
- width: 0.5625rem;
- height: 0.5625rem;
- content: "";
- transform: translateY(-25%) rotate(45deg);
- border-right: solid 2px #0d77b5;
- border-bottom: solid 2px #0d77b5;
- }
-
- [dir="rtl"] .dropbutton-toggle button {
- border-radius: 0.1875rem 0 0 0.1875rem;
- }
-
- [dir="ltr"] .dropbutton-action:first-child {
- margin-right: 2px;
- }
-
- [dir="rtl"] .dropbutton-action:first-child {
- margin-left: 2px;
- }
-
- .dropbutton-action:first-child {
- border: solid 1px transparent;
- border-radius: 0.1875rem 0 0 0.1875rem; /* LTR */
- background: #e3e3e5;
- }
-
- .dropbutton-action a {
- display: flex;
- align-items: center;
- margin-bottom: -2px; /* Account for borders. */
- padding: 0 0.5625rem;
- text-decoration: none;
- color: #313637;
- font-weight: 600;
- }
-
- .dropbutton-action a:focus {
- border: solid 2px #0d77b5;
- outline: 0;
-
- /* Negate specific IE rules. */
- }
-
- @supports (outline-offset: -2px) {
-
- .dropbutton-action a:focus {
- border: 0;
- outline: solid 2px #0d77b5;
- outline-offset: -1px; /* Overlap parent container by 1px. */
- }
- }
-
- .dropbutton-single .dropbutton-action:first-child {
- border-right: solid 1px transparent; /* LTR */
- border-radius: 0.1875rem;
- }
-
- .dropbutton-single .dropbutton-action a {
- justify-content: center;
- }
-
- [dir="rtl"] .dropbutton-action:first-child {
- border: solid 1px transparent;
- border-radius: 0 0.1875rem 0.1875rem 0;
- }
-
- [dir="rtl"] .dropbutton-single .dropbutton-action:first-child {
- border: solid 1px transparent;
- }
-
- .secondary-action {
- visibility: hidden;
- width: calc(100% + 1.6875rem);
- border-right: 1px solid #e3e3e5;
- border-left: 1px solid #e3e3e5;
- background: #fff;
- }
-
- .secondary-action:last-child {
- border-bottom: 1px solid #e3e3e5;
- }
-
- .dropbutton-wrapper.open .dropbutton-toggle button:before {
- transform: translateY(25%) rotate(225deg);
- }
-
- .dropbutton-wrapper.open .dropbutton-widget {
- border-radius: 0.1875rem 0.1875rem 0 0;
- }
-
- .dropbutton-wrapper.open .secondary-action {
- visibility: visible;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.