playbook_ui 7.14.0.pre.alpha1 → 7.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/playbook/pb_sample_helper.rb +1 -1
  3. data/app/pb_kits/playbook/pb_background/docs/_background_dark.html.erb +3 -0
  4. data/app/pb_kits/playbook/pb_background/docs/_background_dark.jsx +12 -0
  5. data/app/pb_kits/playbook/pb_background/docs/example.yml +2 -0
  6. data/app/pb_kits/playbook/pb_background/docs/index.js +1 -0
  7. data/app/pb_kits/playbook/pb_checkbox/_checkbox.html.erb +0 -1
  8. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +10 -36
  9. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +20 -26
  10. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -5
  11. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +1 -0
  12. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -2
  13. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  14. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_dark.html.erb +1 -0
  15. data/app/pb_kits/playbook/pb_date_range_stacked/docs/_date_range_stacked_dark.jsx +15 -0
  16. data/app/pb_kits/playbook/pb_date_range_stacked/docs/example.yml +4 -0
  17. data/app/pb_kits/playbook/pb_date_range_stacked/docs/index.js +1 -0
  18. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_dark.html.erb +5 -0
  19. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_dark.jsx +26 -0
  20. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +7 -0
  21. data/app/pb_kits/playbook/pb_date_stacked/docs/index.js +2 -0
  22. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.html.erb +1 -0
  23. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +14 -0
  24. data/app/pb_kits/playbook/pb_date_time_stacked/docs/example.yml +4 -0
  25. data/app/pb_kits/playbook/pb_date_time_stacked/docs/index.js +1 -0
  26. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_dark.html.erb +5 -0
  27. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_dark.jsx +28 -0
  28. data/app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml +2 -0
  29. data/app/pb_kits/playbook/pb_date_year_stacked/docs/index.js +1 -0
  30. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +4 -9
  31. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss +7 -12
  32. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +1 -4
  33. data/app/pb_kits/playbook/pb_distribution_bar/docs/example.yml +0 -2
  34. data/app/pb_kits/playbook/pb_distribution_bar/docs/index.js +0 -1
  35. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +1 -12
  36. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +0 -41
  37. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +37 -84
  38. data/app/pb_kits/playbook/pb_filter/templates/_core.html.erb +7 -18
  39. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dark.html.erb +21 -0
  40. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dark.jsx +43 -0
  41. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +5 -0
  42. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +17 -0
  43. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +5 -0
  44. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +2 -0
  45. data/app/pb_kits/playbook/pb_flex/_flex.jsx +9 -25
  46. data/app/pb_kits/playbook/pb_flex/_flex.scss +7 -40
  47. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +2 -6
  48. data/app/pb_kits/playbook/pb_flex/_flex_item.scss +0 -10
  49. data/app/pb_kits/playbook/pb_flex/docs/_description.md +0 -6
  50. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.html.erb +15 -15
  51. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.jsx +15 -17
  52. data/app/pb_kits/playbook/pb_flex/docs/_flex_default.md +1 -3
  53. data/app/pb_kits/playbook/pb_flex/docs/{_flex_justify.html.erb → _flex_horizontal.html.erb} +21 -19
  54. data/app/pb_kits/playbook/pb_flex/docs/{_flex_align.jsx → _flex_horizontal.jsx} +77 -71
  55. data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.html.erb +8 -8
  56. data/app/pb_kits/playbook/pb_flex/docs/_flex_inline.md +1 -5
  57. data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.html.erb +9 -9
  58. data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.jsx +2 -2
  59. data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.html.erb +8 -23
  60. data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.jsx +4 -4
  61. data/app/pb_kits/playbook/pb_flex/docs/_flex_vertical.html.erb +68 -0
  62. data/app/pb_kits/playbook/pb_flex/docs/{_flex_justify.jsx → _flex_vertical.jsx} +99 -41
  63. data/app/pb_kits/playbook/pb_flex/docs/_flex_wrap.jsx +1 -1
  64. data/app/pb_kits/playbook/pb_flex/docs/example.yml +4 -9
  65. data/app/pb_kits/playbook/pb_flex/docs/index.js +2 -4
  66. data/app/pb_kits/playbook/pb_flex/flex.rb +12 -79
  67. data/app/pb_kits/playbook/pb_flex/flex_item.rb +1 -18
  68. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +1 -7
  69. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +3 -0
  70. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +18 -0
  71. data/app/pb_kits/playbook/pb_icon/docs/example.yml +2 -1
  72. data/app/pb_kits/playbook/pb_icon/docs/index.js +1 -0
  73. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color_dark.html.erb +42 -0
  74. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color_dark.jsx +66 -0
  75. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_dark.html.erb +4 -0
  76. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_dark.jsx +17 -0
  77. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes_dark.html.erb +29 -0
  78. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes_dark.jsx +38 -0
  79. data/app/pb_kits/playbook/pb_icon_circle/docs/example.yml +7 -0
  80. data/app/pb_kits/playbook/pb_icon_circle/docs/index.js +3 -0
  81. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align_dark.html.erb +23 -0
  82. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_align_dark.jsx +37 -0
  83. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_dark.html.erb +21 -0
  84. data/app/pb_kits/playbook/pb_icon_value/docs/_icon_value_dark.jsx +35 -0
  85. data/app/pb_kits/playbook/pb_icon_value/docs/example.yml +5 -0
  86. data/app/pb_kits/playbook/pb_icon_value/docs/index.js +2 -0
  87. data/app/pb_kits/playbook/pb_layout/_layout.scss +9 -9
  88. data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes_dark.html.erb +32 -0
  89. data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes_dark.jsx +97 -0
  90. data/app/pb_kits/playbook/pb_layout/docs/example.yml +4 -0
  91. data/app/pb_kits/playbook/pb_layout/docs/index.js +1 -0
  92. data/app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb +43 -0
  93. data/app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.jsx +105 -0
  94. data/app/pb_kits/playbook/pb_popover/docs/_popover_dark.html.erb +25 -0
  95. data/app/pb_kits/playbook/pb_popover/docs/_popover_dark.jsx +51 -0
  96. data/app/pb_kits/playbook/pb_popover/docs/_popover_list_dark.html.erb +13 -0
  97. data/app/pb_kits/playbook/pb_popover/docs/_popover_list_dark.jsx +54 -0
  98. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height_dark.html.erb +25 -0
  99. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height_dark.jsx +57 -0
  100. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index_dark.html.erb +14 -0
  101. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index_dark.jsx +54 -0
  102. data/app/pb_kits/playbook/pb_popover/docs/example.yml +13 -0
  103. data/app/pb_kits/playbook/pb_popover/docs/index.js +5 -0
  104. data/app/pb_kits/playbook/pb_select/_select.scss +4 -6
  105. data/app/pb_kits/playbook/pb_table/_table.jsx +0 -8
  106. data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.html.erb +4 -56
  107. data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.jsx +3 -64
  108. data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -3
  109. data/app/pb_kits/playbook/pb_table/table.rb +1 -8
  110. data/app/pb_kits/playbook/pb_timestamp/_timestamp.html.erb +4 -6
  111. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +16 -92
  112. data/app/pb_kits/playbook/pb_timestamp/_timestamp.scss +1 -12
  113. data/app/pb_kits/playbook/pb_timestamp/docs/_description.md +1 -1
  114. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.jsx +18 -26
  115. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.html.erb +1 -21
  116. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx +8 -40
  117. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx +4 -12
  118. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_align.html.erb +54 -0
  119. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_align.jsx +73 -0
  120. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx +18 -26
  121. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_align.html.erb +177 -0
  122. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_align.jsx +209 -0
  123. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.html.erb +21 -0
  124. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.jsx +28 -6
  125. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_align.html.erb +123 -0
  126. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_align.jsx +146 -0
  127. data/app/pb_kits/playbook/pb_timestamp/docs/example.yml +0 -8
  128. data/app/pb_kits/playbook/pb_timestamp/docs/index.js +0 -4
  129. data/app/pb_kits/playbook/pb_timestamp/timestamp.rb +1 -83
  130. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +4 -2
  131. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size_dark.html.erb +21 -0
  132. data/app/pb_kits/playbook/pb_user_badge/docs/_user_badge_size_dark.jsx +36 -0
  133. data/app/pb_kits/playbook/pb_user_badge/docs/index.js +1 -0
  134. data/lib/playbook/version.rb +1 -1
  135. metadata +57 -31
  136. data/app/pb_kits/playbook/pb_checkbox/checkbox.test.js +0 -51
  137. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +0 -77
  138. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.jsx +0 -78
  139. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.html.erb +0 -4
  140. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.jsx +0 -18
  141. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +0 -1
  142. data/app/pb_kits/playbook/pb_flex/docs/_flex_align.html.erb +0 -101
  143. data/app/pb_kits/playbook/pb_flex/docs/_flex_align.md +0 -7
  144. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +0 -33
  145. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +0 -75
  146. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +0 -9
  147. data/app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb +0 -49
  148. data/app/pb_kits/playbook/pb_flex/docs/_flex_item.md +0 -11
  149. data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +0 -113
  150. data/app/pb_kits/playbook/pb_flex/docs/_flex_justify.md +0 -7
  151. data/app/pb_kits/playbook/pb_flex/docs/_flex_reverse.md +0 -5
  152. data/app/pb_kits/playbook/pb_flex/docs/_flex_spacing.md +0 -7
  153. data/app/pb_kits/playbook/pb_flex/docs/_flex_wrap.md +0 -5
  154. data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +0 -135
  155. data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +0 -135
  156. data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +0 -135
