122 lines
4.0 KiB
CSS
122 lines
4.0 KiB
CSS
/*
|
|
Copyright 2019 Adobe. All rights reserved.
|
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software distributed under
|
|
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
governing permissions and limitations under the License.
|
|
*/
|
|
|
|
.spectrum-TreeView {
|
|
--spectrum-treeview-item-background-color-selected: var(--spectrum-alias-highlight-selected);
|
|
--spectrum-treeview-item-border-color-selected: var(--spectrum-global-color-blue-500);
|
|
|
|
--spectrum-treeview-item-background-color-quiet-selected: var(--spectrum-alias-highlight-hover);
|
|
--spectrum-treeview-item-border-color-quiet-selected: transparent;
|
|
|
|
/* todo: add missing variables below to DNA */
|
|
--spectrum-treeview-item-icon-color: var(--spectrum-alias-icon-color);
|
|
--spectrum-treeview-item-icon-color-hover: var(--spectrum-alias-icon-color-hover);
|
|
/*--spectrum-treeview-item-icon-color-down: var(--spectrum-alias-icon-color-down);*/ /* not used */
|
|
--spectrum-treeview-item-icon-color-focus: var(--spectrum-alias-icon-color-focus);
|
|
--spectrum-treeview-item-icon-color-selected: var(--spectrum-alias-icon-color-selected-neutral);
|
|
--spectrum-treeview-item-icon-color-disabled: var(--spectrum-alias-icon-color-disabled);
|
|
|
|
/*--spectrum-treeview-item-text-color-down: var(--spectrum-alias-text-color-down);*/ /* not used */
|
|
--spectrum-treeview-item-text-color-focus: var(--spectrum-alias-text-color-down);
|
|
--spectrum-treeview-item-text-color-selected: var(--spectrum-alias-text-color-selected-neutral);
|
|
--spectrum-treeview-item-text-color-disabled: var(--spectrum-alias-text-color-disabled);
|
|
}
|
|
|
|
.spectrum-TreeView-item {
|
|
&.is-disabled {
|
|
> .spectrum-TreeView-itemLink {
|
|
color: var(--spectrum-treeview-item-text-color-disabled);
|
|
|
|
.spectrum-Icon {
|
|
color: var(--spectrum-treeview-item-icon-color-disabled);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-selected {
|
|
> .spectrum-TreeView-itemLink {
|
|
color: var(--spectrum-treeview-item-text-color-selected);
|
|
|
|
&:before {
|
|
background-color: var(--spectrum-treeview-item-background-color-selected);
|
|
border-color: var(--spectrum-treeview-item-border-color-key-focus);
|
|
}
|
|
|
|
.spectrum-TreeView-itemIcon {
|
|
color: var(--spectrum-treeview-item-icon-color-selected);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.is-drop-target {
|
|
> .spectrum-TreeView-itemLink {
|
|
&:before {
|
|
background-color: var(--spectrum-alias-highlight-selected);
|
|
border-color: var(--spectrum-treeview-item-border-color-key-focus);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-TreeView--quiet {
|
|
.spectrum-TreeView-item {
|
|
&.is-selected {
|
|
> .spectrum-TreeView-itemLink {
|
|
&:before {
|
|
background-color: var(--spectrum-treeview-item-background-color-quiet-selected);
|
|
border-color: transparent;
|
|
}
|
|
|
|
&:focus-ring {
|
|
&:before {
|
|
border-color: var(--spectrum-treeview-item-border-color-key-focus);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-TreeView-itemIcon {
|
|
color: var(--spectrum-treeview-item-icon-color);
|
|
}
|
|
|
|
.spectrum-TreeView-itemLink {
|
|
color: var(--spectrum-treeview-item-text-color);
|
|
|
|
&:hover {
|
|
color: var(--spectrum-treeview-item-text-color-hover);
|
|
|
|
&:before {
|
|
background-color: var(--spectrum-treeview-item-background-color-hover);
|
|
}
|
|
|
|
.spectrum-TreeView-itemIcon {
|
|
color: var(--spectrum-treeview-item-icon-color-hover);
|
|
}
|
|
}
|
|
|
|
&:focus-ring {
|
|
color: var(--spectrum-treeview-item-text-color-focus);
|
|
|
|
&::before {
|
|
background-color: var(--spectrum-treeview-item-background-color-key-focus);
|
|
|
|
border-color: var(--spectrum-treeview-item-border-color-key-focus);
|
|
}
|
|
|
|
.spectrum-TreeView-itemIcon {
|
|
color: var(--spectrum-treeview-item-icon-color-focus);
|
|
}
|
|
}
|
|
}
|