UNPKG

1.52 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-skeleton') {
13 .#{$prefix}--data-table.#{$prefix}--skeleton {
14 th {
15 padding-left: 1rem;
16 vertical-align: middle;
17 }
18
19 th span,
20 td span {
21 @include skeleton;
22
23 display: block;
24
25 width: rem(64px);
26 height: rem(16px);
27 }
28
29 tr:hover {
30 td {
31 background: transparent;
32 border-color: $ui-03;
33
34 &:first-of-type,
35 &:last-of-type {
36 border-color: $ui-03;
37 }
38 }
39 }
40 }
41
42 .#{$prefix}--data-table.#{$prefix}--skeleton .#{$prefix}--table-sort-v2 {
43 pointer-events: none;
44 }
45
46 .#{$prefix}--data-table.#{$prefix}--skeleton th span {
47 background: $skeleton-02;
48 }
49
50 .#{$prefix}--data-table.#{$prefix}--skeleton th span::before {
51 background: $skeleton-01;
52 }
53
54 .#{$prefix}--data-table-container.#{$prefix}--skeleton
55 .#{$prefix}--data-table-header__title {
56 @include skeleton;
57
58 width: rem(120px);
59 height: rem(24px);
60 }
61
62 .#{$prefix}--data-table-container.#{$prefix}--skeleton
63 .#{$prefix}--data-table-header__description {
64 @include skeleton;
65
66 width: rem(160px);
67 height: rem(16px);
68
69 margin-top: $spacing-03;
70 }
71}