playbook_ui 6.4.0 → 7.0.0.pre.alpha5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +0 -2
  3. data/app/helpers/playbook/pb_kit_helper.rb +1 -0
  4. data/app/pb_kits/playbook/_playbook.scss +1 -0
  5. data/app/pb_kits/playbook/index.js +4 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  7. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  8. data/app/pb_kits/playbook/pb_body/_body.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
  10. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  11. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +17 -31
  12. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
  13. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
  14. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
  15. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +18 -0
  16. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +2 -2
  17. data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -1
  18. data/app/pb_kits/playbook/pb_date/docs/index.js +1 -1
  19. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  20. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
  22. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
  23. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
  24. data/app/pb_kits/playbook/pb_legend/_legend.html.erb +1 -11
  25. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  26. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  27. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +4 -6
  28. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
  29. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +14 -18
  30. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -6
  31. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  32. data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
  33. data/app/pb_kits/playbook/pb_select/_select.scss +4 -8
  34. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
  35. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
  36. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
  37. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
  38. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
  39. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
  40. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
  41. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  42. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -4
  43. data/app/pb_kits/playbook/react_rails_kits.js +5 -0
  44. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  45. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  46. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  47. data/app/pb_kits/playbook/vendor.js +5 -0
  48. data/lib/playbook/engine.rb +1 -0
  49. data/lib/playbook/version.rb +1 -1
  50. data/lib/tasks/pb_release.rake +3 -0
  51. metadata +6 -63
  52. data/app/controllers/playbook/guides_controller.rb +0 -11
  53. data/app/controllers/playbook/pages_controller.rb +0 -79
  54. data/app/controllers/playbook/samples_controller.rb +0 -40
  55. data/app/pb_kits/playbook/packs/application.js +0 -55
  56. data/app/pb_kits/playbook/packs/examples.js +0 -175
  57. data/app/pb_kits/playbook/packs/main.scss +0 -12
  58. data/app/pb_kits/playbook/packs/samples.js +0 -21
  59. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  60. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  61. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  62. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  63. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  64. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  65. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  66. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  67. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -189
  68. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  69. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  70. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  71. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  72. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  73. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  74. data/app/views/layouts/playbook/application.html.slim +0 -22
  75. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  76. data/app/views/layouts/playbook/grid.html.slim +0 -10
  77. data/app/views/layouts/playbook/samples.html.erb +0 -19
  78. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  79. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  80. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  81. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  82. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  83. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  84. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  85. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  86. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  87. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  88. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  89. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  90. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  91. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  92. data/app/views/playbook/pages/grid.html.slim +0 -2
  93. data/app/views/playbook/pages/home.html.slim +0 -4
  94. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  95. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  96. data/app/views/playbook/pages/kits.html.erb +0 -12
  97. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  98. data/app/views/playbook/pages/principles.html.slim +0 -3
  99. data/app/views/playbook/pages/tokens.html.slim +0 -15
  100. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
  101. data/app/views/playbook/pages/utilities.html.slim +0 -116
  102. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  103. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  104. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  105. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  106. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  107. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  108. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  109. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  110. data/app/views/playbook/samples/registration/index.jsx +0 -476
  111. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_dependency "playbook/application_controller"
