2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:color';
|
2019-01-02 00:11:47 +01:00
|
|
|
// Core button style
|
|
|
|
// Note that these styles include methods to render buttons the same x-browser, described here:
|
|
|
|
// http: //cbjdigital.com/blog/2010/08/bulletproof_css_input_button_heights
|
|
|
|
// input[type=submit],
|
|
|
|
// input[type=reset],
|
|
|
|
// input[type=button],
|
|
|
|
.button {
|
|
|
|
border-radius: 3px;
|
2021-12-23 05:21:23 +01:00
|
|
|
font-family: $font-sans;
|
2019-01-02 00:11:47 +01:00
|
|
|
width: auto;
|
|
|
|
height: 2.4em;
|
|
|
|
padding: 0 1em;
|
|
|
|
font-size: 0.9em;
|
|
|
|
font-weight: normal;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
background-color: $color-button;
|
|
|
|
border: 1px solid $color-button;
|
|
|
|
color: $color-white;
|
|
|
|
text-decoration: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-font-smoothing: auto;
|
|
|
|
// stylelint-disable-next-line property-no-vendor-prefix
|
|
|
|
-moz-appearance: none;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2020-06-18 18:18:08 +02:00
|
|
|
transition: background-color 0.1s ease;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:hover {
|
|
|
|
color: $color-teal;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.yes {
|
2019-01-02 00:11:47 +01:00
|
|
|
background-color: $color-button-yes;
|
|
|
|
border: 1px solid $color-button-yes;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-secondary {
|
|
|
|
border: 1px solid $color-button-yes;
|
|
|
|
color: $color-button-yes;
|
|
|
|
background-color: transparent;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:hover {
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: $color-button-yes;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.warning {
|
|
|
|
background-color: $color-button-warning;
|
|
|
|
border: 1px solid $color-button-warning;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-secondary {
|
|
|
|
border: 1px solid $color-button-warning;
|
|
|
|
color: $color-button-warning;
|
|
|
|
background-color: transparent;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:hover {
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: $color-button-warning;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.no,
|
2019-01-02 00:11:47 +01:00
|
|
|
&.serious {
|
|
|
|
background-color: $color-button-no;
|
|
|
|
border: 1px solid $color-button-no;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-secondary {
|
|
|
|
border: 1px solid $color-button-no;
|
|
|
|
color: $color-button-no;
|
|
|
|
background-color: transparent;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:hover {
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: $color-button-no;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.bicolor {
|
2019-11-12 14:43:09 +01:00
|
|
|
border: 1px solid transparent;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2020-06-15 11:44:18 +02:00
|
|
|
&:before {
|
|
|
|
// iconfont
|
2019-01-02 00:11:47 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
top: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
width: 2em;
|
|
|
|
line-height: 1.85em;
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.black-20');
|
2019-01-02 00:11:47 +01:00
|
|
|
display: block;
|
2022-03-15 14:21:06 +01:00
|
|
|
// Remove once we drop support for Safari 14.
|
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2019-01-02 00:11:47 +01:00
|
|
|
border-top-left-radius: inherit;
|
2022-03-15 14:21:06 +01:00
|
|
|
border-start-start-radius: inherit;
|
|
|
|
// Remove once we drop support for Safari 14.
|
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2019-01-02 00:11:47 +01:00
|
|
|
border-bottom-left-radius: inherit;
|
2022-03-15 14:21:06 +01:00
|
|
|
border-end-start-radius: inherit;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2020-06-15 11:44:18 +02:00
|
|
|
.icon-wrapper {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.black-20');
|
2022-04-29 13:59:52 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-06-15 11:44:18 +02:00
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
top: 0;
|
2020-06-15 11:44:18 +02:00
|
|
|
width: 3em;
|
|
|
|
height: 100%;
|
2022-07-25 04:33:09 +02:00
|
|
|
box-sizing: content-box;
|
2020-06-15 11:44:18 +02:00
|
|
|
text-align: center;
|
2022-03-15 14:21:06 +01:00
|
|
|
// Remove once we drop support for Safari 14.
|
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2020-06-15 11:44:18 +02:00
|
|
|
border-top-left-radius: inherit;
|
2022-03-15 14:21:06 +01:00
|
|
|
border-start-start-radius: inherit;
|
|
|
|
// Remove once we drop support for Safari 14.
|
|
|
|
// stylelint-disable-next-line property-disallowed-list
|
2020-06-15 11:44:18 +02:00
|
|
|
border-bottom-left-radius: inherit;
|
2022-03-15 14:21:06 +01:00
|
|
|
border-end-start-radius: inherit;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2020-06-15 11:44:18 +02:00
|
|
|
&.button--icon {
|
|
|
|
&:before {
|
|
|
|
display: none; // TODO: remove once the icon font styles are gone
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-15 17:13:08 +02:00
|
|
|
&.button--icon-flipped {
|
2022-02-04 12:57:55 +01:00
|
|
|
.icon {
|
2020-06-15 17:13:08 +02:00
|
|
|
transform: scaleX(-1);
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-12 14:43:09 +01:00
|
|
|
&.button-secondary {
|
2022-07-09 08:32:51 +02:00
|
|
|
border: 1px solid theme('colors.black-20');
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-small.bicolor {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2020-06-15 11:44:18 +02:00
|
|
|
.icon-wrapper {
|
2019-01-02 00:11:47 +01:00
|
|
|
width: 2em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2020-06-15 11:44:18 +02:00
|
|
|
&.button--icon .icon {
|
|
|
|
@include svg-icon(0.9rem);
|
2020-06-15 12:06:29 +02:00
|
|
|
padding: 0.25em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// + input[type=submit],
|
|
|
|
// + input[type=reset],
|
|
|
|
// + input[type=button],
|
|
|
|
+ .button {
|
|
|
|
// + button {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: 1em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// A completely unstyled button
|
|
|
|
&.unbutton {
|
|
|
|
border-radius: 0;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
padding: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: normal;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-font-smoothing: auto;
|
|
|
|
// stylelint-disable-next-line property-no-vendor-prefix
|
|
|
|
-moz-appearance: none;
|
|
|
|
|
2022-02-04 12:57:55 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
2020-06-18 18:18:08 +02:00
|
|
|
&:active {
|
|
|
|
background-color: transparent;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2021-12-23 03:42:22 +01:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2019-01-02 00:11:47 +01:00
|
|
|
&:hover {
|
|
|
|
background-color: $color-button-hover;
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
|
|
|
|
|
|
|
&.hover-no {
|
|
|
|
background-color: $color-button-no;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.button-longrunning {
|
2022-02-04 12:57:55 +01:00
|
|
|
span {
|
2019-01-02 00:11:47 +01:00
|
|
|
// iconfont
|
|
|
|
@include transition(all 0.3s ease);
|
|
|
|
transform: scale(0.9);
|
|
|
|
display: inline-block;
|
|
|
|
height: 0.9em;
|
|
|
|
position: relative;
|
|
|
|
opacity: 0;
|
|
|
|
width: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
text-align: center;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: normal;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
&-active {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-active span {
|
2019-01-02 00:11:47 +01:00
|
|
|
// iconfont
|
|
|
|
transform: scale(1);
|
|
|
|
visibility: visible;
|
|
|
|
width: 1em;
|
2020-06-15 13:31:05 +02:00
|
|
|
height: 1em;
|
2019-01-02 00:11:47 +01:00
|
|
|
opacity: 0.8;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 0.5em;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
span.icon-spinner:after {
|
|
|
|
// iconfont
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
margin: 0;
|
|
|
|
line-height: 1em;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg.icon-spinner {
|
|
|
|
@include transition(all 0.3s ease);
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
&-active svg.icon-spinner {
|
2020-06-15 17:13:08 +02:00
|
|
|
@include svg-icon();
|
2019-01-02 00:11:47 +01:00
|
|
|
display: inline-block;
|
|
|
|
opacity: 0.8;
|
2020-06-15 13:31:05 +02:00
|
|
|
padding: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
&-active .button-longrunning__icon {
|
2019-01-02 00:11:47 +01:00
|
|
|
display: none;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
background-color: $color-grey-3;
|
|
|
|
border-color: $color-grey-3;
|
2019-05-23 16:55:14 +02:00
|
|
|
color: $color-grey-2;
|
2019-01-02 00:11:47 +01:00
|
|
|
cursor: default;
|
2022-08-04 18:55:00 +02:00
|
|
|
@media (forced-colors: active) {
|
|
|
|
color: GrayText;
|
|
|
|
border-color: GrayText;
|
|
|
|
border-style: dashed;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-secondary:disabled,
|
|
|
|
&.button-secondary[disabled],
|
|
|
|
&.button-secondary.disabled {
|
|
|
|
background-color: $color-white;
|
|
|
|
border-color: $color-grey-3;
|
|
|
|
color: $color-grey-3;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.button-strokeonhover {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: $color-grey-2;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2020-06-16 11:44:08 +02:00
|
|
|
&.button--icon {
|
|
|
|
.icon {
|
|
|
|
@include svg-icon(1.5em);
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-16 11:44:08 +02:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
font-size: 0.95em;
|
|
|
|
padding: 0 1.4em;
|
|
|
|
height: 3em;
|
|
|
|
|
|
|
|
&.bicolor {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.7em;
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
width: 2em;
|
|
|
|
line-height: 2.2em;
|
|
|
|
font-size: 1.1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.button-small.bicolor {
|
|
|
|
// line-height: 2.2em;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3em;
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
width: 1.8em;
|
|
|
|
line-height: 1.65em;
|
|
|
|
}
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.button-small {
|
|
|
|
padding: 0 0.8em;
|
|
|
|
height: 2em;
|
|
|
|
font-size: 0.95em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-secondary {
|
|
|
|
color: $color-button;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons which are only an icon
|
2020-06-15 12:06:29 +02:00
|
|
|
.button.icon.text-replace {
|
|
|
|
// iconfont
|
2019-01-02 00:11:47 +01:00
|
|
|
font-size: 0; // unavoidable duplication of setting in icons.scss
|
|
|
|
width: 1.8rem;
|
|
|
|
height: 1.8rem;
|
2022-07-25 04:33:09 +02:00
|
|
|
box-sizing: content-box;
|
2020-06-15 12:06:29 +02:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
line-height: 1.7em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-15 12:06:29 +02:00
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
width: 2.2rem;
|
|
|
|
height: 2.2rem;
|
|
|
|
|
|
|
|
&:before {
|
2019-01-02 00:11:47 +01:00
|
|
|
line-height: 2.1em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-15 12:06:29 +02:00
|
|
|
|
|
|
|
&.button-small {
|
|
|
|
height: 1.8rem;
|
|
|
|
width: 1.8rem;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
line-height: 1.7em;
|
|
|
|
}
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-15 12:06:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button--icon.text-replace {
|
|
|
|
font-size: 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
font-size: initial;
|
|
|
|
@include svg-icon(1rem, middle);
|
|
|
|
padding: 0.5em;
|
2022-07-25 04:33:09 +02:00
|
|
|
box-sizing: content-box;
|
2020-06-15 12:06:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.button-small {
|
|
|
|
line-height: 1.7rem;
|
2021-12-13 00:47:37 +01:00
|
|
|
height: 1.8rem;
|
|
|
|
width: 1.8rem;
|
2020-06-15 12:06:29 +02:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
padding: 0.25em;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2020-06-15 12:06:29 +02:00
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
width: 2.2rem;
|
|
|
|
height: 2.2rem;
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2020-06-15 11:44:18 +02:00
|
|
|
|
|
|
|
button.button.bicolor .icon-wrapper {
|
|
|
|
line-height: 1.65em; // work around differences in a and button elements
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
.button-neutral {
|
|
|
|
color: $color-grey-2;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $color-teal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.yes {
|
|
|
|
background-color: $color-button-yes;
|
|
|
|
border: 1px solid $color-button-yes;
|
|
|
|
|
|
|
|
&.button-secondary {
|
|
|
|
border: 1px solid $color-button-yes;
|
|
|
|
color: $color-button-yes;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: $color-button-yes;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no,
|
|
|
|
.serious {
|
|
|
|
background-color: $color-button-no;
|
|
|
|
border: 1px solid $color-button-no;
|
|
|
|
|
|
|
|
&.button-secondary {
|
|
|
|
border: 1px solid $color-button-no;
|
|
|
|
color: $color-button-no;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $color-white;
|
|
|
|
border-color: transparent;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: $color-button-no;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bicolor {
|
|
|
|
border: 0;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:before {
|
|
|
|
font-size: 1rem;
|
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
top: 0;
|
|
|
|
width: 2em;
|
|
|
|
line-height: 1.85em;
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.black-20');
|
2019-01-02 00:11:47 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-small.bicolor {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.5em;
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
width: 2em;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
line-height: 1.65em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a.button {
|
|
|
|
line-height: 2.4em;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
&.button-small {
|
|
|
|
line-height: 1.85em;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
line-height: 2.9em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Special styles to counteract Firefox's completely unwarranted assumptions about button styles
|
|
|
|
input[type='submit'],
|
|
|
|
input[type='reset'],
|
|
|
|
input[type='button'],
|
|
|
|
button {
|
|
|
|
padding: 0 1em;
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
&.button-small {
|
|
|
|
height: 2em;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.multiple {
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
> li {
|
2022-07-25 04:33:09 +02:00
|
|
|
@include row(1.5em);
|
2019-01-02 00:11:47 +01:00
|
|
|
border-radius: 2px;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: $color-white;
|
2022-07-25 04:33:09 +02:00
|
|
|
padding: 1em 1.5em;
|
|
|
|
padding-inline-end: 10em; // 10em padding leaves room for controls
|
2019-01-02 00:11:47 +01:00
|
|
|
margin-bottom: 1em;
|
2022-07-09 08:32:51 +02:00
|
|
|
border: 1px solid theme('colors.grey.100');
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
&.moving {
|
|
|
|
position: relative;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
li.moving {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
fieldset {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// Object controls
|
2022-02-04 12:57:55 +01:00
|
|
|
.controls {
|
2019-01-02 00:11:47 +01:00
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 1em;
|
2019-01-02 00:11:47 +01:00
|
|
|
top: 1em;
|
|
|
|
color: $color-white;
|
|
|
|
|
2022-02-04 12:57:55 +01:00
|
|
|
li {
|
2019-01-02 00:11:47 +01:00
|
|
|
float: left;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 1px;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:last-child {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-end: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.disabled {
|
|
|
|
display: none;
|
|
|
|
visibility: hidden;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
2021-08-06 18:35:13 +02:00
|
|
|
// wrapper around add button for multiple objects
|
2019-01-02 00:11:47 +01:00
|
|
|
.add {
|
|
|
|
font-weight: 700;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-top: 1em;
|
|
|
|
padding-bottom: 2em;
|
|
|
|
clear: both;
|
|
|
|
}
|