2020-11-22 15:50:07 -05:00
|
|
|
/*
|
2021-01-06 15:37:59 -05:00
|
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
2020-11-22 15:50:07 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2020-09-13 12:04:02 -04:00
|
|
|
// stylelint-disable selector-no-qualifying-type
|
|
|
|
|
|
|
|
//
|
|
|
|
// Base styles
|
|
|
|
//
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
color: $body-color;
|
|
|
|
|
|
|
|
@include hover() {
|
|
|
|
color: $body-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&.focus {
|
|
|
|
box-shadow: $btn-focus-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:disabled):not(.disabled) {
|
|
|
|
&:active,
|
|
|
|
&.active {
|
|
|
|
@include box-shadow($btn-active-box-shadow);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Alternate buttons
|
|
|
|
//
|
|
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.btn-#{$color} {
|
|
|
|
@include button-variant($value, $value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.btn-outline-#{$color} {
|
|
|
|
@include button-outline-variant($value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Link buttons
|
|
|
|
//
|
|
|
|
|
|
|
|
// Make a button look and behave like a link
|
|
|
|
.btn-link {
|
|
|
|
color: $link-color;
|
|
|
|
|
|
|
|
@include hover() {
|
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&.disabled {
|
|
|
|
color: $btn-link-disabled-color;
|
|
|
|
}
|
2021-02-03 16:13:04 -05:00
|
|
|
|
2020-09-13 12:04:02 -04:00
|
|
|
// No need for an active state here
|
|
|
|
}
|