This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/themes/bartik/css/components/dropbutton.component.css

112 lines
3.4 KiB
CSS

/* ---------- Dropbutton ----------- */
.js .dropbutton-multiple.open .dropbutton-widget {
border-radius: 1em;
}
.js .dropbutton-widget {
position: relative !important;
border: 1px solid #e4e4e4;
border-bottom-color: #b4b4b4;
border-left-color: #d2d2d2;
border-right-color: #d2d2d2;
background-color: #fff;
background-image: -webkit-linear-gradient(top, #f3f3f3, #e8e8e8);
background-image: linear-gradient(to bottom, #f3f3f3, #e8e8e8);
color: #3a3a3a;
cursor: pointer;
text-align: center;
margin: 0.125em 0;
border-radius: 1em;
}
.js .dropbutton-widget:hover {
border-top-color: #e4e4e4;
border-bottom-color: #b4b4b4;
border-left-color: #d2d2d2;
border-right-color: #d2d2d2;
}
.js .dropbutton-widget .button {
border: none;
margin: 0;
padding: 0.32em 1em;
width: 100%;
border-radius: 1em;
}
.js .dropbutton-widget .button:hover {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-widget .button:hover {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-single .dropbutton-widget .dropbutton-action a {
color: #3a3a3a;
}
.js .dropbutton-single .dropbutton-widget .dropbutton-action a:hover {
background: #dedede;
border-radius: 1em;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
color: #3a3a3a;
margin-right: 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
margin-left: 0;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action a:hover {
background: #dedede;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-multiple.open .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 1em 0 0 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-widget .dropbutton-action:first-child a:hover {
border-radius: 0 1em 0 0;
}
.js .dropdown-widget .publish .button {
border-radius: 1em 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-widget .publish .button {
border-radius: 0 1em 1em 0;
}
.js .dropbutton-multiple.open .dropbutton-action:first-child a,
.js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 1em 0 0 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:first-child .button {
border-radius: 0 1em 0 0;
}
.js .dropbutton-multiple.open .dropbutton-action:last-child a,
.js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 0 1em; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child a,
[dir="rtl"].js .dropbutton-multiple.open .dropbutton-action:last-child .button {
border-radius: 0 0 1em 0;
}
.js .dropbutton .secondary-action {
border-top-color: #ccc;
}
.js .dropbutton-toggle button {
border-radius: 0 1em 1em 0; /* LTR */
background-color: #e8e8e8;
background-image: -webkit-linear-gradient(top, #e8e8e8, #d2d2d2);
background-image: linear-gradient(to bottom, #e8e8e8, #d2d2d2);
}
[dir="rtl"].js .dropbutton-toggle button {
border-radius: 1em 0 0 1em;
}
.js .dropbutton-toggle .button:hover {
background: #ccc;
}
.js .dropbutton a {
border-bottom: none;
}
.js .dropbutton a:hover {
border-bottom-style: none;
}