mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
d8edea9fbc
forgot to update .editorconfig to include scss...
167 lines
4.4 KiB
SCSS
167 lines
4.4 KiB
SCSS
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
@use "../mixins.scss";
|
|
|
|
.button {
|
|
// override default button appearance
|
|
border: 1px solid transparent;
|
|
outline: 1px solid transparent;
|
|
border: 1px solid transparent;
|
|
|
|
cursor: pointer;
|
|
display: flex;
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-radius: 6px;
|
|
height: auto;
|
|
line-height: 16px;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
transition: all 0.3s ease;
|
|
|
|
&.solid {
|
|
&.green {
|
|
color: var(--button-text-color);
|
|
background-color: var(--accent-color);
|
|
border: 1px solid var(--button-green-border-color);
|
|
&:hover {
|
|
color: var(--button-text-color);
|
|
background-color: var(--button-green-border-color);
|
|
}
|
|
}
|
|
|
|
&.grey {
|
|
background-color: var(--button-grey-bg);
|
|
border: 1px solid var(--button-grey-bg);
|
|
color: var(--main-text-color);
|
|
&:hover {
|
|
color: var(--main-text-color);
|
|
background-color: var(--button-grey-hover-bg);
|
|
}
|
|
}
|
|
|
|
&.red {
|
|
background-color: var(--button-red-bg);
|
|
border: 1px solid var(--button-red-border-color);
|
|
color: var(--main-text-color);
|
|
&:hover {
|
|
background-color: var(--button-red-hover-bg);
|
|
}
|
|
}
|
|
|
|
&.yellow {
|
|
color: var(--button-text-color);
|
|
background-color: var(--button-yellow-bg);
|
|
border: 1px solid var(--button-yellow-hover-bg);
|
|
&:hover {
|
|
color: var(--button-text-color);
|
|
background-color: var(--button-yellow-hover-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.outlined {
|
|
background-color: transparent;
|
|
&.green {
|
|
color: var(--accent-color);
|
|
border: 1px solid var(--accent-color);
|
|
&:hover {
|
|
color: var(--button-green-border-color);
|
|
border: 1px solid var(--button-green-border-color);
|
|
}
|
|
}
|
|
|
|
&.grey {
|
|
border: 1px solid var(--button-grey-outlined-color);
|
|
color: var(--button-grey-outlined-color);
|
|
&:hover {
|
|
color: var(--main-text-color);
|
|
border: 1px solid var(--main-text-color);
|
|
}
|
|
}
|
|
|
|
&.red {
|
|
border: 1px solid var(--button-red-bg);
|
|
color: var(--button-red-bg);
|
|
&:hover {
|
|
color: var(--button-red-outlined-color);
|
|
border: 1px solid var(--button-red-outlined-color);
|
|
}
|
|
}
|
|
|
|
&.yellow {
|
|
color: var(--button-yellow-bg);
|
|
border: 1px solid var(--button-yellow-bg);
|
|
&:hover {
|
|
color: var(--button-yellow-hover-bg);
|
|
border: 1px solid var(--button-yellow-hover-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.ghost {
|
|
background-color: transparent;
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
|
|
&.green {
|
|
border: none;
|
|
color: var(--accent-color);
|
|
&:hover {
|
|
color: var(--button-green-border-color);
|
|
}
|
|
}
|
|
|
|
&.grey {
|
|
border: none;
|
|
color: var(--button-grey-outlined-color);
|
|
&:hover {
|
|
color: var(--main-text-color);
|
|
}
|
|
}
|
|
|
|
&.red {
|
|
border: none;
|
|
color: var(--button-red-bg);
|
|
&:hover {
|
|
color: var(--button-red-border-color);
|
|
}
|
|
}
|
|
|
|
&.yellow {
|
|
border: none;
|
|
color: var(--button-yellow-bg);
|
|
&:hover {
|
|
color: var(--button-yellow-hover-bg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: default;
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 1px solid var(--success-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
// Include mixins
|
|
@include mixins.border-radius-mixin();
|
|
@include mixins.vertical-padding-mixin();
|
|
@include mixins.horizontal-padding-mixin();
|
|
@include mixins.font-size-mixin();
|
|
@include mixins.font-weight-mixin();
|
|
}
|