+
{templates.map(t => (
* {
+ @include no-user-select();
+ padding-left: 6px;
+ margin-right: $tvmp-table-gutter;
+ &:last-child {margin-right: 0;}
+ }
+}
+
+/* Table Body */
+.template-variable-manager--table-rows {
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+}
+.template-variable-manager--table-row {
+ border-radius: 4px;
+ display: flex;
+ align-items: flex-start;
+ padding: $tvmp-table-gutter;
+ transition: background-color 0.25s ease;
+
+ &.editing {
+ background-color: $g3-castle;
}
- .template-variable-manager--body {
- border-radius: 0 0 $radius $radius;
- min-height: 150px;
- @include gradient-v($g2-kevlar,$g0-obsidian);
+ > * {
+ margin-right: $tvmp-table-gutter;
+ &:last-child {margin-right: 0;}
+ }
+}
+
+.tvm-input,
+.form-control.tvm-input-edit {
+ font-weight: 600 !important;
+ width: 100% !important;
+ padding: 0 6px !important;
+ font-family: $code-font;
+ color: $c-comet !important;
+ height: 30px !important;
+
+ &:focus,
+ &:focus:hover {
+ color: $c-comet !important;
+ }
+}
+.tvm-input {
+ font-size: 12px;
+ line-height: 26px;
+ padding: 0 8px;
+ border-radius: $radius;
+ border: 2px solid $g5-pepper;
+ background-color: $g2-kevlar;
+ transition:
+ border-color 0.25s ease;
+
+ &:hover {
+ cursor: text;
+ border-color: $g6-smoke;
+ }
+}
+.tvm-values,
+.tvm-values-empty {
+ width: 100%;
+ white-space: pre-wrap;
+ overflow: auto;
+ font-size: 12px;
+ font-weight: 600;
+ font-family: $code-font;
+ color: $c-pool;
+ padding: 0 $tvmp-table-gutter;
+ min-height: 30px;
+ max-height: 90px;
+ line-height: 30px;
+ border-radius: $radius;
+ background-color: $g5-pepper;
+ margin-top: 2px;
+ @include custom-scrollbar-round($g5-pepper, $g7-graphite);
+}
+.tvm-values-empty {
+ color: $g9-mountain;
+ font-style: italic;
+}
+.tvm-csv-instructions {
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 12px;
+ font-weight: 600;
+ font-family: $code-font;
+ padding: 0 $tvmp-table-gutter;
+ height: 30px;
+ line-height: 30px;
+ border-radius: $radius;
+ background-color: $g5-pepper;
+ margin-bottom: 2px;
+ color: $g9-mountain;
+ font-style: italic;
+}
+
+.tvm-query-builder {
+ display: flex;
+ align-items: center;
+ height: 30px;
+
+ > * {margin-right: 2px;}
+ > *:last-child {margin-right: 0;}
+
+ .dropdown {
+ flex: 1 0 0;
+
+ & > .dropdown-toggle {width: 100%;}
+ }
+}
+.tvm-query-builder--text {
+ @include no-user-select();
+ background-color: $g5-pepper;
+ border-radius: $radius-small;
+ padding: 0 $tvmp-table-gutter;
+ white-space: nowrap;
+ height: 30px;
+ line-height: 30px;
+ color: $c-pool;
+ font-size: 12px;
+ font-weight: 600;
+ font-family: $code-font;
+}
+.tvm-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+
+ .btn-edit {
+ order: 1;
+ width: 30px;
+ text-align: center;
+ padding-left: 0 !important;
+ padding-right: 0 !important;
+ > span.icon {margin: 0 !important;}
}
- .dropdown-toggle {
- width: 150px;
+ > .btn {margin-left: $tvmp-table-gutter;}
+
+ /* Override confirm buttons styles */
+ /* Janky, but doing this quick & dirty for now */
+ .btn-danger {
+ order: 2;
+ height: 30px !important;
+ line-height: 30px !important;
+ padding: 0 9px !important;
+ font-size: 13px;
+ }
+ .confirm-buttons > .btn {
+ height: 30px !important;
+ width: 30px !important;
+ margin-left: $tvmp-table-gutter !important;
+ font-size: 13px;
+ padding: 0 !important;
+ }
+ /* Hide the edit button when confirming a delete */
+ .confirm-buttons + .btn-edit {
+ display: none;
}
}
\ No newline at end of file
diff --git a/ui/src/style/pages/overlay-technology.scss b/ui/src/style/pages/overlay-technology.scss
index 53e0b6d4dd..83b254ec83 100644
--- a/ui/src/style/pages/overlay-technology.scss
+++ b/ui/src/style/pages/overlay-technology.scss
@@ -64,29 +64,29 @@ $overlay-z: 100;
text-transform: uppercase;
@include no-user-select;
}
- .confirm-buttons {
- margin-left: 32px;
- }
- .confirm-buttons .btn {
- height: 30px;
- line-height: 30px;
- padding: 0 9px;
+}
+.overlay-controls .confirm-buttons {
+ margin-left: 32px;
+}
+.overlay-controls .confirm-buttons .btn {
+ height: 30px;
+ line-height: 30px;
+ padding: 0 9px;
- & > span.icon {
- font-size: 16px;
+ & > span.icon {
+ font-size: 16px;
+ }
+}
+.overlay-controls .toggle {
+
+ .toggle-btn {
+ background-color: $overlay-controls-bg;
+
+ &:hover {
+ background-color: $g4-onyx;
}
- }
- .overlay-controls .toggle {
-
- .toggle-btn {
- background-color: $overlay-controls-bg;
-
- &:hover {
- background-color: $g4-onyx;
- }
- &.active {
- background-color: $g5-pepper;
- }
+ &.active {
+ background-color: $g5-pepper;
}
}
}