Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 1 | .table { |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 2 | position: relative; |
| 3 | z-index: $zindex-dropdown; |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 4 | |
| 5 | td { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 6 | border-top: 1px solid gray("300"); |
| 7 | border-bottom: 1px solid gray("300"); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 8 | &:first-of-type { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 9 | border-left: 1px solid gray("300"); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 10 | } |
| 11 | &:last-of-type { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 12 | border-right: 1px solid gray("300"); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 13 | } |
Dixsie Wolmers | a04d46f | 2020-10-22 06:34:56 -0500 | [diff] [blame] | 14 | vertical-align: middle; |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 15 | |
| 16 | // Table action buttons |
| 17 | .btn-link { |
| 18 | width: 40px; |
| 19 | height: 40px; |
| 20 | padding: 5px !important; |
| 21 | display: inline-flex; |
| 22 | justify-content: center; |
| 23 | align-items: center; |
| 24 | } |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 25 | } |
| 26 | |
Dixsie Wolmers | a04d46f | 2020-10-22 06:34:56 -0500 | [diff] [blame] | 27 | // thead-light added for specificity |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 28 | .thead-light th { |
Dixsie Wolmers | a04d46f | 2020-10-22 06:34:56 -0500 | [diff] [blame] | 29 | vertical-align: middle; |
| 30 | border-top: 1px solid gray("300"); |
| 31 | border-bottom: 1px solid gray("300"); |
| 32 | &:first-of-type { |
| 33 | border-left: 1px solid gray("300"); |
| 34 | } |
| 35 | &:last-of-type { |
| 36 | border-right: 1px solid gray("300"); |
| 37 | } |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 38 | color: theme-color("dark"); |
Sukanya Pandey | fde429e | 2020-09-14 20:48:39 +0530 | [diff] [blame] | 39 | &:focus { |
| 40 | outline: none; |
| 41 | } |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame] | 44 | .status-icon svg { |
| 45 | width: 1rem; |
| 46 | height: auto; |
| 47 | } |
Yoshie Muranaka | 183c275 | 2020-02-12 11:30:49 -0800 | [diff] [blame] | 48 | |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 49 | .b-table-has-details { |
| 50 | td { |
| 51 | border-bottom: none; |
| 52 | } |
| 53 | .table-row-expand svg { |
| 54 | transform: rotate(180deg); |
| 55 | } |
Yoshie Muranaka | 4b0fc1d | 2020-01-06 07:36:16 -0800 | [diff] [blame] | 56 | } |
Yoshie Muranaka | 4b0fc1d | 2020-01-06 07:36:16 -0800 | [diff] [blame] | 57 | |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 58 | .b-table-details { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 59 | background-color: theme-color("light"); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 60 | td { |
| 61 | padding-left: calc(50px + (#{$table-cell-padding} * 2)); |
Sandeepa Singh | 55ef76a | 2021-04-21 15:44:45 +0530 | [diff] [blame^] | 62 | padding-right: calc(50px + (#{$table-cell-padding} * 2)); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 63 | } |
| 64 | dl { |
| 65 | margin: 0; |
| 66 | } |
| 67 | dt { |
Dixsie Wolmers | 25e17a1 | 2021-06-25 08:15:05 -0500 | [diff] [blame] | 68 | float: left; |
| 69 | clear: left; |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 70 | margin-right: $spacer / 2; |
| 71 | } |
| 72 | dd { |
Dixsie Wolmers | 25e17a1 | 2021-06-25 08:15:05 -0500 | [diff] [blame] | 73 | line-height: 1.2 |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 74 | } |
| 75 | } |
| 76 | |
| 77 | .table-row-expand { |
| 78 | width: 50px; |
| 79 | .btn { |
| 80 | padding: 0; |
| 81 | width: 50px; |
| 82 | } |
| 83 | svg { |
Yoshie Muranaka | 01da818 | 2020-07-08 15:46:43 -0700 | [diff] [blame] | 84 | fill: theme-color("dark"); |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 85 | } |
Yoshie Muranaka | 4b0fc1d | 2020-01-06 07:36:16 -0800 | [diff] [blame] | 86 | } |
Sukanya Pandey | fde429e | 2020-09-14 20:48:39 +0530 | [diff] [blame] | 87 | .b-table-sort-icon-left { |
| 88 | background-position: left calc(1.5rem / 2) center !important; |
| 89 | padding-left: calc(1.2rem + 0.65em) !important; |
| 90 | &:focus { |
| 91 | outline: none; |
| 92 | box-shadow: inset 0 0 0 2px theme-color('primary') !important; |
| 93 | } |
| 94 | &:hover { |
| 95 | background-color: theme-color-dark('light'); |
| 96 | } |
| 97 | } |
Mateusz Gapski | 1d2da29 | 2020-09-10 12:07:45 +0200 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | .b-table-sticky-header td { |
| 101 | border-top: none; |
| 102 | } |
| 103 | |
SurenNeware | 5e9c391 | 2020-09-25 15:49:16 +0530 | [diff] [blame] | 104 | // Table stacked style for small screen only |
| 105 | @include media-breakpoint-down(xs) { |
| 106 | .b-table-stacked-sm { |
| 107 | border: 1px solid gray("300"); |
| 108 | |
| 109 | tr { |
| 110 | |
| 111 | &:not(:first-child) > td[aria-colindex='1'] { |
| 112 | border-top: 1px solid gray("300"); |
| 113 | padding-top: 0.625rem; |
| 114 | } |
| 115 | |
| 116 | &:not(.b-table-empty-row) { |
| 117 | position: relative; // Restrict background color to get zebra striping for the row |
| 118 | |
| 119 | &::before, |
| 120 | &::after { |
| 121 | position: absolute; |
| 122 | top: 0; |
| 123 | height: 100%; |
| 124 | z-index: -1; |
| 125 | } |
| 126 | |
| 127 | &:before { |
| 128 | content: ''; |
| 129 | background-color: gray("200"); |
| 130 | width: 40%; |
| 131 | border-right: 1px solid gray("300"); |
| 132 | } |
| 133 | |
| 134 | &:after { |
| 135 | content: ''; |
| 136 | right: 0; |
| 137 | width: 60%; |
| 138 | } |
| 139 | |
| 140 | &:nth-child(even)::after { |
| 141 | background-color: gray("100"); // Zebra striping for the row |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | td { |
| 146 | border: 0; |
| 147 | padding: 0.75rem; |
| 148 | text-align: left !important; |
| 149 | |
| 150 | &:last-of-type { |
| 151 | border-right: 0; |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | .table.b-table.b-table-stacked-sm > tbody > tr > [data-label] { |
| 158 | &::before { |
| 159 | text-align: left; |
| 160 | padding-left: $spacer /2; |
| 161 | } |
| 162 | |
| 163 | > div { |
| 164 | padding-left: 1rem; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | .table.b-table.b-table-stacked-sm > tbody > tr > :first-child { |
| 169 | border-top-width: 1px; |
| 170 | } |
SurenNeware | dc618a8 | 2020-08-17 18:42:20 +0530 | [diff] [blame] | 171 | } |