2020-04-01 21:36:59 +02:00
|
|
|
.button--primary,
|
|
|
|
.button--secondary,
|
|
|
|
.button--alt {
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
2020-05-11 17:54:39 +02:00
|
|
|
}
|
2020-04-30 17:42:40 +02:00
|
|
|
|
2020-05-11 17:54:39 +02:00
|
|
|
.button--primary,
|
|
|
|
.button--secondary,
|
|
|
|
.button--alt,
|
|
|
|
.button--link {
|
|
|
|
&:focus {
|
|
|
|
@include focus;
|
|
|
|
z-index: 2; // Ensure focus box-shadow is always visible on every button side
|
2020-04-30 17:42:40 +02:00
|
|
|
}
|
2020-04-01 21:36:59 +02:00
|
|
|
}
|
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.button--uri-indicator {
|
2019-11-22 22:13:00 +01:00
|
|
|
@extend .button--link;
|
2020-01-20 17:47:03 +01:00
|
|
|
color: var(--color-text-subtitle);
|
2019-02-20 06:20:29 +01:00
|
|
|
max-width: 100%;
|
2019-02-18 18:24:56 +01:00
|
|
|
text-align: left;
|
|
|
|
text-overflow: ellipsis;
|
2019-02-15 02:52:10 +01:00
|
|
|
transition: color 0.2s;
|
|
|
|
|
2019-10-15 01:38:15 +02:00
|
|
|
.markdown-preview & {
|
2019-10-15 01:08:29 +02:00
|
|
|
height: initial;
|
|
|
|
vertical-align: initial;
|
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button--close {
|
2019-11-22 22:13:00 +01:00
|
|
|
z-index: 1;
|
2019-06-11 20:10:58 +02:00
|
|
|
position: absolute;
|
|
|
|
top: var(--spacing-miniscule);
|
|
|
|
right: var(--spacing-miniscule);
|
|
|
|
padding: 0.3rem;
|
|
|
|
transition: all var(--transition-duration) var(--transition-style);
|
2019-08-13 07:35:13 +02:00
|
|
|
border-radius: var(--card-radius);
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text);
|
2020-01-14 16:49:22 +01:00
|
|
|
font-size: var(--font-body);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
|
|
|
|
&:hover {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-button-primary-text);
|
|
|
|
background-color: var(--color-button-primary-bg);
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2019-12-18 06:27:08 +01:00
|
|
|
|
2020-05-11 17:54:39 +02:00
|
|
|
&:focus {
|
|
|
|
@include focus;
|
|
|
|
}
|
|
|
|
|
2019-12-18 06:27:08 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
padding: var(--spacing-medium) var(--spacing-small);
|
|
|
|
}
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
|
2020-04-13 21:16:07 +02:00
|
|
|
.button--header-close {
|
|
|
|
background-color: var(--color-primary-alt);
|
|
|
|
padding: var(--spacing-small);
|
|
|
|
}
|
|
|
|
|
2019-08-14 20:09:45 +02:00
|
|
|
.button--download-link {
|
|
|
|
.button__label {
|
|
|
|
white-space: normal;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
.button__content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
2019-07-21 23:31:22 +02:00
|
|
|
height: 100%;
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
.button__label {
|
2019-06-17 22:32:38 +02:00
|
|
|
white-space: nowrap;
|
2019-06-11 20:10:58 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Handle icons on the left or right side of the button label
|
|
|
|
svg + .button__label,
|
|
|
|
.button__label + svg {
|
2019-07-21 23:31:22 +02:00
|
|
|
margin-left: var(--spacing-small);
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
2020-01-02 17:30:27 +01:00
|
|
|
|
|
|
|
.button-toggle {
|
|
|
|
padding: 0 var(--spacing-medium);
|
|
|
|
height: var(--height-button);
|
|
|
|
font-size: var(--font-base);
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
border-left-width: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
2020-01-02 21:36:03 +01:00
|
|
|
background-color: var(--color-card-background);
|
2020-02-10 20:43:24 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
padding: var(--spacing-medium) var(--spacing-small);
|
|
|
|
}
|
2020-01-02 17:30:27 +01:00
|
|
|
svg {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
border-top-right-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
2020-01-03 20:11:47 +01:00
|
|
|
margin-right: var(--spacing-small);
|
2020-01-02 17:30:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-toggle--active {
|
|
|
|
color: var(--color-primary);
|
|
|
|
background-color: var(--color-primary-alt);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
text-decoration: none;
|
2020-05-11 17:54:39 +02:00
|
|
|
background-color: var(--color-primary-alt);
|
2020-01-02 17:30:27 +01:00
|
|
|
}
|
|
|
|
}
|
2020-02-10 20:43:24 +01:00
|
|
|
|
|
|
|
.button-toggle--custom {
|
|
|
|
color: var(--color-primary);
|
|
|
|
svg {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|