open-nomad/ui/app/styles/components/secure-variables.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

187 lines
2.8 KiB
SCSS
Raw Normal View History

.section.single-variable {
margin-top: 1.5rem;
.back-link {
text-decoration: none;
color: #363636;
position: relative;
top: 4px;
}
}
.variable-title {
.toggle {
font-size: 0.8rem;
margin-left: 1rem;
position: relative;
top: -0.25rem;
.toggler {
margin-right: 0.25rem;
}
}
}
.new-secure-variables {
& > div {
margin-bottom: 1rem;
}
.path-input {
ui: add namespace filter to `variables.index` (#13618) * ui: add namespace filter feature ui: add namespace filtering to variables.index test: namespace filter refact: fix action in template ui: move data fetching and query param logic to ui: controller query parameter logic ui: prevent from forwarding query param ui: create variables controller refact: use dependency injection for controlling parent qp chore: clean-up reset in route chore: clean-up reset in route * ui: add namespace filter to secure var form (#13629) ui: update variable factory to accept namespaces refact: update api to accept disabled ui: add namespace setting logic to form refact: remove debugger refact: get correct selectors for ui: move data loading to namespace-filter component chore: prettify template ui: update factory to handle namespace setting refact: remove inline styling for grid class * ui: fix placement of filter in `SecureVariablesForm` (#13762) * refact: conditionally render css class * chore: remove unused CSS property * refact: edit path-input class to prevent textarea override * refact: inject missing store service (#13763) * chore: patch fixes for when no default namespace is available (#13782) * test: add tests for namespace filtering conditions (#13816) * test: add tests for namespace filtering and namespaces appearing in form * patch namespace related issue to saving and querying (#13825) * refact: use namespace id, not entity * refact: update adapter to edit request to include qp * ui: early exit if no snapshot * refact: test passes wrong interface to method * chore: add missing url update URL builder * refact: model in doesn't have absolutePath * Align error message * chore: update tests (#13905) * chore: patch brittle tests with better selectors * chore: update assertion count Co-authored-by: Phil Renaud <phil@riotindustries.com>
2022-07-22 20:05:35 +00:00
height: 2.25em;
&:disabled {
background-color: #f5f5f5;
}
&.error {
color: $red;
border-color: $red;
}
}
.duplicate-path-error {
position: relative;
animation: slide-in 0.3s ease-out;
}
ui: add namespace filter to `variables.index` (#13618) * ui: add namespace filter feature ui: add namespace filtering to variables.index test: namespace filter refact: fix action in template ui: move data fetching and query param logic to ui: controller query parameter logic ui: prevent from forwarding query param ui: create variables controller refact: use dependency injection for controlling parent qp chore: clean-up reset in route chore: clean-up reset in route * ui: add namespace filter to secure var form (#13629) ui: update variable factory to accept namespaces refact: update api to accept disabled ui: add namespace setting logic to form refact: remove debugger refact: get correct selectors for ui: move data loading to namespace-filter component chore: prettify template ui: update factory to handle namespace setting refact: remove inline styling for grid class * ui: fix placement of filter in `SecureVariablesForm` (#13762) * refact: conditionally render css class * chore: remove unused CSS property * refact: edit path-input class to prevent textarea override * refact: inject missing store service (#13763) * chore: patch fixes for when no default namespace is available (#13782) * test: add tests for namespace filtering conditions (#13816) * test: add tests for namespace filtering and namespaces appearing in form * patch namespace related issue to saving and querying (#13825) * refact: use namespace id, not entity * refact: update adapter to edit request to include qp * ui: early exit if no snapshot * refact: test passes wrong interface to method * chore: add missing url update URL builder * refact: model in doesn't have absolutePath * Align error message * chore: update tests (#13905) * chore: patch brittle tests with better selectors * chore: update assertion count Co-authored-by: Phil Renaud <phil@riotindustries.com>
2022-07-22 20:05:35 +00:00
.path-namespace {
display: grid;
grid-template-columns: 6fr 1fr;
gap: 0 1rem;
}
.key-value {
display: grid;
grid-template-columns: 1fr 4fr 130px;
gap: 0 1rem;
align-items: end;
input.error {
color: $red;
border-color: $red;
}
.value-label {
display: grid;
grid-template-columns: 1fr auto;
& > span {
grid-column: -1 / 1;
}
}
button.show-hide-values {
height: 100%;
box-shadow: none;
margin-left: -2px;
border-color: $grey-blue;
}
button.add-more[disabled] {
border-color: #dbdbdb;
}
.key-value-error {
grid-column: -1 / 1;
position: relative;
animation: slide-in 0.3s ease-out;
margin: 0;
}
}
.editor-wrapper {
&.error {
.CodeMirror {
box-shadow: 0 0 0 3px $red;
}
.help {
padding: 1rem 0;
font-size: 1rem;
}
}
}
.notification.conflict {
color: $text;
p {
margin-bottom: 1rem;
}
pre {
background: black;
color: $white;
max-height: 500px;
overflow: auto;
code {
height: 100%;
}
}
.options {
margin: 1rem 0;
}
}
}
table.path-tree {
tr {
cursor: pointer;
&.inaccessible {
cursor: not-allowed;
}
svg {
margin-bottom: -2px;
margin-right: 10px;
}
}
}
.section .notification.related-entities {
--blue: #1563ff;
display: flex;
align-items: center;
gap: 0.5rem;
&.notification {
align-items: center;
}
a {
color: $blue;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
}
.related-entities-hint {
margin: 0.5rem 0;
code {
background-color: lighten($grey-lighter, 8%);
border: 1px solid $grey-lighter;
padding: 0 0.25rem;
border-radius: 4px;
}
}
table.variable-items {
// table-layout: fixed;
td.value-cell {
width: 80%;
& > div {
display: grid;
grid-template-columns: auto auto 1fr;
gap: 0.5rem;
}
}
}
@keyframes slide-in {
0% {
top: 10px;
opacity: 0;
}
100% {
top: 0px;
opacity: 1;
}
}