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.

210 lines
4.0 KiB

1 year ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Buttons.
*/
12 months ago
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .button {
margin-left: 0
}
[dir="rtl"] .button {
margin-right: 0
}
[dir="ltr"] .button {
margin-right: var(--sp1)
}
[dir="rtl"] .button {
margin-left: var(--sp1)
}
1 year ago
.button {
display: inline-block;
height: var(--sp3);
12 months ago
margin-top: var(--sp1);
margin-bottom: var(--sp1);
padding-top: calc(var(--sp3)/2 - var(--line-height-s)/2);
padding-bottom: calc(var(--sp3)/2 - var(--line-height-s)/2);
padding-left: var(--sp1-5);
padding-right: var(--sp1-5);
1 year ago
cursor: pointer;
text-align: center;
text-decoration: none;
color: var(--color-text-primary-medium);
border: solid 2px currentColor;
border-radius: var(--border-radius);
background-color: var(--color--white);
font-family: var(--font-sans);
font-size: var(--font-size-l);
font-weight: 700;
-webkit-appearance: none;
12 months ago
-moz-appearance: none;
1 year ago
appearance: none;
12 months ago
-webkit-font-smoothing: antialiased
1 year ago
}
.button:hover,
12 months ago
.button:focus {
text-decoration: none;
color: var(--color-text-primary-loud);
border: solid 2px currentColor;
background: none;
font-weight: 700;
}
1 year ago
.button:focus {
12 months ago
outline: 2px solid var(--color--primary-60);
outline-offset: 2px;
}
1 year ago
.button:active {
12 months ago
color: var(--color-text-primary-medium);
border-color: currentColor;
}
1 year ago
.button:disabled,
12 months ago
.button.is-disabled {
cursor: default;
color: var(--color--gray-90);
border-color: var(--color--gray-90);
}
1 year ago
12 months ago
.button {
/*
1 year ago
IE11 doesn't work properly on button elements so we only do
inline-flex on modern browsers.
*/
12 months ago
}
1 year ago
@supports (display: inline-flex) {
12 months ago
.button {
1 year ago
display: inline-flex;
align-items: center;
/* Top padding accounts for font not being vertically centered within line-height. */
12 months ago
padding-top: 1px;
padding-bottom: 0;
padding-left: var(--sp1-5);
padding-right: var(--sp1-5);
line-height: var(--line-height-s)
1 year ago
}
12 months ago
}
1 year ago
/* No margin if is part of a menu. */
12 months ago
[dir="ltr"] .menu .button {
margin-left: 0
}
[dir="rtl"] .menu .button {
margin-right: 0
}
[dir="ltr"] .menu .button {
margin-right: 0
}
[dir="rtl"] .menu .button {
margin-left: 0
}
1 year ago
.menu .button {
12 months ago
margin-top: 0;
margin-bottom: 0;
1 year ago
}
.button--small {
height: var(--sp2-5);
12 months ago
padding-top: calc(var(--sp2-5)/2 - var(--line-height-s)/2);
padding-bottom: calc(var(--sp2-5)/2 - var(--line-height-s)/2);
padding-left: var(--sp);
padding-right: var(--sp);
1 year ago
font-size: var(--font-size-base);
line-height: normal;
}
.button--primary {
color: var(--color--white);
border-color: var(--color--primary-40);
12 months ago
background-color: var(--color--primary-40)
1 year ago
}
.button--primary:hover,
12 months ago
.button--primary:focus {
color: var(--color--white);
border-color: var(--color--primary-30);
background-color: var(--color--primary-30);
}
1 year ago
.button--primary:active {
12 months ago
color: var(--color--white);
background-color: var(--color--primary-40);
}
1 year ago
.button--primary:disabled,
12 months ago
.button--primary.is-disabled {
color: var(--color--white);
background-color: var(--color--gray-90);
}
1 year ago
.button--icon-back {
display: inline-flex;
12 months ago
align-items: center
1 year ago
}
12 months ago
[dir="ltr"] .button--icon-back::before {
margin-right: 0.5em
}
[dir="rtl"] .button--icon-back::before {
margin-left: 0.5em
1 year ago
}
12 months ago
[dir="ltr"] .button--icon-back::before {
border-left: solid 2px currentColor
}
[dir="rtl"] .button--icon-back::before {
border-right: solid 2px currentColor
}
.button--icon-back::before {
display: block;
width: 0.5em;
height: 0.5em;
content: "";
transform: rotate(45deg); /* LTR */
border-bottom: solid 2px currentColor;
}
1 year ago
[dir="rtl"] .button--icon-back::before {
transform: rotate(-45deg);
}
.shepherd-cancel-icon {
font-size: 1.5em;
}