antares/src/renderer/scss/main.scss

404 lines
6.2 KiB
SCSS
Raw Normal View History

@import "~spectre.css/src/variables";
2020-05-08 18:02:18 +02:00
@import "variables";
2020-05-15 17:52:59 +02:00
@import "transitions";
2020-06-10 19:29:10 +02:00
@import "data-types";
@import "table-keys";
2020-06-10 19:29:10 +02:00
@import "fake-tables";
2020-05-08 18:02:18 +02:00
@import "mdi-additions";
2020-06-07 14:38:38 +02:00
@import "db-icons";
2021-04-03 11:21:58 +02:00
@import "themes/dark-theme";
@import "themes/light-theme";
@import "~spectre.css/src/spectre";
@import "~spectre.css/src/spectre-exp";
2020-05-11 18:05:34 +02:00
2020-07-24 13:26:56 +02:00
body {
2020-07-31 18:16:28 +02:00
user-select: none;
2020-05-11 18:05:34 +02:00
}
::selection,
option:hover,
option:focus,
option:active,
option:checked {
background-color: $primary-color;
color: $light-color;
}
2020-07-31 18:16:28 +02:00
/* Additions */
2020-05-11 18:05:34 +02:00
@include margin-variant(3, $unit-3);
@include margin-variant(4, $unit-4);
@include padding-variant(3, $unit-3);
@include padding-variant(4, $unit-4);
2020-07-24 13:26:56 +02:00
.p-vcentered {
2020-07-31 18:16:28 +02:00
display: flex !important;
align-items: center;
2020-05-11 18:05:34 +02:00
}
2020-07-24 13:26:56 +02:00
.c-help {
2020-07-31 18:16:28 +02:00
cursor: help;
2020-06-16 18:01:22 +02:00
}
2021-04-19 19:15:06 +02:00
.no-outline {
outline: none !important;
}
.no-radius {
border-radius: 0 !important;
}
.no-border {
outline: none !important;
border: none !important;
box-shadow: none !important;
}
.cut-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.cancellable {
color: transparent !important;
min-height: 0.8rem;
position: relative;
> .mdi,
> .span {
visibility: hidden;
}
&::after {
content: "\2715";
color: $light-color;
font-weight: 700;
top: 36%;
display: block;
height: 0.8rem;
left: 50%;
margin-left: -0.4rem;
margin-top: -0.4rem;
opacity: 1;
padding: 0;
position: absolute;
width: 0.8rem;
z-index: 1;
}
}
2022-04-25 13:45:07 +02:00
.workspace-query-results {
overflow: auto;
white-space: nowrap;
.table {
width: auto;
border-collapse: separate;
.th {
position: sticky;
top: 0;
border: 2px solid;
border-left: none;
border-bottom-width: 2px;
padding: 0;
font-weight: 700;
font-size: 0.7rem;
z-index: 1;
> div {
padding: 0.1rem 0.2rem;
min-width: -webkit-fill-available;
}
}
.td {
border-right: 2px solid;
border-bottom: 2px solid;
padding: 0 0.2rem;
text-overflow: ellipsis;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
font-size: 0.7rem;
position: relative;
&:focus {
outline: none;
}
}
}
}
.workspace-tabs {
align-content: baseline;
.workspace-query-runner {
.workspace-query-runner-footer {
display: flex;
justify-content: space-between;
padding: 0.3rem 0.6rem 0.4rem;
align-items: center;
.workspace-query-buttons {
display: flex;
.btn {
display: flex;
align-self: center;
margin-right: 0.4rem;
}
}
.workspace-query-info {
display: flex;
2021-04-03 11:21:58 +02:00
overflow: hidden;
white-space: nowrap;
> div + div {
padding-left: 0.6rem;
}
}
}
}
}
2021-03-03 19:31:05 +01:00
.process-row .td:last-child {
width: 100%;
}
2020-05-30 12:54:05 +02:00
// Scrollbars
::-webkit-scrollbar {
2020-07-31 18:16:28 +02:00
width: 10px;
height: 10px;
2020-05-30 12:54:05 +02:00
}
2020-07-24 13:26:56 +02:00
2020-05-20 18:00:14 +02:00
// Animations
@keyframes rotation {
2020-07-31 18:16:28 +02:00
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
2020-07-24 13:26:56 +02:00
}
2020-05-20 18:00:14 +02:00
.rotate {
2020-07-31 18:16:28 +02:00
animation: rotation 0.8s infinite linear;
2020-05-20 18:00:14 +02:00
}
2020-07-31 18:16:28 +02:00
/* Override */
2020-07-24 13:26:56 +02:00
.modal {
2020-07-31 18:16:28 +02:00
.modal-container,
.modal-sm .modal-container {
padding: 0;
border-radius: $border-radius;
2020-07-31 18:16:28 +02:00
.modal-header {
padding: 0.4rem 0.8rem;
text-transform: uppercase;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: $border-radius $border-radius 0 0;
.modal-title {
overflow: hidden;
}
2020-07-31 18:16:28 +02:00
}
}
.modal-overlay {
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}
}
#wrapper:not(.no-blur) {
.modal-overlay {
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
2020-05-30 12:54:05 +02:00
}
2020-07-24 13:26:56 +02:00
.tab {
2020-08-21 11:38:00 +02:00
.tab-item {
2021-06-28 18:34:39 +02:00
position: relative;
display: flex;
justify-content: center;
.tab-link {
min-width: 0;
2021-06-29 23:31:18 +02:00
transition: color 0.2s;
}
2021-06-28 18:34:39 +02:00
&.active {
.tab-link {
border-color: transparent;
}
&::after {
width: 100%;
}
}
&::after {
content: "";
height: 2px;
width: 0;
transition: width 0.2s;
background-color: $primary-color;
position: absolute;
bottom: 0;
}
2020-08-21 11:38:00 +02:00
.btn-clear {
margin-top: -0.1rem;
font-size: 0.6rem;
}
}
2020-05-30 12:54:05 +02:00
}
2020-07-24 13:26:56 +02:00
.panel {
2020-07-31 18:16:28 +02:00
border: none;
2020-05-30 12:54:05 +02:00
}
2020-07-24 13:26:56 +02:00
.badge {
2020-07-31 18:16:28 +02:00
&[data-badge],
&:not([data-badge]) {
&::after {
box-shadow: none;
}
}
&.badge-connected::after {
background: $success-color;
}
&.badge-connecting::after {
background: $warning-color;
animation-name: pulse;
animation-duration: 2s;
animation-iteration-count: infinite;
}
&.badge-failed::after {
background: $error-color;
}
2020-05-11 18:05:34 +02:00
}
2020-07-24 13:26:56 +02:00
.form-select {
2020-07-31 18:16:28 +02:00
cursor: pointer;
&.small-select {
height: 21px;
font-size: 0.7rem;
padding: 1px 0.4rem 0;
}
&.select {
2022-05-13 18:20:47 +02:00
&.select--open {
border-color: $primary-color !important;
2022-06-05 17:57:44 +02:00
@include control-shadow();
}
}
}
.select__list {
margin: 0;
2022-06-05 17:57:44 +02:00
li {
margin: 0;
padding: 0.3rem 0.8rem;
.select-sm &,
.small-select & {
padding: 0.05rem 0.3rem;
}
}
}
.select__list-wrapper {
z-index: 401 !important;
border: 1px solid transparent;
border-radius: $border-radius;
2022-06-05 17:57:44 +02:00
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
2022-05-08 13:14:40 +02:00
.select__option--selected {
background: rgba($primary-color, 0.25);
}
.select__option--highlight {
background: $primary-color;
2020-05-11 18:05:34 +02:00
}
2021-02-03 21:53:24 +01:00
.form-input[type="file"] {
overflow: hidden;
}
2020-07-31 18:16:28 +02:00
.input-group .input-group-addon {
z-index: 1;
}
2020-07-24 13:26:56 +02:00
.menu {
2020-07-31 18:16:28 +02:00
font-size: 0.7rem;
.menu-item {
+ .menu-item {
margin-top: 0;
}
}
2020-07-24 13:26:56 +02:00
}
2020-06-03 20:56:44 +02:00
.accordion-body {
max-height: 5000rem !important;
2020-06-10 19:29:10 +02:00
}
.btn-group {
flex-wrap: nowrap;
}
2020-06-10 19:29:10 +02:00
.btn.loading {
> .mdi,
2020-07-31 18:16:28 +02:00
> span {
visibility: hidden;
}
2020-07-24 13:26:56 +02:00
}
2021-06-29 23:31:18 +02:00
.table-dropdown {
.menu {
min-width: 100%;
padding: 0;
.menu-item {
padding: 0;
> a {
margin: 0.2rem;
padding: 0.1rem 0.3rem;
&:hover {
color: inherit;
}
}
}
}
}
// Ace Editor
.ace_editor {
&.ace_autocomplete {
border-radius: $border-radius;
.ace_marker-layer {
.ace_active-line,
.ace_line-hover {
border-radius: $border-radius;
}
}
}
}