D10 theme for Island Lives. This is a clone of drupals core theme Olivero. Notice this theme is named Olivera not Olivero :)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

209 lines
5.3 KiB

11 months ago
/*
* 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. */
10 months ago
--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. */
11 months ago
}
.dropbutton-wrapper.open {
10 months ago
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);
11 months ago
}
.dropbutton-widget {
position: relative;
10 months ago
width: -webkit-max-content;
11 months ago
width: max-content;
height: var(--dropbutton--height);
10 months ago
border-radius: var(--dropbutton--border-radius)
}
[dir="ltr"] .dropbutton-single .dropbutton-widget {
padding-right: 0;
11 months ago
}
10 months ago
[dir="rtl"] .dropbutton-single .dropbutton-widget {
padding-left: 0;
11 months ago
}
.dropbutton-wrapper.open .dropbutton-widget {
10 months ago
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;
11 months ago
}
.dropbutton {
height: var(--dropbutton--height);
10 months ago
margin-top: 0;
margin-bottom: 0;
11 months ago
list-style: none;
font-size: var(--dropbutton--font-size);
}
/* This is the button that expands/collapses the secondary options. */
10 months ago
[dir="ltr"] .dropbutton-toggle button {
right: 0;
}
[dir="rtl"] .dropbutton-toggle button {
left: 0;
}
11 months ago
.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 */
10 months ago
background: var(--dropbutton--active-bg-color)
11 months ago
}
.dropbutton-toggle button:focus {
10 months ago
outline: solid 2px var(--dropbutton--outline-color);
outline-offset: -2px;
}
11 months ago
.dropbutton-toggle button::before {
10 months ago
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)
}
11 months ago
[dir="rtl"] .dropbutton-toggle button {
10 months ago
border-radius: var(--dropbutton--border-radius) 0 0 var(--dropbutton--border-radius);
}
11 months ago
/* This is the first <li> element in the list of actions. */
10 months ago
[dir="ltr"] .dropbutton-action:first-child {
margin-right: 2px;
11 months ago
}
[dir="rtl"] .dropbutton-action:first-child {
10 months ago
margin-left: 2px;
11 months ago
}
10 months ago
.dropbutton-action:first-child {
border: solid 1px transparent;
border-radius: var(--dropbutton--border-radius) 0 0 var(--dropbutton--border-radius); /* LTR */
background: var(--dropbutton--active-bg-color)
}
[dir="rtl"] .dropbutton-action:first-child {
border: solid 1px transparent;
border-radius: 0 var(--dropbutton--border-radius) var(--dropbutton--border-radius) 0;
}
11 months ago
.dropbutton-action a {
10 months ago
display: flex;
align-items: center;
margin-bottom: -2px; /* Account for borders. */
padding: 0 0.5625rem;
text-decoration: none;
color: var(--dropbutton--text-color);
font-weight: 600
}
11 months ago
.dropbutton-action a:hover {
10 months ago
color: inherit;
}
11 months ago
.dropbutton-action a:focus {
10 months ago
outline: solid 2px var(--dropbutton--outline-color);
outline-offset: -1px; /* Overlap parent container by 1px. */
}
11 months ago
10 months ago
.dropbutton-action {
11 months ago
10 months ago
/* Special rules if there is only one action. */
11 months ago
}
10 months ago
.dropbutton-single .dropbutton-action:first-child {
border-right: solid 1px transparent; /* LTR */
border-radius: var(--dropbutton--border-radius)
}
11 months ago
[dir="rtl"] .dropbutton-single .dropbutton-action:first-child {
10 months ago
border: solid 1px transparent;
}
11 months ago
.dropbutton-single .dropbutton-action a {
10 months ago
justify-content: center;
}
11 months ago
/* These are the <li> elements other than the first. */
.secondary-action {
visibility: hidden;
width: calc(100% + var(--dropbutton--height));
border-right: 1px solid var(--dropbutton--active-bg-color);
border-left: 1px solid var(--dropbutton--active-bg-color);
10 months ago
background: var(--dropbutton--secondary-bg-color)
11 months ago
}
.secondary-action:last-child {
10 months ago
border-bottom: 1px solid var(--dropbutton--active-bg-color);
}
11 months ago
.secondary-action a:hover {
10 months ago
color: var(--dropbutton--text-hover-color);
}
11 months ago
.dropbutton-wrapper.open .secondary-action {
10 months ago
visibility: visible
11 months ago
}