mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
112 lines
2.1 KiB
Plaintext
112 lines
2.1 KiB
Plaintext
/* Copyright 2024, Command Line Inc. */
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
.button {
|
|
padding: 1px;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
|
|
&:focus,
|
|
&.focus {
|
|
border: 1px solid var(--button-focus-border-color);
|
|
}
|
|
|
|
.button-inner {
|
|
background: var(--accent-color);
|
|
border: none;
|
|
cursor: pointer;
|
|
outline: inherit;
|
|
display: flex;
|
|
padding: 8px 20px;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-radius: 6px;
|
|
height: auto;
|
|
line-height: 16px;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
font-size: 14px;
|
|
|
|
color: var(--main-text-color);
|
|
|
|
i {
|
|
fill: var(--main-text-color);
|
|
}
|
|
|
|
&.primary,
|
|
&.secondary {
|
|
color: var(--main-text-color);
|
|
background: var(--accent-color);
|
|
|
|
i {
|
|
fill: var(--main-text-color);
|
|
}
|
|
}
|
|
|
|
&.primary.danger {
|
|
background: var(--error-color);
|
|
}
|
|
|
|
&.primary.warning {
|
|
background: #e6ba1e;
|
|
color: #000000;
|
|
}
|
|
|
|
&.primary.ghost {
|
|
background: none;
|
|
|
|
i {
|
|
fill: var(--accent-color);
|
|
}
|
|
}
|
|
|
|
&.primary.ghost.danger {
|
|
i {
|
|
fill: var(--app-error-color);
|
|
}
|
|
}
|
|
|
|
&.secondary,
|
|
&.link-button {
|
|
background: var(--highlight-bg-color);
|
|
}
|
|
|
|
&.secondary.ghost {
|
|
background: none;
|
|
}
|
|
|
|
&.secondary.danger {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* customs styles here
|
|
*/
|
|
.border-radius-4 {
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.vertical-padding-2 {
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
.horizontal-padding-10 {
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
.font-size-11 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.font-weight-500 {
|
|
font-weight: 500;
|
|
}
|
|
}
|