playbook_ui 4.18.0 → 5.1.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/helpers/playbook/pb_sample_helper.rb +1 -1
  4. data/app/pb_kits/playbook/_playbook.scss +1 -1
  5. data/app/pb_kits/playbook/index.js +4 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +5 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +3 -0
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.html.erb +15 -0
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +24 -0
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +6 -4
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
  12. data/app/pb_kits/playbook/pb_caption/_caption.jsx +21 -4
  13. data/app/pb_kits/playbook/pb_card/_card.scss +1 -72
  14. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +72 -0
  15. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.jsx +0 -1
  16. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_filter/templates/_default.html.erb +2 -2
  18. data/app/pb_kits/playbook/pb_installer/_installer.html.erb +16 -0
  19. data/app/pb_kits/playbook/pb_installer/_installer.jsx +54 -0
  20. data/app/pb_kits/playbook/pb_installer/_installer.scss +7 -0
  21. data/app/pb_kits/playbook/pb_installer/docs/_installer_default.html.erb +8 -0
  22. data/app/pb_kits/playbook/pb_installer/docs/_installer_default.jsx +16 -0
  23. data/app/pb_kits/playbook/pb_installer/docs/example.yml +9 -0
  24. data/app/pb_kits/playbook/pb_installer/docs/index.js +1 -0
  25. data/app/pb_kits/playbook/pb_installer/installer.rb +18 -0
  26. data/app/pb_kits/playbook/pb_layout/_body.html.erb +1 -1
  27. data/app/pb_kits/playbook/pb_layout/_column.html.erb +7 -0
  28. data/app/pb_kits/playbook/pb_layout/_layout.jsx +31 -13
  29. data/app/pb_kits/playbook/pb_layout/_layout.scss +54 -0
  30. data/app/pb_kits/playbook/pb_layout/body.rb +4 -0
  31. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban.html.erb +140 -0
  32. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban.jsx +1234 -0
  33. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban_responsive.html.erb +57 -0
  34. data/app/pb_kits/playbook/pb_layout/docs/_layout_kanban_responsive.jsx +46 -0
  35. data/app/pb_kits/playbook/pb_layout/docs/example.yml +3 -0
  36. data/app/pb_kits/playbook/pb_layout/docs/index.js +2 -0
  37. data/app/pb_kits/playbook/pb_layout/layout.rb +12 -4
  38. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +5 -0
  39. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.html.erb +16 -0
  40. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +23 -0
  41. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +5 -3
  42. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  43. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +3 -0
  44. data/app/pb_kits/playbook/pb_list/_item.html.erb +3 -2
  45. data/app/pb_kits/playbook/pb_list/_list.html.erb +3 -3
  46. data/app/pb_kits/playbook/pb_list/_list.jsx +55 -10
  47. data/app/pb_kits/playbook/pb_list/_list_item.jsx +41 -18
  48. data/app/pb_kits/playbook/pb_list/docs/_list_borderless.jsx +21 -0
  49. data/app/pb_kits/playbook/pb_list/docs/_list_dark.jsx +0 -5
  50. data/app/pb_kits/playbook/pb_list/docs/_list_dark_borderless.jsx +22 -0
  51. data/app/pb_kits/playbook/pb_list/docs/_list_dark_lg.jsx +22 -0
  52. data/app/pb_kits/playbook/pb_list/docs/_list_dark_ordered.jsx +22 -0
  53. data/app/pb_kits/playbook/pb_list/docs/_list_dark_xpadding.jsx +22 -0
  54. data/app/pb_kits/playbook/pb_list/docs/_list_layout_left.jsx +75 -0
  55. data/app/pb_kits/playbook/pb_list/docs/_list_layout_right.jsx +75 -0
  56. data/app/pb_kits/playbook/pb_list/docs/_list_lg.jsx +21 -0
  57. data/app/pb_kits/playbook/pb_list/docs/_list_ordered.jsx +21 -0
  58. data/app/pb_kits/playbook/pb_list/docs/_list_xpadding.jsx +21 -0
  59. data/app/pb_kits/playbook/pb_list/docs/example.yml +12 -1
  60. data/app/pb_kits/playbook/pb_list/docs/index.js +11 -0
  61. data/app/pb_kits/playbook/pb_popover/_popover.html.erb +4 -4
  62. data/app/pb_kits/playbook/pb_popover/_popover.jsx +41 -8
  63. data/app/pb_kits/playbook/pb_popover/_popover.scss +41 -2
  64. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +42 -0
  65. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx +99 -0
  66. data/app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb +19 -7
  67. data/app/pb_kits/playbook/pb_popover/docs/_popover_default.jsx +22 -6
  68. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +11 -10
  69. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +22 -18
  70. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.md +1 -0
  71. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height.html.erb +24 -0
  72. data/app/pb_kits/playbook/pb_popover/docs/_popover_scroll_height.jsx +56 -0
  73. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index.html.erb +14 -0
  74. data/app/pb_kits/playbook/pb_popover/docs/_popover_z_index.jsx +50 -0
  75. data/app/pb_kits/playbook/pb_popover/docs/example.yml +12 -8
  76. data/app/pb_kits/playbook/pb_popover/docs/index.js +3 -3
  77. data/app/pb_kits/playbook/pb_popover/index.js +13 -9
  78. data/app/pb_kits/playbook/pb_popover/popover.rb +26 -2
  79. data/app/pb_kits/playbook/pb_title/_title.html.erb +1 -0
  80. data/app/pb_kits/playbook/pb_title/_title.jsx +24 -17
  81. data/app/pb_kits/playbook/plugins/pb_chart.js +8 -2
  82. data/app/pb_kits/playbook/props.rb +7 -0
  83. data/app/pb_kits/playbook/tokens/index.scss +12 -0
  84. data/lib/playbook/version.rb +1 -1
  85. data/lib/tasks/pb_release.rake +3 -0
  86. metadata +40 -144
  87. data/app/assets/images/clark.jpg +0 -0
  88. data/app/assets/images/giant.jpg +0 -0
  89. data/app/assets/images/pb-caret.svg +0 -1
  90. data/app/assets/images/pb-check.svg +0 -11
  91. data/app/assets/images/pb.logo.svg +0 -28
  92. data/app/controllers/playbook/application_controller.rb +0 -13
  93. data/app/controllers/playbook/guides_controller.rb +0 -11
  94. data/app/controllers/playbook/pages_controller.rb +0 -79
  95. data/app/controllers/playbook/samples_controller.rb +0 -40
  96. data/app/pb_kits/playbook/config/_kit_example.html.erb +0 -9
  97. data/app/pb_kits/playbook/config/_kit_samples_list.html.erb +0 -3
  98. data/app/pb_kits/playbook/config/_kit_ui.html.erb +0 -40
  99. data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +0 -18
  100. data/app/pb_kits/playbook/data/menu.yml +0 -91
  101. data/app/pb_kits/playbook/packs/application.js +0 -55
  102. data/app/pb_kits/playbook/packs/examples.js +0 -172
  103. data/app/pb_kits/playbook/packs/kits/pb_avatar.js +0 -1
  104. data/app/pb_kits/playbook/packs/kits/pb_badge.js +0 -1
  105. data/app/pb_kits/playbook/packs/kits/pb_bar_graph.js +0 -1
  106. data/app/pb_kits/playbook/packs/kits/pb_body.js +0 -1
  107. data/app/pb_kits/playbook/packs/kits/pb_button.js +0 -1
  108. data/app/pb_kits/playbook/packs/kits/pb_caption.js +0 -1
  109. data/app/pb_kits/playbook/packs/kits/pb_card.js +0 -1
  110. data/app/pb_kits/playbook/packs/kits/pb_checkbox.js +0 -1
  111. data/app/pb_kits/playbook/packs/kits/pb_circle_icon_button.js +0 -1
  112. data/app/pb_kits/playbook/packs/kits/pb_contact.js +0 -1
  113. data/app/pb_kits/playbook/packs/kits/pb_currency.js +0 -1
  114. data/app/pb_kits/playbook/packs/kits/pb_dashboard_value.js +0 -1
  115. data/app/pb_kits/playbook/packs/kits/pb_date.js +0 -2
  116. data/app/pb_kits/playbook/packs/kits/pb_date_range_inline.js +0 -1
  117. data/app/pb_kits/playbook/packs/kits/pb_date_range_stacked.js +0 -1
  118. data/app/pb_kits/playbook/packs/kits/pb_date_stacked.js +0 -1
  119. data/app/pb_kits/playbook/packs/kits/pb_date_year_stacked.js +0 -2
  120. data/app/pb_kits/playbook/packs/kits/pb_distribution_bar.js +0 -2
  121. data/app/pb_kits/playbook/packs/kits/pb_fixed_confirmation_toast.js +0 -2
  122. data/app/pb_kits/playbook/packs/kits/pb_flex.js +0 -1
  123. data/app/pb_kits/playbook/packs/kits/pb_form_pill.js +0 -1
  124. data/app/pb_kits/playbook/packs/kits/pb_hashtag.js +0 -2
  125. data/app/pb_kits/playbook/packs/kits/pb_highlight.js +0 -2
  126. data/app/pb_kits/playbook/packs/kits/pb_home_address_street.js +0 -2
  127. data/app/pb_kits/playbook/packs/kits/pb_icon.js +0 -2
  128. data/app/pb_kits/playbook/packs/kits/pb_icon_circle.js +0 -2
  129. data/app/pb_kits/playbook/packs/kits/pb_icon_value.js +0 -2
  130. data/app/pb_kits/playbook/packs/kits/pb_image.js +0 -1
  131. data/app/pb_kits/playbook/packs/kits/pb_label_pill.js +0 -2
  132. data/app/pb_kits/playbook/packs/kits/pb_label_value.js +0 -2
  133. data/app/pb_kits/playbook/packs/kits/pb_layout.js +0 -2
  134. data/app/pb_kits/playbook/packs/kits/pb_legend.js +0 -2
  135. data/app/pb_kits/playbook/packs/kits/pb_line_graph.js +0 -1
  136. data/app/pb_kits/playbook/packs/kits/pb_list.js +0 -2
  137. data/app/pb_kits/playbook/packs/kits/pb_loading_inline.js +0 -2
  138. data/app/pb_kits/playbook/packs/kits/pb_message.js +0 -2
  139. data/app/pb_kits/playbook/packs/kits/pb_multiple_users.js +0 -2
  140. data/app/pb_kits/playbook/packs/kits/pb_multiple_users_stacked.js +0 -2
  141. data/app/pb_kits/playbook/packs/kits/pb_nav.js +0 -1
  142. data/app/pb_kits/playbook/packs/kits/pb_online_status.js +0 -2
  143. data/app/pb_kits/playbook/packs/kits/pb_person.js +0 -2
  144. data/app/pb_kits/playbook/packs/kits/pb_person_contact.js +0 -2
  145. data/app/pb_kits/playbook/packs/kits/pb_pill.js +0 -2
  146. data/app/pb_kits/playbook/packs/kits/pb_popover.js +0 -1
  147. data/app/pb_kits/playbook/packs/kits/pb_progress_pills.js +0 -2
  148. data/app/pb_kits/playbook/packs/kits/pb_progress_simple.js +0 -2
  149. data/app/pb_kits/playbook/packs/kits/pb_progress_step.js +0 -2
  150. data/app/pb_kits/playbook/packs/kits/pb_radio.js +0 -2
  151. data/app/pb_kits/playbook/packs/kits/pb_section_separator.js +0 -2
  152. data/app/pb_kits/playbook/packs/kits/pb_select.js +0 -2
  153. data/app/pb_kits/playbook/packs/kits/pb_selectable_card.js +0 -2
  154. data/app/pb_kits/playbook/packs/kits/pb_source.js +0 -2
  155. data/app/pb_kits/playbook/packs/kits/pb_star_rating.js +0 -2
  156. data/app/pb_kits/playbook/packs/kits/pb_stat_change.js +0 -2
  157. data/app/pb_kits/playbook/packs/kits/pb_stat_value.js +0 -2
  158. data/app/pb_kits/playbook/packs/kits/pb_table.js +0 -1
  159. data/app/pb_kits/playbook/packs/kits/pb_text_input.js +0 -1
  160. data/app/pb_kits/playbook/packs/kits/pb_textarea.js +0 -2
  161. data/app/pb_kits/playbook/packs/kits/pb_time.js +0 -2
  162. data/app/pb_kits/playbook/packs/kits/pb_timestamp.js +0 -2
  163. data/app/pb_kits/playbook/packs/kits/pb_title.js +0 -1
  164. data/app/pb_kits/playbook/packs/kits/pb_title_count.js +0 -2
  165. data/app/pb_kits/playbook/packs/kits/pb_title_detail.js +0 -2
  166. data/app/pb_kits/playbook/packs/kits/pb_toggle.js +0 -2
  167. data/app/pb_kits/playbook/packs/kits/pb_user.js +0 -2
  168. data/app/pb_kits/playbook/packs/kits/pb_user_badge.js +0 -2
  169. data/app/pb_kits/playbook/packs/main.scss +0 -12
  170. data/app/pb_kits/playbook/packs/samples.js +0 -17
  171. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  172. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  173. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  174. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -9
  175. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  176. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  177. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  178. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -190
  179. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  180. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  181. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  182. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_any.html.erb +0 -19
  183. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_any.jsx +0 -40
  184. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_inside.html.erb +0 -14
  185. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_inside.jsx +0 -40
  186. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_outside.html.erb +0 -14
  187. data/app/pb_kits/playbook/pb_popover/docs/_popover_click_outside.jsx +0 -40
  188. data/app/pb_kits/playbook/pb_popover/docs/_popover_with_button.jsx +0 -34
  189. data/app/pb_kits/playbook/pb_popover/docs/_popover_with_circle.html.erb +0 -5
  190. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  191. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  192. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  193. data/app/views/layouts/playbook/application.html.slim +0 -23
  194. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  195. data/app/views/layouts/playbook/grid.html.slim +0 -10
  196. data/app/views/layouts/playbook/samples.html.erb +0 -20
  197. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  198. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  199. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  200. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  201. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  202. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  203. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  204. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  205. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  206. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  207. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  208. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  209. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  210. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  211. data/app/views/playbook/pages/grid.html.slim +0 -2
  212. data/app/views/playbook/pages/home.html.slim +0 -4
  213. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  214. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  215. data/app/views/playbook/pages/kits.html.erb +0 -12
  216. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  217. data/app/views/playbook/pages/principles.html.slim +0 -3
  218. data/app/views/playbook/pages/tokens.html.slim +0 -15
  219. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -17
  220. data/app/views/playbook/pages/utilities.html.slim +0 -116
  221. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  222. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  223. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  224. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  225. data/app/views/playbook/samples/registration/index.jsx +0 -476
  226. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,92 +0,0 @@