@@ -1,5 +0,0 @@
1
- ##### Prop
2
-
3
- * `reverse` | **Type**: Boolean
4
-
5
- - When set to `true` this prop will reverse the order of items in the flex container.
@@ -1,7 +0,0 @@
1
- ##### Prop
2
-
3
- *ATTENTION* - the spacing prop will be deprecated & renamed in the future.
4
-
5
- * **Deprecated Prop**: `spacing` | **Type**: String | **Values**: none | around | evenly | between
6
-
7
- * **New Prop**: `justify` | **Type**: String | **Values**: none | around | evenly | between
@@ -1,5 +0,0 @@
1
- ##### Prop
2
-
3
- * `wrap` | **Type**: Boolean
4
-
5
- - When set to `true` this prop will move the next item in flex container to a new line if there is no more room.
@@ -1,135 +0,0 @@
1
- @import "../../tokens/border_radius";
2
- @import "../../pb_caption/caption_mixin";
3
-
4
- @media only screen and (max-width: $screen-xl-min) {
5
- [class^=pb_table] {
6
- &.table-sm.table-collapse-lg,
7
- &.table-md.table-collapse-lg,
8
- &.table-lg.table-collapse-lg {
9
- width: 100%;
10
- background: none !important;
11
-
12
- thead {
13
- tr {
14
- left: -9999px;
15
- position: absolute;
16
- top: -9999px;
17
-
18
- th {
19
- display: block;
20
- visibility: visible;
21
- }
22
- }
23
- }
24
- tbody {
25
- tr {
26
- td {
27
- display: block;
28
- visibility: visible;
29
- border-left-width: 1px !important;
30
- border-right-width: 1px !important;
31
- border-bottom-width: 0 !important;
32
- border-color: $border_light !important;
33
- min-height: 2.2em;
34
- position: relative;
35
- text-align:left;
36
- white-space: normal;
37
- &:before {
38
- content: attr(data-title);
39
- @include caption;
40
- width: 100% !important;
41
- white-space: nowrap !important;
42
- text-overflow: ellipsis !important;
43
- position: relative !important;
44
- top: 0 !important;
45
- left: 0 !important;
46
- height: 100% !important;
47
- padding-left: 0 !important;
48
- display: block !important;
49
- }
50
-
51
- &:first-child {
52
- margin-top: $space_md !important;
53
- border-top-width: 1px !important;
54
- border-top-color: $border_light !important;
55
- border-radius: $border_rad_light $border_rad_light 0 0;
56
- }
57
-
58
- &:last-child {
59
- border-radius: 0 0 $border_rad_light $border_rad_light;
60
- border-bottom-width: 1px !important;
61
- }
62
- }
63
-
64
- &:first-child {
65
- td {
66
- &:first-child {
67
- margin-top: $space-xs !important;
68
- }
69
- }
70
- }
71
- }
72
- }
73
- &.table-card {
74
- background: none !important;
75
-
76
- tbody {
77
- tr {
78
- td {
79
- background: $white !important;
80
- border-left-width: 1px !important;
81
- border-right-width: 1px !important;
82
- border-top-width: 1px !important;
83
-
84
- &:first-child {
85
- border-radius: $border_rad_light $border_rad_light 0 0 !important;
86
- }
87
- &:last-child {
88
- border-radius: 0 0 $border_rad_light $border_rad_light !important;
89
- }
90
- }
91
- }
92
- }
93
- }
94
- @media (hover:hover) {
95
- &:hover {
96
- tbody {
97
- tr {
98
- box-shadow: 0 0 0 $white !important;
99
- }
100
- }
101
- }
102
- }
103
- // reset the first and last to normalize
104
- @each $name, $value in $cell-pad-list {
105
- &.#{$name} {
106
- tbody {
107
- tr {
108
- td {
109
- &:first-child,
110
- &:last-child {
111
- padding: $value $cell-gutter !important;
112
- }
113
- }
114
- }
115
- }
116
- }
117
- }
118
- }
119
- }
120
- &.hide-labels {
121
- tbody {
122
- tr {
123
- td {
124
- &::before {
125
- content: '';
126
- left: 0;
127
- padding-right: 0;
128
- position: relative;
129
- width: 0;
130
- }
131
- }
132
- }
133
- }
134
- }
135
- }
@@ -1,135 +0,0 @@
1
- @import "../../tokens/border_radius";
2
- @import "../../pb_caption/caption_mixin";
3
-
4
- @media only screen and (max-width: $screen-xs-max) {
5
- [class^=pb_table] {
6
- &.table-sm.table-collapse-sm,
7
- &.table-md.table-collapse-sm,
8
- &.table-lg.table-collapse-sm {
9
- width: 100%;
10
- background: none !important;
11
-
12
- thead {
13
- tr {
14
- left: -9999px;
15
- position: absolute;
16
- top: -9999px;
17
-
18
- th {
19
- display: block;
20
- visibility: visible;
21
- }
22
- }
23
- }
24
- tbody {
25
- tr {
26
- td {
27
- display: block;
28
- visibility: visible;
29
- border-left-width: 1px !important;
30
- border-right-width: 1px !important;
31
- border-bottom-width: 0 !important;
32
- border-color: $border_light !important;
33
- min-height: 2.2em;
34
- position: relative;
35
- text-align:left;
36
- white-space: normal;
37
- &:before {
38
- content: attr(data-title);
39
- @include caption;
40
- width: 100% !important;
41
- white-space: nowrap !important;
42
- text-overflow: ellipsis !important;
43
- position: relative !important;
44
- top: 0 !important;
45
- left: 0 !important;
46
- height: 100% !important;
47
- padding-left: 0 !important;
48
- display: block !important;
49
- }
50
-
51
- &:first-child {
52
- margin-top: $space_md !important;
53
- border-top-width: 1px !important;
54
- border-top-color: $border_light !important;
55
- border-radius: $border_rad_light $border_rad_light 0 0;
56
- }
57
-
58
- &:last-child {
59
- border-radius: 0 0 $border_rad_light $border_rad_light;
60
- border-bottom-width: 1px !important;
61
- }
62
- }
63
-
64
- &:first-child {
65
- td {
66
- &:first-child {
67
- margin-top: $space-xs !important;
68
- }
69
- }
70
- }
71
- }
72
- }
73
- &.table-card {
74
- background: none !important;
75
-
76
- tbody {
77
- tr {
78
- td {
79
- background: $white !important;
80
- border-left-width: 1px !important;
81
- border-right-width: 1px !important;
82
- border-top-width: 1px !important;
83
-
84
- &:first-child {
85
- border-radius: $border_rad_light $border_rad_light 0 0 !important;
86
- }
87
- &:last-child {
88
- border-radius: 0 0 $border_rad_light $border_rad_light !important;
89
- }
90
- }
91
- }
92
- }
93
- }
94
- @media (hover:hover) {
95
- &:hover {
96
- tbody {
97
- tr {
98
- box-shadow: 0 0 0 $white !important;
99
- }
100
- }
101
- }
102
- }
103
- // reset the first and last to normalize
104
- @each $name, $value in $cell-pad-list {
105
- &.#{$name} {
106
- tbody {
107
- tr {
108
- td {
109
- &:first-child,
110
- &:last-child {
111
- padding: $value $cell-gutter !important;
112
- }
113
- }
114
- }
115
- }
116
- }
117
- }
118
- }
119
- }
120
- &.hide-labels {
121
- tbody {
122
- tr {
123
- td {
124
- &::before {
125
- content: '';
126
- left: 0;
127
- padding-right: 0;
128
- position: relative;
129
- width: 0;
130
- }
131
- }
132
- }
133
- }
134
- }
135
- }
@@ -1,135 +0,0 @@
1
- @import "../../tokens/border_radius";
2
- @import "../../pb_caption/caption_mixin";
3
-
4
- @media only screen and (max-width: $screen-lg-min) {
5
- [class^=pb_table] {
6
- &.table-sm.table-collapse-md,
7
- &.table-md.table-collapse-md,
8
- &.table-lg.table-collapse-md {
9
- width: 100%;
10
- background: none !important;
11
-
12
- thead {
13
- tr {
14
- left: -9999px;
15
- position: absolute;
16
- top: -9999px;
17
-
18
- th {
19
- display: block;
20
- visibility: visible;
21
- }
22
- }
23
- }
24
- tbody {
25
- tr {
26
- td {
27
- display: block;
28
- visibility: visible;
29
- border-left-width: 1px !important;
30
- border-right-width: 1px !important;
31
- border-bottom-width: 0 !important;
32
- border-color: $border_light !important;
33
- min-height: 2.2em;
34
- position: relative;
35
- text-align:left;
36
- white-space: normal;
37
- &:before {
38
- content: attr(data-title);
39
- @include caption;
40
- width: 100% !important;
41
- white-space: nowrap !important;
42
- text-overflow: ellipsis !important;
43
- position: relative !important;
44
- top: 0 !important;
45
- left: 0 !important;
46
- height: 100% !important;
47
- padding-left: 0 !important;
48
- display: block !important;
49
- }
50
-
51
- &:first-child {
52
- margin-top: $space_md !important;
53
- border-top-width: 1px !important;
54
- border-top-color: $border_light !important;
55
- border-radius: $border_rad_light $border_rad_light 0 0;
56
- }
57
-
58
- &:last-child {
59
- border-radius: 0 0 $border_rad_light $border_rad_light;
60
- border-bottom-width: 1px !important;
61
- }
62
- }
63
-
64
- &:first-child {
65
- td {
66
- &:first-child {
67
- margin-top: $space-xs !important;
68
- }
69
- }
70
- }
71
- }
72
- }
73
- &.table-card {
74
- background: none !important;
75
-
76
- tbody {
77
- tr {
78
- td {
79
- background: $white !important;
80
- border-left-width: 1px !important;
81
- border-right-width: 1px !important;
82
- border-top-width: 1px !important;
83
-
84
- &:first-child {
85
- border-radius: $border_rad_light $border_rad_light 0 0 !important;
86
- }
87
- &:last-child {
88
- border-radius: 0 0 $border_rad_light $border_rad_light !important;
89
- }
90
- }
91
- }
92
- }
93
- }
94
- @media (hover:hover) {
95
- &:hover {
96
- tbody {
97
- tr {
98
- box-shadow: 0 0 0 $white !important;
99
- }
100
- }
101
- }
102
- }
103
- // reset the first and last to normalize
104
- @each $name, $value in $cell-pad-list {
105
- &.#{$name} {
106
- tbody {
107
- tr {
108
- td {
109
- &:first-child,
110
- &:last-child {
111
- padding: $value $cell-gutter !important;
112
- }
113
- }
114
- }
115
- }
116
- }
117
- }
118
- }
119
- }
120
- &.hide-labels {
121
- tbody {
122
- tr {
123
- td {
124
- &::before {
125
- content: '';
126
- left: 0;
127
- padding-right: 0;
128
- position: relative;
129
- width: 0;
130
- }
131
- }
132
- }
133
- }
134
- }
135
- }