UNPKG

1.1 kBSCSSView Raw
1//
2// Copyright IBM Corp. 2016, 2018
3//
4// This source code is licensed under the Apache-2.0 license found in the
5// LICENSE file in the root directory of this source tree.
6//
7
8@import '../../globals/scss/helper-mixins';
9@import '../../globals/scss/vendor/@carbon/elements/scss/import-once/import-once';
10@import '../../globals/scss/vars';
11
12@include exports('data-table-v2-skeleton') {
13 .#{$prefix}--data-table-v2.#{$prefix}--skeleton {
14 th {
15 border-bottom: 1px solid $brand-01;
16
17 &:nth-child(3n + 1) {
18 width: 10%;
19 }
20
21 &:nth-child(3n + 2) {
22 width: 30%;
23 }
24
25 &:nth-child(3n + 3) {
26 width: 15%;
27 }
28 }
29
30 th span,
31 td span {
32 @include skeleton;
33 width: 75%;
34 height: 1rem;
35 display: block;
36 }
37
38 tr:hover {
39 td {
40 border-color: $ui-03;
41 background: transparent;
42
43 &:first-of-type,
44 &:last-of-type {
45 border-color: $ui-03;
46 }
47 }
48 }
49 }
50
51 .#{$prefix}--data-table-v2.#{$prefix}--skeleton .#{$prefix}--table-sort-v2 {
52 pointer-events: none;
53 }
54}