1
- @import "../../../tokens/colors";
2
-
3
- // Only used for our documentation site.
4
- // Creates color classes for color utilities.
5
- @mixin doc-color($colors-list) {
6
- @each $name, $color in $colors-list {
7
- .pb--color_#{$name} {
8
- background-color: $color !important;
9
- }
10
- }
11
- }
12
- @include doc-color($colors);
13
- @include doc-color($interface_colors);
14
- @include doc-color($main_colors);
15
- @include doc-color($background_colors);
16
- @include doc-color($card_colors);
17
- @include doc-color($active_colors);
18
- @include doc-color($action_colors);
19
- @include doc-color($hover_colors);
20
- @include doc-color($border_colors);
21
- @include doc-color($shadow_colors);
22
- @include doc-color($text_colors);
23
- @include doc-color($data_colors);
24
- @include doc-color($status_colors);
25
- @include doc-color($product_colors);
26
- @include doc-color($category_colors);
27
-
28
- .pb--color_bg_gradient {
29
- background: $gradient_start;
30
- background: -moz-linear-gradient(-45deg, $gradient_start 0%, $gradient_end 100%);
31
- background: -webkit-linear-gradient(-45deg, $gradient_start 0%, $gradient_end 100%);
32
- background: linear-gradient(135deg, $gradient_start 0%, $gradient_end 100%);
33
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$gradient_start}', endColorstr='#{$gradient_end}',GradientType=1 );
34
- }
35
-
36
- ul {
37
- &.pb--utlities-color {
38
- list-style: none;
39
- display: flex;
40
- justify-content: flex-start;
41
- align-items: center;
42
- margin: 5px 0 20px 0;
43
- background: white;
44
- border-radius: 4px;
45
- border: 1px solid $border-light;
46
- padding: 10px;
47
- flex-wrap: wrap;
48
-
49
- li {
50
- border-radius: 4px;
51
- margin: 10px 5px;
52
- position: relative;
53
-
54
- & > div {
55
- width: 80px;
56
- height: 80px;
57
- border-radius: 40px;
58
- margin: 20px 15px 45px;
59
- position: relative;
60
- }
61
- &::before {
62
- content: attr(data-name);
63
- width: 100%;
64
- position: absolute;
65
- top: 105px;
66
- left: 0;
67
- text-align: center;
68
- font-size: 14px;
69
- font-weight: 600;
70
- }
71
- &::after {
72
- content: attr(data-variable);
73
- width: 100%;
74
- position: absolute;
75
- top: 124px;
76
- left: 0;
77
- text-align: center;
78
- font-size: 12px;
79
- opacity: 0.7;
80
- }
81
-
82
- &.dark {
83
- background: $bg_dark;
84
- color: $white;
85
- }
86
-
87
- &:first-child {
88
- margin-left: 0;
89
- }
90
- }
91
- }
92
- }
@@ -1,15 +0,0 @@
1
- .flex-doc-example {
2
- overflow: auto;
3
- [class^=pb_flex_kit] {
4
- background: #F3F7FB;
5
- }
6
- .flex-item, [class^=pb_flex_item_kit] {
7
- background: #E4E8F0;
8
- min-width: 30px;
9
- min-height: 30px;
10
- color: #242B42;
11
- }
12
- .tall {
13
- min-height: 200px;
14
- }
15
- }
@@ -1,190 +0,0 @@
1
- @import "../../../tokens/colors";
2
-
3
- .pb--doc {
4
- margin-bottom: 20px;
5
- border: 1px solid $border-light;
6
- border-radius: 6px;
7
- box-shadow: 0 4px 10px $shadow;
8
- background: $white;
9
-
10
- &-demo-row {
11
- width: 100%;
12
- display: flex;
13
- justify-content: space-around;
14
- align-items: center;
15
- margin: 50px 0;
16
- flex-wrap: wrap;
17
-
18
- & > div {
19
- margin: 20px 0;
20
- }
21
- }
22
-
23
- .pb--close-toggle {
24
- position: absolute;
25
- right: 10px;
26
- top: 10px;
27
- background: rgba($white, 0.8);
28
- padding: 0 10px;
29
- border-radius: 2px;
30
- height: 22px;
31
- display: flex;
32
- justify-content: center;
33
- align-items: center;
34
- font-size: 12px;
35
- font-weight: 600;
36
- z-index: 100;
37
- }
38
-
39
- .pb--kit-example, .pb--kit-example-markdown {
40
- padding: calc(2rem + 4px) 2rem 1rem;
41
- }
42
-
43
- .pb--kit-example {
44
- position: relative;
45
-
46
- &::after {
47
- content: '';
48
- width: 100%;
49
- height: 4px;
50
- background: $border-light;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- }
55
- }
56
-
57
- .pb--codeControls {
58
- ul {
59
- height: 45px;
60
- display: flex;
61
- justify-content: flex-end;
62
- align-items: center;
63
- list-style: none;
64
- margin: 0;
65
- padding: 0 20px;
66
-
67
- li {
68
- font-size: 12px;
69
- margin: 0;
70
- padding: 0;
71
- position: relative;
72
-
73
- a {
74
- color: $primary_action;
75
- padding: 0 10px;
76
- line-height: 45px;
77
- display: inline-block;
78
- }
79
-
80
- &::after {
81
- content: '';
82
- position: absolute;
83
- bottom: 0;
84
- left: 0;
85
- width: 100%;
86
- height: 2px;
87
- opacity: 0.9;
88
- background-color: transparent;
89
- }
90
-
91
- &.active {
92
- font-weight: 600;
93
-
94
- &::after {
95
- background-color: $primary_action;
96
- opacity: 0.2;
97
- }
98
- }
99
- }
100
- }
101
- }
102
-
103
- .pb--codeCopy {
104
- padding: 20px 40px;
105
- background: $bg_dark;
106
- position: relative;
107
- border-top: 1px solid $border-light;
108
- display: none;
109
- overflow-x: auto;
110
- border-radius: 0 0 6px 6px;
111
- }
112
-
113
- &.dark_ui {
114
- background: $bg_dark;
115
-
116
- .pb--kit-example {
117
- color: $white;
118
-
119
- &::after {
120
- background: $border-dark;
121
- }
122
- }
123
- .pb--codeCopy {
124
- border-color: $border-dark;
125
- }
126
- .pb--codeControls {
127
- ul {
128
- li {
129
- a {
130
- color: $primary_action;
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
-
138
- .pb--propsTable {
139
- position: relative;
140
- margin: 40px 0 0;
141
- background: $card_light;
142
- color: #faf6e4;
143
- padding: 10px 30px 10px 30px;
144
- border: 1px solid $border-light;
145
-
146
- &--table {
147
- width: 100%;
148
- border-collapse: collapse;
149
- margin-bottom: 10px;
150
-
151
- tr {
152
- padding: 10px;
153
-
154
- th {
155
- text-align: left;
156
- padding: 10px 10px 5px 10px;
157
- color: $text_lt_light;
158
- opacity: 0.7;
159
- font-size: 12px;
160
- text-transform: uppercase;
161
- }
162
-
163
- td {
164
- border-bottom: 1px solid $border-light;
165
- padding: 5px 10px;
166
- font-size: 14px;
167
- color: $text_lt_light;
168
- font-weight: 600;
169
- }
170
-
171
- &:last-child {
172
- td {
173
- border-bottom-width: 0;
174
- }
175
- }
176
- }
177
-
178
- &--notset {
179
- font-size: 12px;
180
- opacity: 0.4;
181
- font-style: italic;
182
- position: relative;
183
- font-weight: 400;
184
-
185
- &:after {
186
- content: "not set";
187
- }
188
- }
189
- }
190
- }
@@ -1,18 +0,0 @@
1
- @import "../../../tokens/colors";
2
-
3
- .pb--kits {
4
- .pb--docItem {
5
- margin: 0 0 40px 0;
6
-
7
- .pb--docItem-ui {
8
- .pb--doc {
9
- box-shadow: 0 0 0 transparent;
10
- padding: 0;
11
- margin: 10px 0;
12
- .pb--kit-example {
13
- padding: 24px 30px 20px;
14
- }
15
- }
16
- }
17
- }
18
- }
@@ -1,82 +0,0 @@
1
- @import "../../../pb_title/title_mixin";
2
- @import "../../../tokens/spacing";
3
-
4
- .markdown {
5
- h1 {
6
- @include pb_title_1;
7
- margin: 1rem 0;
8
- }
9
-
10
- h2 {
11
- @include pb_title_2;
12
- margin: 1rem 0;
13
- }
14
-
15
- h3 {
16
- @include pb_title_3;
17
- margin: 1rem 0;
18
- }
19
- h4 {
20
- @include pb_title_4;
21
- margin: 1rem 0;
22
- }
23
- h5 {
24
- margin: 1rem 0;
25
- }
26
- h6 {
27
- margin: 1rem 0;
28
- }
29
-
30
- hr {
31
- margin: 2rem 0;
32
- }
33
- p{
34
- margin: 1.5rem 0;
35
- }
36
- code {
37
- background: #122b3b;
38
- color: #faf6e4;
39
- padding: 0.1rem 0.3rem;
40
- margin: 0 5px;
41
- box-shadow: 0 2px 10px $shadow;
42
- border-radius: 0.25rem;
43
- overflow: hidden;
44
- font-size: 14px;
45
- }
46
-
47
- body {
48
- font-size: 1rem;
49
- }
50
-
51
- ul, ol {
52
- margin: 0;
53
- padding: 0;
54
- list-style: none;
55
- }
56
- ol {
57
- counter-reset: list-counter;
58
- li:before {
59
- content: counter(list-counter);
60
- counter-increment: list-counter;
61
- display: block;
62
- width: 20px;
63
- flex: 0 0 20px;
64
- text-align: left;
65
- color: $text_lt_default;
66
- font-weight: $bold;
67
- margin-right: $space-sm;
68
- }
69
- }
70
- li {
71
- border-bottom: 1px solid $border_light;
72
- padding: $space-sm 0;
73
- display: flex;
74
- align-items: left;
75
- &:last-child {
76
- border-bottom: 0;
77
- // padding-bottom: 0;
78
- }
79
- }
80
-
81
-
82
- }
@@ -1,72 +0,0 @@
1
- @import "../../../tokens/colors";
2
- @import "../../../tokens/spacing";
3
-
4
- ul {
5
- &.pb--tokens-spacing {
6
- list-style: none;
7
- display: flex;
8
- justify-content: flex-start;
9
- align-items: center;
10
- margin: 5px 0 20px 0;
11
- background: white;
12
- border-radius: 4px;
13
- border: 1px solid $border-light;
14
- padding: 10px;
15
-
16
- li {
17
- border-radius: 4px;
18
- margin: 10px 5px;
19
- position: relative;
20
-
21
- & > div {
22
- width: 80px;
23
- height: 80px;
24
- margin: 20px 15px 45px;
25
- position: relative;
26
- border: 1px solid;
27
-
28
- border-color: $royal;
29
- align-content: center;
30
- }
31
- &::before {
32
- content: attr(data-name);
33
- width: 100%;
34
- position: absolute;
35
- top: 105px;
36
- left: 0;
37
- text-align: center;
38
- font-size: 14px;
39
- font-weight: 600;
40
-
41
- }
42
- &::after {
43
- content: attr(data-variable);
44
- width: 100%;
45
- position: absolute;
46
- top: 124px;
47
- left: 0;
48
- text-align: center;
49
- font-size: 12px;
50
- opacity: 0.7;
51
-
52
- }
53
-
54
- &.dark {
55
- background: $bg_dark;
56
- color: $white;
57
- }
58
-
59
- &:first-child {
60
- margin-left: 0;
61
- }
62
- }
63
- }
64
- }
65
-
66
- @each $name, $value in $spaces{
67
- div.pb--spacing_#{$name}{
68
- width: #{$value};
69
- height: 78px;
70
- background: $shadow;
71
- }
72
- }