waveterm/frontend/app/element/button.less

305 lines
6.0 KiB
Plaintext
Raw Normal View History

2024-06-18 06:50:33 +02:00
/* Copyright 2024, Command Line Inc. */
/* SPDX-License-Identifier: Apache-2.0 */
2024-06-18 06:50:33 +02:00
.button {
2024-09-13 07:22:31 +02:00
// override default button appearance
2024-08-20 00:49:40 +02:00
border: 1px solid transparent;
2024-09-13 07:22:31 +02:00
outline: 1px solid transparent;
border: none;
2024-09-13 07:22:31 +02:00
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;
2024-09-13 07:22:31 +02:00
&.solid {
&.green {
color: #000000;
background-color: var(--accent-color);
border: 1px solid #29f200;
&:hover {
color: #000000;
background-color: #29f200;
}
}
2024-06-18 06:50:33 +02:00
&.grey {
background-color: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--main-text-color);
&:hover {
color: var(--main-text-color);
background-color: rgba(255, 255, 255, 0.09);
}
}
&.red {
background-color: #cc0000;
border: 1px solid #fc3131;
color: var(--main-text-color);
&:hover {
background-color: #f93939;
}
}
&.yellow {
color: #000000;
background-color: #c4a000;
border: 1px solid #fce94f;
&:hover {
color: #000000;
background-color: #fce94f;
}
}
2024-09-13 07:22:31 +02:00
}
&.outlined {
background-color: transparent;
&.green {
color: var(--accent-color);
border: 1px solid var(--accent-color);
&:hover {
color: #29f200;
border: 1px solid #29f200;
}
}
&.grey {
border: 1px solid rgba(255, 255, 255, 0.6);
color: rgba(255, 255, 255, 0.6);
&:hover {
color: var(--main-text-color);
border: 1px solid var(--main-text-color);
}
}
&.red {
border: 1px solid #cc0000;
color: #cc0000;
&:hover {
color: #ff3c3c;
border: 1px solid #ff3c3c;
}
2024-06-18 06:50:33 +02:00
}
&.yellow {
color: #c4a000;
border: 1px solid #c4a000;
&:hover {
color: #fce94f;
border: 1px solid #fce94f;
}
}
2024-09-13 07:22:31 +02:00
}
&.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: #29f200;
}
}
&.grey {
border: none;
color: rgba(255, 255, 255, 0.6);
&:hover {
color: var(--main-text-color);
}
}
&.red {
border: none;
color: #cc0000;
&:hover {
color: #fc3131;
}
}
2024-09-16 21:26:06 +02:00
&.yellow {
border: none;
color: #c4a000;
&:hover {
color: #fce94f;
}
2024-09-16 21:26:06 +02:00
}
2024-09-13 07:22:31 +02:00
}
2024-09-13 07:22:31 +02:00
&.disabled {
cursor: default;
2024-09-13 07:22:31 +02:00
opacity: 0.5;
}
2024-09-06 19:33:26 +02:00
2024-09-13 07:22:31 +02:00
&:focus,
&.focus {
outline: 1px solid var(--success-color);
2024-09-13 07:22:31 +02:00
outline-offset: 2px;
}
// customs styles here
2024-09-13 07:22:31 +02:00
&.border-radius-2 {
border-radius: 4px;
}
&.border-radius-3 {
border-radius: 4px;
}
&.border-radius-4 {
border-radius: 4px;
}
&.border-radius-5 {
2024-08-20 00:49:40 +02:00
border-radius: 4px;
}
2024-09-13 07:22:31 +02:00
&.border-radius-6 {
border-radius: 4px;
}
&.border-radius-10 {
border-radius: 10px;
}
&.vertical-padding-0 {
padding-top: 0px;
padding-bottom: 0px;
}
&.vertical-padding-1 {
padding-top: 1px;
padding-bottom: 1px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-2 {
2024-08-20 00:49:40 +02:00
padding-top: 2px;
padding-bottom: 2px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-3 {
2024-09-06 19:33:26 +02:00
padding-top: 3px;
padding-bottom: 3px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-4 {
2024-09-06 19:33:26 +02:00
padding-top: 4px;
padding-bottom: 4px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-5 {
2024-09-06 19:33:26 +02:00
padding-top: 5px;
padding-bottom: 5px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-6 {
2024-09-06 19:33:26 +02:00
padding-top: 6px;
padding-bottom: 6px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-7 {
2024-09-06 19:33:26 +02:00
padding-top: 7px;
padding-bottom: 7px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-8 {
2024-09-06 19:33:26 +02:00
padding-top: 8px;
padding-bottom: 8px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-9 {
2024-09-06 19:33:26 +02:00
padding-top: 9px;
padding-bottom: 9px;
}
2024-09-13 07:22:31 +02:00
&.vertical-padding-10 {
2024-09-06 19:33:26 +02:00
padding-top: 10px;
padding-bottom: 10px;
}
&.horizontal-padding-0 {
padding-left: 0px;
padding-right: 0px;
}
&.horizontal-padding-1 {
padding-left: 1px;
padding-right: 1px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-2 {
2024-09-06 19:33:26 +02:00
padding-left: 2px;
padding-right: 2px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-3 {
2024-09-06 19:33:26 +02:00
padding-left: 3px;
padding-right: 3px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-4 {
2024-09-06 19:33:26 +02:00
padding-left: 4px;
padding-right: 4px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-5 {
2024-09-06 19:33:26 +02:00
padding-left: 5px;
padding-right: 5px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-6 {
2024-09-06 19:33:26 +02:00
padding-left: 6px;
padding-right: 6px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-7 {
2024-09-06 19:33:26 +02:00
padding-left: 7px;
padding-right: 7px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-8 {
2024-09-06 19:33:26 +02:00
padding-left: 8px;
padding-right: 8px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-9 {
2024-09-06 19:33:26 +02:00
padding-left: 9px;
padding-right: 9px;
}
2024-09-13 07:22:31 +02:00
&.horizontal-padding-10 {
2024-08-20 00:49:40 +02:00
padding-left: 10px;
padding-right: 10px;
}
2024-08-31 20:57:45 +02:00
2024-09-13 07:22:31 +02:00
&.font-size-11 {
2024-08-31 20:57:45 +02:00
font-size: 11px;
}
2024-09-13 07:22:31 +02:00
&.font-weight-500 {
2024-08-31 20:57:45 +02:00
font-weight: 500;
}
2024-09-13 02:49:57 +02:00
2024-09-13 07:22:31 +02:00
&.font-weight-600 {
font-weight: 600;
2024-09-13 02:49:57 +02:00
}
}