1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-10 00:46:15 +01:00
fab-manager/app/frontend/src/stylesheets/modules/base/fab-button.scss

76 lines
1.4 KiB
SCSS
Raw Normal View History

.fab-button {
2022-08-03 18:30:29 +02:00
height: 38px;
margin-bottom: 0;
2022-08-03 18:30:29 +02:00
padding: 6px 12px;
display: inline-flex;
align-items: center;
border: 1px solid #c9c9c9;
border-radius: 4px;
background-color: #fbfbfb;
background-image: none;
font-size: 16px;
line-height: 1.5;
text-align: center;
2022-08-03 18:30:29 +02:00
font-weight: normal;
text-decoration: none;
color: black;
white-space: nowrap;
touch-action: manipulation;
cursor: pointer;
user-select: none;
&:hover {
background-color: #f2f2f2;
color: black;
border-color: #aaaaaa;
text-decoration: none;
}
&:active {
color: black;
background-color: #f2f2f2;
border-color: #aaaaaa;
outline: 0;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
2021-02-08 15:28:47 +01:00
&[disabled] {
color: #3a3a3a;
}
&[disabled]:hover {
color: #3a3a3a;
}
&--icon {
margin-right: 0.5em;
2022-08-03 18:30:29 +02:00
display: flex;
}
2022-07-13 18:20:55 +02:00
&--icon-only {
display: flex;
}
2022-07-28 18:13:18 +02:00
// color variants
2022-08-03 18:30:29 +02:00
@mixin colorVariant($color, $textColor) {
border-color: $color;
background-color: $color;
color: $textColor;
2022-07-28 18:13:18 +02:00
&:hover {
2022-08-03 18:30:29 +02:00
border-color: $color;
background-color: $color;
color: $textColor;
2022-07-28 18:13:18 +02:00
opacity: 0.75;
}
}
2022-08-03 18:30:29 +02:00
&.is-info {
@include colorVariant(var(--information), var(--gray-soft-lightest));
}
2022-07-29 10:58:03 +02:00
&.is-black {
2022-08-03 18:30:29 +02:00
@include colorVariant(var(--gray-hard-darkest), var(--gray-soft-lightest));
}
&.is-main {
@include colorVariant(var(--main), var(--gray-soft-lightest));
2022-07-29 10:58:03 +02:00
}
}