212 lines
5.4 KiB
CSS
212 lines
5.4 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-Table-headCell {
|
|
color: var(--spectrum-table-header-text-color);
|
|
background-color: var(--spectrum-table-header-background-color);
|
|
|
|
&.is-sortable {
|
|
.spectrum-Table-sortedIcon {
|
|
color: var(--spectrum-table-header-sort-icon-color);
|
|
}
|
|
|
|
&:hover {
|
|
color: var(--spectrum-table-header-text-color-hover);
|
|
|
|
.spectrum-Table-sortedIcon {
|
|
color: var(--spectrum-table-header-sort-icon-color-hover);
|
|
}
|
|
}
|
|
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
color: var(--spectrum-table-header-text-color-key-focus);
|
|
|
|
.spectrum-Table-sortedIcon {
|
|
color: var(--spectrum-table-header-sort-icon-color-key-focus);
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
color: var(--spectrum-table-header-text-color-down);
|
|
|
|
.spectrum-Table-sortedIcon {
|
|
color: var(--spectrum-table-header-sort-icon-color-down);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-Table-cell,
|
|
.spectrum-Table-headCell {
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
&::before {
|
|
box-shadow: inset 0 0 0 2px
|
|
var(--spectrum-table-cell-border-color-key-focus);
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-Table-body {
|
|
border-style: solid;
|
|
border-color: var(--spectrum-table-border-color);
|
|
background-color: var(--spectrum-table-background-color);
|
|
|
|
&.is-drop-target {
|
|
border-color: var(--spectrum-alias-border-color-focus);
|
|
box-shadow: 0 0 0 1px var(--spectrum-alias-border-color-focus);
|
|
|
|
&::before {
|
|
background-color: var(--spectrum-alias-highlight-selected);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* The tbody tag doesn't allow setting a border-radius, so these hacks are to make that work
|
|
by putting the border on the individual cells instead. */
|
|
tbody.spectrum-Table-body {
|
|
border: none;
|
|
|
|
.spectrum-Table-row {
|
|
border-block-start: none;
|
|
}
|
|
|
|
.spectrum-Table-cell {
|
|
border-block-start: 1px solid var(--spectrum-table-border-color);
|
|
}
|
|
|
|
.spectrum-Table-row .spectrum-Table-cell:first-child {
|
|
border-inline-start: 1px solid var(--spectrum-table-border-color);
|
|
}
|
|
|
|
.spectrum-Table-row .spectrum-Table-cell:last-child {
|
|
border-inline-end: 1px solid var(--spectrum-table-border-color);
|
|
}
|
|
|
|
.spectrum-Table-row:last-child .spectrum-Table-cell {
|
|
border-block-end: 1px solid var(--spectrum-table-border-color);
|
|
}
|
|
}
|
|
|
|
.spectrum-Table-row {
|
|
border-block-end: 1px solid var(--spectrum-table-border-color);
|
|
background-color: var(--spectrum-table-row-background-color);
|
|
|
|
&:hover {
|
|
background-color: var(--spectrum-table-row-background-color-hover);
|
|
}
|
|
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
background-color: var(--spectrum-table-row-background-color-hover);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--spectrum-table-row-background-color-down);
|
|
}
|
|
|
|
&.is-selected {
|
|
background-color: var(--spectrum-table-row-background-color-selected);
|
|
|
|
&:hover {
|
|
background-color: var(
|
|
--spectrum-table-row-background-color-selected-hover
|
|
);
|
|
}
|
|
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
background-color: var(
|
|
--spectrum-table-row-background-color-selected-key-focus
|
|
);
|
|
}
|
|
}
|
|
|
|
&.is-drop-target {
|
|
&::before {
|
|
box-shadow: inset 0 0 0 2px var(--spectrum-alias-border-color-focus);
|
|
background-color: var(--spectrum-alias-highlight-selected);
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-Table-cell {
|
|
color: var(--spectrum-table-cell-text-color);
|
|
background-color: var(--spectrum-table-cell-background-color);
|
|
}
|
|
|
|
.spectrum-Table-cell--divider {
|
|
border-inline-end-style: solid;
|
|
border-inline-end-color: var(--spectrum-table-divider-border-color);
|
|
}
|
|
|
|
.spectrum-Table--quiet {
|
|
.spectrum-Table-body {
|
|
border-width: 1px 0;
|
|
background-color: var(--spectrum-table-quiet-cell-background-color);
|
|
|
|
&.is-drop-target {
|
|
box-shadow: none;
|
|
border-color: transparent;
|
|
|
|
&::before {
|
|
box-shadow: inset 0 0 0 2px var(--spectrum-alias-border-color-focus);
|
|
}
|
|
}
|
|
}
|
|
|
|
.spectrum-Table-row {
|
|
background-color: var(--spectrum-table-quiet-row-background-color);
|
|
|
|
&:hover {
|
|
background-color: var(--spectrum-table-quiet-row-background-color-hover);
|
|
}
|
|
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
background-color: var(--spectrum-table-quiet-row-background-color-hover);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--spectrum-table-quiet-row-background-color-down);
|
|
}
|
|
|
|
&.is-selected {
|
|
background-color: var(
|
|
--spectrum-table-quiet-row-background-color-selected
|
|
);
|
|
|
|
&:hover {
|
|
background-color: var(
|
|
--spectrum-table-quiet-row-background-color-selected-hover
|
|
);
|
|
}
|
|
|
|
&:focus-ring,
|
|
&.is-focused {
|
|
background-color: var(
|
|
--spectrum-table-quiet-row-background-color-selected-key-focus
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
tbody.spectrum-Table-body {
|
|
.spectrum-Table-row .spectrum-Table-cell:first-child,
|
|
.spectrum-Table-row .spectrum-Table-cell:last-child {
|
|
border-inline-start: none;
|
|
border-inline-end: none;
|
|
}
|
|
}
|
|
}
|