2024-12-09 13:25:35 +00:00
|
|
|
@use "mixins";
|
|
|
|
@use "vars";
|
|
|
|
|
2019-04-07 11:34:40 +01:00
|
|
|
button {
|
2019-08-24 18:26:28 +01:00
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
2019-04-07 11:34:40 +01:00
|
|
|
font-size: 100%;
|
|
|
|
}
|
2015-07-12 20:01:42 +01:00
|
|
|
|
2019-04-07 11:34:40 +01:00
|
|
|
.button {
|
2015-07-12 20:01:42 +01:00
|
|
|
text-decoration: none;
|
2019-02-03 13:45:45 +00:00
|
|
|
font-size: 0.85rem;
|
2015-07-12 20:01:42 +01:00
|
|
|
line-height: 1.4em;
|
2024-12-09 13:25:35 +00:00
|
|
|
padding: vars.$xs*1.3 vars.$m;
|
|
|
|
margin-top: vars.$xs;
|
|
|
|
margin-bottom: vars.$xs;
|
2015-07-12 20:01:42 +01:00
|
|
|
display: inline-block;
|
2017-08-26 13:24:55 +01:00
|
|
|
font-weight: 400;
|
2015-07-12 20:01:42 +01:00
|
|
|
outline: 0;
|
2023-12-16 14:03:12 +00:00
|
|
|
border-radius: 4px;
|
2015-07-12 20:01:42 +01:00
|
|
|
cursor: pointer;
|
2019-08-25 12:40:04 +01:00
|
|
|
transition: background-color ease-in-out 120ms,
|
|
|
|
filter ease-in-out 120ms,
|
|
|
|
box-shadow ease-in-out 120ms;
|
2019-04-07 11:34:40 +01:00
|
|
|
box-shadow: none;
|
2019-08-25 12:40:04 +01:00
|
|
|
background-color: var(--color-primary);
|
2019-04-07 11:34:40 +01:00
|
|
|
color: #FFF;
|
2019-08-25 12:40:04 +01:00
|
|
|
border: 1px solid var(--color-primary);
|
2019-04-07 11:34:40 +01:00
|
|
|
vertical-align: top;
|
2019-08-25 12:40:04 +01:00
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
background-color: var(--color-primary);
|
2019-04-07 11:34:40 +01:00
|
|
|
text-decoration: none;
|
2019-08-25 12:40:04 +01:00
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
&:hover {
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(box-shadow, vars.$bs-light, vars.$bs-dark);
|
2019-08-25 12:40:04 +01:00
|
|
|
filter: brightness(110%);
|
2015-07-12 20:01:42 +01:00
|
|
|
}
|
2019-08-24 18:26:28 +01:00
|
|
|
&:focus {
|
|
|
|
outline: 1px dotted currentColor;
|
2024-12-09 13:25:35 +00:00
|
|
|
outline-offset: -(vars.$xs);
|
2019-08-25 12:40:04 +01:00
|
|
|
box-shadow: none;
|
|
|
|
filter: brightness(90%);
|
2019-08-24 18:26:28 +01:00
|
|
|
}
|
2019-04-07 11:34:40 +01:00
|
|
|
&:active {
|
2019-08-24 18:26:28 +01:00
|
|
|
outline: 0;
|
2015-08-08 20:05:30 +01:00
|
|
|
}
|
2015-07-12 20:01:42 +01:00
|
|
|
}
|
2019-08-25 12:40:04 +01:00
|
|
|
|
2017-08-26 13:24:55 +01:00
|
|
|
.button.outline {
|
|
|
|
background-color: transparent;
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(color, #666, #AAA);
|
2019-08-25 12:40:04 +01:00
|
|
|
fill: currentColor;
|
2022-10-12 11:27:24 +01:00
|
|
|
border: 1px solid;
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(border-color, #CCC, #666);
|
2017-08-26 13:24:55 +01:00
|
|
|
&:hover, &:focus, &:active {
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(color, #444, #BBB);
|
2019-08-25 12:40:04 +01:00
|
|
|
border: 1px solid #CCC;
|
2023-12-16 14:03:12 +00:00
|
|
|
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
|
2019-08-25 12:40:04 +01:00
|
|
|
background-color: #F2F2F2;
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(background-color, #f8f8f8, #444);
|
2019-08-25 12:40:04 +01:00
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
border-color: #BBB;
|
|
|
|
background-color: #DDD;
|
|
|
|
color: #666;
|
|
|
|
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
|
2017-08-26 13:24:55 +01:00
|
|
|
}
|
2019-04-07 11:34:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.button + .button {
|
2024-12-09 13:25:35 +00:00
|
|
|
margin-inline-start: vars.$s;
|
2019-04-07 11:34:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.button.small {
|
|
|
|
font-size: 0.75rem;
|
2024-12-09 13:25:35 +00:00
|
|
|
padding: vars.$xs*1.2 vars.$s;
|
2017-08-26 13:24:55 +01:00
|
|
|
}
|
|
|
|
|
2015-09-02 18:26:33 +01:00
|
|
|
.text-button {
|
2019-04-07 11:34:40 +01:00
|
|
|
cursor: pointer;
|
2015-09-02 18:26:33 +01:00
|
|
|
background-color: transparent;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
2017-08-19 15:33:22 +01:00
|
|
|
user-select: none;
|
2019-02-03 13:45:45 +00:00
|
|
|
font-size: 0.75rem;
|
2019-04-07 11:34:40 +01:00
|
|
|
line-height: 1.4em;
|
2023-01-28 16:06:11 +00:00
|
|
|
color: var(--color-link);
|
2019-08-25 12:40:04 +01:00
|
|
|
&:active {
|
2015-09-02 18:26:33 +01:00
|
|
|
outline: 0;
|
|
|
|
}
|
2016-05-14 20:02:00 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-08-25 12:40:04 +01:00
|
|
|
&:hover, &:focus {
|
2023-01-28 16:06:11 +00:00
|
|
|
color: var(--color-link);
|
|
|
|
fill: var(--color-link);
|
2019-08-25 12:40:04 +01:00
|
|
|
}
|
2015-07-12 20:01:42 +01:00
|
|
|
}
|
2022-06-21 15:32:18 +01:00
|
|
|
.text-button.hover-underline:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2015-07-30 22:27:35 +01:00
|
|
|
|
2015-08-05 20:59:39 +01:00
|
|
|
.button.block {
|
|
|
|
width: 100%;
|
2020-04-05 13:07:19 +01:00
|
|
|
text-align: start;
|
2015-08-05 20:59:39 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2023-05-31 16:38:20 +01:00
|
|
|
.button.icon, .icon-button, .text-button.icon {
|
2018-02-17 19:49:00 +00:00
|
|
|
.svg-icon {
|
2020-04-05 13:07:19 +01:00
|
|
|
margin-inline-end: 0;
|
2015-10-10 18:57:52 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-10 12:24:23 +01:00
|
|
|
.icon-button {
|
|
|
|
text-align: center;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
.icon-button:hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
|
|
border-radius: 4px;
|
2024-12-09 13:25:35 +00:00
|
|
|
@include mixins.lightDark(border-color, #DDD, #444);
|
2022-10-10 12:24:23 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2017-02-05 15:28:53 +00:00
|
|
|
.button.svg {
|
2020-04-05 13:07:19 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-12-09 13:25:35 +00:00
|
|
|
padding: vars.$s vars.$m;
|
|
|
|
padding-bottom: (vars.$s - 2px);
|
2021-05-08 11:49:18 +01:00
|
|
|
width: 100%;
|
2017-02-05 15:28:53 +00:00
|
|
|
svg {
|
|
|
|
display: inline-block;
|
|
|
|
width: 24px;
|
2018-03-25 15:52:48 +01:00
|
|
|
height: 24px;
|
2020-04-05 13:07:19 +01:00
|
|
|
bottom: auto;
|
2024-12-09 13:25:35 +00:00
|
|
|
margin-inline-end: vars.$m;
|
2017-02-05 15:28:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-01 20:36:22 +01:00
|
|
|
.button[disabled] {
|
|
|
|
background-color: #BBB;
|
|
|
|
cursor: default;
|
2019-08-25 12:40:04 +01:00
|
|
|
border-color: #CCC;
|
2016-09-01 20:36:22 +01:00
|
|
|
&:hover {
|
|
|
|
background-color: #BBB;
|
|
|
|
cursor: default;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2017-01-21 14:56:47 +00:00
|
|
|
}
|