4
- require "yaml"
5
-
6
- module Playbook
7
- class SamplesController < ApplicationController
8
- before_action :set_sample, only: %i[sample_show_rails sample_show_react]
9
-
10
- layout "playbook/samples"
11
-
12
- def samples
13
- params[:type] ||= "rails"
14
- @type = params[:type]
15
- end
16
-
17
- def sample_show_rails
18
- params[:type] ||= "rails"
19
- @type = params[:type]
20
- render template: "playbook/samples/sample_show"
21
- end
22
-
23
- def sample_show_react
24
- params[:type] ||= "react"
25
- @type = params[:type]
26
- render template: "playbook/samples/sample_show"
27
- end
28
-
29
- private
30
-
31
- def set_sample
32
- menu = MENU["samples"].map { |link| link.is_a?(Hash) ? link.first.last : link }
33
- if menu.flatten.include?(params[:name])
34
- @sample = params[:name]
35
- else
36
- redirect_to root_path, flash: { error: "That kit does not exist" }
37
- end
38
- end
39
- end
40
- end
@@ -1,55 +0,0 @@
1
- import '../../../../fonts/fontawesome-min.js'
2
- import '../../../../fonts/regular-min.js'
3
- import './main.scss'
4
- import '../vendor.js'
5
-
6
- // Move to separate file
7
- window.$(document).on('click', '[data-toggle]', function(e) {
8
- e.preventDefault()
9
-
10
- var kitContainer = window.$(this).closest('.pb--doc')
11
- var toggleTarget = window.$(this).data('toggle')
12
-
13
- window
14
- .$(kitContainer)
15
- .find('[data-action="toggle"]')
16
- .hide()
17
- window
18
- .$(kitContainer)
19
- .find('[data-togglable="' + toggleTarget + '"]')
20
- .show()
21
- })
22
-
23
- window.$(document).ready(() => {
24
- $('.compress').hide()
25
-
26
- window.$(document).on('click', '.toggle-button', (e) => {
27
- e.preventDefault()
28
- $('.pb--codeCopy').toggleClass('close')
29
- })
30
-
31
- $('.expand').click(() => {
32
- $('.sample-nav').hide()
33
- $('.compress').show()
34
- })
35
-
36
- $('.compress').click(() => {
37
- $('.sample-nav').show()
38
- $('.compress').hide()
39
- })
40
-
41
- const setClipboard = (value) => {
42
- var tempInput = document.createElement('textarea')
43
- tempInput.style = 'position: absolute; left: -1000px; top: -1000px'
44
- tempInput.value = value
45
- document.body.appendChild(tempInput)
46
- tempInput.select()
47
- document.execCommand('copy')
48
- document.body.removeChild(tempInput)
49
- }
50
-
51
- $('.copy-clipboard').click(() => {
52
- var copyText = document.querySelector('.hiddenCodeforCopy').textContent
53
- setClipboard(copyText)
54
- })
55
- })
@@ -1,175 +0,0 @@
1
- // ===========================================
2
- // Generated file from kit generator.
3
- //
4
- // KIT EXAMPLES
5
- // ===========================================
6
-
7
- import WebpackerReact from 'webpacker-react'
8
-
9
- //
10
- // ===========================================
11
- // ===========================================
12
- // Generated file from kit generator.
13
- // KIT EXAMPLES
14
-
15
- import '../pb_form/pb_form_validation'
16
- import * as Avatar from 'pb_avatar/docs'
17
- import * as AvatarActionButton from 'pb_avatar_action_button/docs'
18
- import * as Badge from 'pb_badge/docs'
19
- import * as BarGraph from 'pb_bar_graph/docs'
20
- import * as Body from 'pb_body/docs'
21
- import * as Button from 'pb_button/docs'
22
- import * as ButtonToolbar from 'pb_button_toolbar/docs'
23
- import * as Caption from 'pb_caption/docs'
24
- import * as Card from 'pb_card/docs'
25
- import * as Checkbox from 'pb_checkbox/docs'
26
- import * as CircleIconButton from 'pb_circle_icon_button/docs'
27
- import * as Contact from 'pb_contact/docs'
28
- import * as Currency from 'pb_currency/docs'
29
- import * as DashboardValue from 'pb_dashboard_value/docs'
30
- import * as Date from 'pb_date/docs'
31
- import * as DateRangeInline from 'pb_date_range_inline/docs'
32
- import * as DateRangeStacked from 'pb_date_range_stacked/docs'
33
- import * as DateStacked from 'pb_date_stacked/docs'
34
- import * as DateTimeStacked from 'pb_date_time_stacked/docs'
35
- import * as DateYearStacked from 'pb_date_year_stacked/docs'
36
- import * as DistributionBar from 'pb_distribution_bar/docs'
37
- import * as FileUpload from 'pb_file_upload/docs'
38
- import * as Filter from 'pb_filter/docs'
39
- import * as FixedConfirmationToast from 'pb_fixed_confirmation_toast/docs'
40
- import * as Flex from 'pb_flex/docs'
41
- import * as FormPill from 'pb_form_pill/docs'
42
- import * as Gauge from 'pb_gauge/docs'
43
- import * as Hashtag from 'pb_hashtag/docs'
44
- import * as Highlight from 'pb_highlight/docs'
45
- import * as HomeAddressStreet from 'pb_home_address_street/docs'
46
- import * as Icon from 'pb_icon/docs'
47
- import * as IconCircle from 'pb_icon_circle/docs'
48
- import * as IconValue from 'pb_icon_value/docs'
49
- import * as Image from 'pb_image/docs'
50
- import * as LabelPill from 'pb_label_pill/docs'
51
- import * as LabelValue from 'pb_label_value/docs'
52
- import * as Layout from 'pb_layout/docs'
53
- import * as Legend from 'pb_legend/docs'
54
- import * as LineGraph from 'pb_line_graph/docs'
55
- import * as List from 'pb_list/docs'
56
- import * as LoadingInline from 'pb_loading_inline/docs'
57
- import * as Message from 'pb_message/docs'
58
- import * as MultipleUsers from 'pb_multiple_users/docs'
59
- import * as MultipleUsersStacked from 'pb_multiple_users_stacked/docs'
60
- import * as Nav from 'pb_nav/docs'
61
- import * as OnlineStatus from 'pb_online_status/docs'
62
- import * as PbReactPopover from 'pb_popover/docs'
63
- import * as Person from 'pb_person/docs'
64
- import * as PersonContact from 'pb_person_contact/docs'
65
- import * as Pill from 'pb_pill/docs'
66
- import * as ProgressPills from 'pb_progress_pills/docs'
67
- import * as ProgressSimple from 'pb_progress_simple/docs'
68
- import * as ProgressStep from 'pb_progress_step/docs'
69
- import * as Radio from 'pb_radio/docs'
70
- import * as SectionSeparator from 'pb_section_separator/docs'
71
- import * as Select from 'pb_select/docs'
72
- import * as SelectableCard from 'pb_selectable_card/docs'
73
- import * as SelectableCardIcon from 'pb_selectable_card_icon/docs'
74
- import * as SelectableIcon from 'pb_selectable_icon/docs'
75
- import * as Source from 'pb_source/docs'
76
- import * as StarRating from 'pb_star_rating/docs'
77
- import * as StatChange from 'pb_stat_change/docs'
78
- import * as StatValue from 'pb_stat_value/docs'
79
- import * as Table from 'pb_table/docs'
80
- import * as Textarea from 'pb_textarea/docs'
81
- import * as TextInput from 'pb_text_input/docs'
82
- import * as Time from 'pb_time/docs'
83
- import * as Timeline from 'pb_timeline/docs'
84
- import * as TimeStacked from 'pb_time_stacked/docs'
85
- import * as Timestamp from 'pb_timestamp/docs'
86
- import * as TimeRangeInline from 'pb_time_range_inline/docs'
87
- import * as Title from 'pb_title/docs'
88
- import * as TitleCount from 'pb_title_count/docs'
89
- import * as TitleDetail from 'pb_title_detail/docs'
90
- import * as Toggle from 'pb_toggle/docs'
91
- import * as User from 'pb_user/docs'
92
- import * as UserBadge from 'pb_user_badge/docs'
93
- import * as WeekdayStacked from 'pb_weekday_stacked/docs'
94
-
95
- WebpackerReact.setup({
96
- ...Avatar,
97
- ...AvatarActionButton,
98
- ...Badge,
99
- ...BarGraph,
100
- ...Body,
101
- ...Button,
102
- ...ButtonToolbar,
103
- ...Caption,
104
- ...Card,
105
- ...Checkbox,
106
- ...CircleIconButton,
107
- ...Contact,
108
- ...Currency,
109
- ...DashboardValue,
110
- ...Date,
111
- ...DateRangeInline,
112
- ...DateRangeStacked,
113
- ...DateStacked,
114
- ...DateTimeStacked,
115
- ...DateYearStacked,
116
- ...DistributionBar,
117
- ...FileUpload,
118
- ...Filter,
119
- ...FixedConfirmationToast,
120
- ...Flex,
121
- ...FormPill,
122
- ...Gauge,
123
- ...Hashtag,
124
- ...Highlight,
125
- ...HomeAddressStreet,
126
- ...Icon,
127
- ...IconCircle,
128
- ...IconValue,
129
- ...Image,
130
- ...LabelPill,
131
- ...LabelValue,
132
- ...Layout,
133
- ...Legend,
134
- ...LineGraph,
135
- ...List,
136
- ...LoadingInline,
137
- ...Message,
138
- ...MultipleUsers,
139
- ...MultipleUsersStacked,
140
- ...Nav,
141
- ...OnlineStatus,
142
- ...PbReactPopover,
143
- ...Person,
144
- ...PersonContact,
145
- ...Pill,
146
- ...ProgressPills,
147
- ...ProgressSimple,
148
- ...ProgressStep,
149
- ...Radio,
150
- ...SectionSeparator,
151
- ...Select,
152
- ...SelectableCard,
153
- ...SelectableIcon,
154
- ...SelectableCardIcon,
155
- ...Source,
156
- ...StarRating,
157
- ...StatChange,
158
- ...StatValue,
159
- ...Table,
160
- ...Textarea,
161
- ...TextInput,
162
- ...Time,
163
- ...Timeline,
164
- ...TimeStacked,
165
- ...Timestamp,
166
- ...TimeRangeInline,
167
- ...Title,
168
- ...TitleCount,
169
- ...TitleDetail,
170
- ...Toggle,
171
- ...User,
172
- ...UserBadge,
173
- ...WeekdayStacked,
174
- })
175
-
@@ -1,12 +0,0 @@
1
- // SCAFFOLD
2
- @import "site_styles/scaffold";
3
-
4
- // KITS
5
- @import "../playbook";
6
-
7
- // APP STYLES
8
- @import "site_styles/site-style";
9
- @import "site_styles/docs/all";
10
-
11
- // FULL PAGE EXAMPLE STYLES
12
- @import "site_styles/samples";
@@ -1,21 +0,0 @@
1
- // ===========================================
2
- // Generated file from kit generator.
3
- //
4
- // ===========================================
5
-
6
- import WebpackerReact from 'webpacker-react'
7
-
8
- //
9
- // ===========================================
10
- // ===========================================
11
- // Generated file from kit generator.
12
-
13
- import Dashboards from '../../../views/playbook/samples/dashboards/index.jsx'
14
- import FilterTable from '../../../views/playbook/samples/filter_table/index.jsx'
15
- import Registration from '../../../views/playbook/samples/registration/index.jsx'
16
- import CollectionDetail from '../../../views/playbook/samples/collection_detail/index.jsx'
17
-
18
- WebpackerReact.setup({ Dashboards })
19
- WebpackerReact.setup({ FilterTable })
20
- WebpackerReact.setup({ Registration })
21
- WebpackerReact.setup({ CollectionDetail })
@@ -1,72 +0,0 @@
1
- .sample-layout {
2
- overflow-y: hidden;
3
- .sample {
4
- padding-left: 50px;
5
- border-bottom: 0px;
6
- }
7
- .code-controls {
8
- .pb_nav_list_item_text {
9
- color: white !important;
10
- }
11
- .pb_nav_list_kit_item {
12
- .pb_nav_list_item_link {
13
- border-color: transparent !important;
14
- }
15
- }
16
- }
17
-
18
- .sample-nav {
19
- padding: 0 25px;
20
- background: #172257;
21
- display: flex;
22
- width: 100%;
23
- flex-basis: 200px;
24
-
25
- }
26
-
27
- .sample-actions {
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
-
32
- &-right {
33
- margin-left: auto;
34
- order: 2;
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- .items {
39
- padding: 5px;
40
- }
41
- }
42
- }
43
- .pb--doc {
44
- margin-bottom: 0px;
45
- }
46
- .pb--codeCopy {
47
- border: 0px;
48
- position: fixed;
49
- width: 100%;
50
- height: calc(50vh - 45px);
51
- bottom: 0;
52
- left: 0;
53
- transition: all .4s;
54
- border-radius: 0 0 6px 6px;
55
- }
56
-
57
- .pb--codeCopy.close {
58
- top: 100%;
59
- height: 0px;
60
- transition: all .4s;
61
- }
62
- .compress {
63
- position: absolute;
64
- top: 15px;
65
- right: 30px;
66
- display: none;
67
- z-index: 4;
68
- }
69
- .hiddenCodeforCopy {
70
- display: none;
71
- }
72
- }
@@ -1,43 +0,0 @@
1
- @import "../../tokens/fonts";
2
- @import "../../tokens/typography";
3
- @import "../../tokens/colors";
4
- @import "../../utilities/colors";
5
-
6
- * {
7
- box-sizing: border-box;
8
- margin: 0;
9
- padding: 0;
10
- &:before,
11
- &:after {
12
- box-sizing: border-box;
13
- }
14
- }
15
-
16
- html {
17
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
18
- height: 100vh;
19
- }
20
-
21
- body {
22
- font-family: $font_family_base;
23
- font-size: $font_base;
24
- line-height: 1.5;
25
- background-color: $bg-light;
26
- height: 100%;
27
- letter-spacing: $lspace_normal;
28
- font-weight: $regular;
29
- font-style: normal;
30
- text-rendering: optimizeLegibility;
31
- -moz-font-feature-settings: "liga" on;
32
- color: $charcoal;
33
- margin: 0 !important;
34
- padding: 0 !important;
35
- box-sizing: border-box;
36
- min-height: 100vh;
37
- padding: 50px; // REMOVE AFTER STYLED
38
- }
39
-
40
- a {
41
- text-decoration: none;
42
- color: $primary;
43
- }
@@ -1,135 +0,0 @@
1
- @import "../../tokens/colors";
2
- @import "../../tokens/spacing";
3
- @import "../../tokens/screen_sizes";
4
- @import "../../tokens/border_radius";
5
- @import "../../tokens/shadows";
6
-
7
- $selector: ".pb--page";
8
-
9
- body {
10
- overflow-x: hidden;
11
- }
12
-
13
- .pb--page {
14
- &--topNav {
15
- flex: 0 0;
16
- border-bottom: 1px solid $border_light;
17
- padding: 20px 30px;
18
- background: $white;
19
- h1 {
20
- display: flex;
21
- align-items: center;
22
- img {
23
- display: flex;
24
- }
25
- }
26
- }
27
- &--content {
28
- min-height: calc(100vh - 89px);
29
- @include break_at(breakpoint("lg")) {
30
- grid-template-columns: auto auto !important;
31
- }
32
- &--main {
33
- flex-grow: 1;
34
- padding: 40px 60px;
35
- height: calc(100vh - 89px);
36
- overflow: auto;
37
- @include break_at(breakpoint("lg")) {
38
- padding: $space-lg $space-xl;
39
- }
40
- }
41
- }
42
- &--hamburger, &--checkbox {
43
- position: absolute;
44
- right: $space-xl;
45
- top: 30px;
46
- display: none;
47
- font-size: $space-xl;
48
- width: 30px;
49
- height: 30px;
50
- color: $primary;
51
- cursor: pointer;
52
- @include break_at(breakpoint("lg")) {
53
- display: block;
54
- }
55
- }
56
- &--checkbox {
57
- opacity: 0;
58
- ~ #{$selector}--sideNav {
59
- @include break_at(breakpoint("lg")) {
60
- position: absolute;
61
- transform-origin: 0% 0%;
62
- transform: translate(100%, 0);
63
- transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
64
- border-radius: $border_rad_heavier;
65
- box-shadow: $shadow_deepest;
66
- top: 100px;
67
- right: 0;
68
- width: auto !important;
69
- padding: $space-xl;
70
- z-index: 1000;
71
- }
72
- }
73
- &:checked ~ #{$selector}--sideNav {
74
- @include break_at(breakpoint("lg")) {
75
- transform: translate(-10%, 0);
76
- }
77
- }
78
- }
79
-
80
- &--sideNav {
81
- height: calc(100vh - 89px);
82
- overflow: auto;
83
- .category_section {
84
- &.active {
85
- padding: $space_xs 0;
86
- background: $bg_light;
87
- }
88
- .sub_category {
89
- padding-left: $space_md;
90
- }
91
- }
92
- }
93
- }
94
-
95
- // Nav Tabs switch between Rails and React
96
- .pb--kit-type-nav {
97
- margin: 20px 0 30px;
98
- line-height: 34px;
99
- border-bottom: 2px solid rgba($border_light, 0.6);
100
-
101
- &.sample {
102
- margin: 0;
103
- border-bottom: 2px solid rgba(228, 232, 240, 0.6);
104
- background: rgb(23, 34, 87) !important;
105
- }
106
-
107
- a {
108
- padding: 0 10px;
109
- line-height: 34px;
110
- font-size: 14px;
111
- font-weight: 400;
112
- display: inline-block;
113
- position: relative;
114
-
115
- &::after {
116
- content: "";
117
- width: 100%;
118
- height: 3px;
119
- background: transparent;
120
- position: absolute;
121
- bottom: -2px;
122
- left: 0;
123
- border-radius: 1px;
124
- transition: all 0.2s ease;
125
- }
126
-
127
- &.active {
128
- font-weight: 600;
129
-
130
- &::after {
131
- background: $primary;
132
- }
133
- }
134
- }
135
- }