playbook_ui 9.16.0 → 9.17.0.pre.decouple.website2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +5 -9
- data/app/pb_kits/playbook/_reset.scss +42 -0
- data/app/pb_kits/playbook/index.js +97 -97
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +2 -1
- data/app/pb_kits/playbook/pb_enhanced_element/index.js +2 -1
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +10 -8
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +3 -3
- data/app/pb_kits/playbook/pb_title/_title.scss +1 -1
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +1 -40
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +14 -15
- data/app/pb_kits/playbook/playbook-doc.js +195 -0
- data/app/pb_kits/playbook/playbook-rails-react-bindings.js +35 -0
- data/app/pb_kits/playbook/{vendor.js → playbook-rails.js} +1 -5
- data/app/pb_kits/playbook/tokens/_colors.scss +4 -0
- data/app/pb_kits/playbook/tokens/_titles.scss +38 -0
- data/app/pb_kits/playbook/utilities/_colors.scss +0 -4
- data/lib/playbook.rb +1 -15
- data/lib/playbook/engine.rb +11 -21
- data/lib/playbook/props/nested_props.rb +1 -1
- data/lib/playbook/version.rb +2 -2
- metadata +20 -135
- data/app/assets/images/clark.jpg +0 -0
- data/app/assets/images/full_page_samples.svg +0 -7
- data/app/assets/images/giant.jpg +0 -0
- data/app/assets/images/github-brands.svg +0 -1
- data/app/assets/images/landing-background.svg +0 -36
- data/app/assets/images/landing-image.svg +0 -203
- data/app/assets/images/pb-caret.svg +0 -1
- data/app/assets/images/pb-check.svg +0 -11
- data/app/assets/images/pb-logo.svg +0 -28
- data/app/assets/images/pb-white-logo.svg +0 -15
- data/app/assets/images/pb.logo.svg +0 -28
- data/app/pb_kits/playbook/react_rails_kits.js +0 -13
- data/app/pb_kits/playbook/utilities/accessibility.js +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50491254a560f34bc2528feebb01b4e696045328077c3aafbec2f2b8142189b6
|
4
|
+
data.tar.gz: 5280bde02d6d5c84660d91e1d10e4a42f23a1f80695cdb3e375ccc97aa36a6c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e4081a4115206dbd90913acf28543305864764b2f50024d37ca5abe639427fdae1b0070e35c82420cdbfb9e40273258a8187b8ee0b4f350c7e27af1eecf0d5
|
7
|
+
data.tar.gz: cfc39f72a4453eea6906f284cee3bc7840e75821189d5a48217eedd3abbb5dd8197fa2702a92a2b54a47016f33165c411385289463c8b669de32dbb18fdaef4c
|
data/Rakefile
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
begin
|
2
|
-
require
|
4
|
+
require "bundler/setup"
|
3
5
|
rescue LoadError
|
4
|
-
puts
|
6
|
+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
5
7
|
end
|
6
8
|
|
7
|
-
|
8
|
-
load 'rails/tasks/engine.rake'
|
9
|
-
load 'rails/tasks/statistics.rake'
|
10
|
-
|
11
|
-
require 'bundler/gem_tasks'
|
9
|
+
require "bundler/gem_tasks"
|
12
10
|
|
13
11
|
Dir["private/tasks/*.rake"].each(&method(:load))
|
14
|
-
|
15
|
-
task default: :test
|
@@ -0,0 +1,42 @@
|
|
1
|
+
@import "./tokens/typography";
|
2
|
+
@import "./tokens/colors";
|
3
|
+
|
4
|
+
* {
|
5
|
+
box-sizing: border-box;
|
6
|
+
margin: 0;
|
7
|
+
padding: 0;
|
8
|
+
&:before,
|
9
|
+
&:after {
|
10
|
+
box-sizing: border-box;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
html {
|
15
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
16
|
+
height: 100vh;
|
17
|
+
overflow-x: hidden;
|
18
|
+
}
|
19
|
+
|
20
|
+
body {
|
21
|
+
font-family: $font_family_base;
|
22
|
+
font-size: $font_base;
|
23
|
+
line-height: 1.5;
|
24
|
+
background-color: $bg-light;
|
25
|
+
height: 100%;
|
26
|
+
letter-spacing: $lspace_normal;
|
27
|
+
font-weight: $regular;
|
28
|
+
font-style: normal;
|
29
|
+
text-rendering: optimizeLegibility;
|
30
|
+
-moz-font-feature-settings: "liga" on;
|
31
|
+
color: $charcoal;
|
32
|
+
margin: 0 !important;
|
33
|
+
padding: 0 !important;
|
34
|
+
box-sizing: border-box;
|
35
|
+
min-height: 100vh;
|
36
|
+
padding: 50px; // REMOVE AFTER STYLED
|
37
|
+
}
|
38
|
+
|
39
|
+
a {
|
40
|
+
text-decoration: none;
|
41
|
+
color: $primary;
|
42
|
+
}
|
@@ -4,103 +4,103 @@ import 'lazysizes/plugins/attrchange/ls.attrchange'
|
|
4
4
|
import 'lazysizes'
|
5
5
|
|
6
6
|
// vvv React Component JSX Imports from the React Kits vvv
|
7
|
-
export Avatar from './pb_avatar/_avatar
|
8
|
-
export AvatarActionButton from './pb_avatar_action_button/_avatar_action_button
|
9
|
-
export Background from './pb_background/_background
|
10
|
-
export Badge from './pb_badge/_badge
|
11
|
-
export BarGraph from './pb_bar_graph/_bar_graph
|
12
|
-
export Body from './pb_body/_body
|
13
|
-
export BreadCrumbs from './pb_bread_crumbs/_bread_crumbs
|
14
|
-
export Button from './pb_button/_button
|
15
|
-
export ButtonToolbar from './pb_button_toolbar/_button_toolbar
|
16
|
-
export Caption from './pb_caption/_caption
|
17
|
-
export Card from './pb_card/_card
|
18
|
-
export Checkbox from './pb_checkbox/_checkbox
|
19
|
-
export CircleChart from './pb_circle_chart/_circle_chart
|
20
|
-
export CircleIconButton from './pb_circle_icon_button/_circle_icon_button
|
21
|
-
export Collapsible from './pb_collapsible/_collapsible
|
22
|
-
export Contact from './pb_contact/_contact
|
23
|
-
export Currency from './pb_currency/_currency
|
24
|
-
export DashboardValue from './pb_dashboard_value/_dashboard_value
|
25
|
-
export Date from './pb_date/_date
|
26
|
-
export DatePicker from './pb_date_picker/_date_picker
|
27
|
-
export DateRangeInline from './pb_date_range_inline/_date_range_inline
|
28
|
-
export DateRangeStacked from './pb_date_range_stacked/_date_range_stacked
|
29
|
-
export DateStacked from './pb_date_stacked/_date_stacked
|
30
|
-
export DateTime from './pb_date_time/_date_time
|
31
|
-
export DateTimeStacked from './pb_date_time_stacked/_date_time_stacked
|
32
|
-
export DateYearStacked from './pb_date_year_stacked/_date_year_stacked
|
33
|
-
export Dialog from './pb_dialog/_dialog
|
34
|
-
export DistributionBar from './pb_distribution_bar/_distribution_bar
|
35
|
-
export FileUpload from './pb_file_upload/_file_upload
|
36
|
-
export Filter from './pb_filter/_filter
|
37
|
-
export FixedConfirmationToast from './pb_fixed_confirmation_toast/_fixed_confirmation_toast
|
38
|
-
export Flex from './pb_flex/_flex
|
39
|
-
export FlexItem from './pb_flex/_flex_item
|
40
|
-
export FormGroup from './pb_form_group/_form_group
|
41
|
-
export FormPill from './pb_form_pill/_form_pill
|
42
|
-
export Gauge from './pb_gauge/_gauge
|
43
|
-
export Hashtag from './pb_hashtag/_hashtag
|
44
|
-
export Highlight from './pb_highlight/_highlight
|
45
|
-
export HomeAddressStreet from './pb_home_address_street/_home_address_street
|
46
|
-
export Icon from './pb_icon/_icon
|
47
|
-
export IconCircle from './pb_icon_circle/_icon_circle
|
48
|
-
export IconStatValue from './pb_icon_stat_value/_icon_stat_value
|
49
|
-
export IconValue from './pb_icon_value/_icon_value
|
50
|
-
export Image from './pb_image/_image
|
51
|
-
export LabelPill from './pb_label_pill/_label_pill
|
52
|
-
export LabelValue from './pb_label_value/_label_value
|
53
|
-
export Layout from './pb_layout/_layout
|
54
|
-
export Legend from './pb_legend/_legend
|
55
|
-
export LineGraph from './pb_line_graph/_line_graph
|
56
|
-
export List from './pb_list/_list
|
57
|
-
export ListItem from './pb_list/_list_item
|
58
|
-
export LoadingInline from './pb_loading_inline/_loading_inline
|
59
|
-
export Message from './pb_message/_message
|
60
|
-
export MultipleUsers from './pb_multiple_users/_multiple_users
|
61
|
-
export MultipleUsersStacked from './pb_multiple_users_stacked/_multiple_users_stacked
|
62
|
-
export Nav from './pb_nav/_nav
|
63
|
-
export NavItem from './pb_nav/_item
|
64
|
-
export OnlineStatus from './pb_online_status/_online_status
|
65
|
-
export Passphrase from './pb_passphrase/_passphrase
|
66
|
-
export PbReactPopover from './pb_popover/_popover
|
67
|
-
export Person from './pb_person/_person
|
68
|
-
export PersonContact from './pb_person_contact/_person_contact
|
69
|
-
export Pill from './pb_pill/_pill
|
70
|
-
export ProgressPills from './pb_progress_pills/_progress_pills
|
71
|
-
export ProgressSimple from './pb_progress_simple/_progress_simple
|
72
|
-
export ProgressStep from './pb_progress_step/_progress_step
|
73
|
-
export ProgressStepItem from './pb_progress_step/_progress_step_item
|
74
|
-
export Radio from './pb_radio/_radio
|
75
|
-
export RichTextEditor from './pb_rich_text_editor/_rich_text_editor
|
76
|
-
export SectionSeparator from './pb_section_separator/_section_separator
|
77
|
-
export Select from './pb_select/_select
|
78
|
-
export SelectableCard from './pb_selectable_card/_selectable_card
|
79
|
-
export SelectableCardIcon from './pb_selectable_card_icon/_selectable_card_icon
|
80
|
-
export SelectableIcon from './pb_selectable_icon/_selectable_icon
|
81
|
-
export SelectableList from './pb_selectable_list/_selectable_list
|
82
|
-
export SelectableListItem from './pb_selectable_list/_item
|
83
|
-
export Source from './pb_source/_source
|
84
|
-
export StarRating from './pb_star_rating/_star_rating
|
85
|
-
export StatChange from './pb_stat_change/_stat_change
|
86
|
-
export StatValue from './pb_stat_value/_stat_value
|
87
|
-
export Table from './pb_table/_table
|
88
|
-
export TableRow from './pb_table/_table_row
|
89
|
-
export TextInput from './pb_text_input/_text_input
|
90
|
-
export Textarea from './pb_textarea/_textarea
|
91
|
-
export Time from './pb_time/_time
|
92
|
-
export TimeRangeInline from './pb_time_range_inline/_time_range_inline
|
93
|
-
export TimeStacked from './pb_time_stacked/_time_stacked
|
94
|
-
export Timeline from './pb_timeline/_timeline
|
95
|
-
export Timestamp from './pb_timestamp/_timestamp
|
96
|
-
export Title from './pb_title/_title
|
97
|
-
export TitleCount from './pb_title_count/_title_count
|
98
|
-
export TitleDetail from './pb_title_detail/_title_detail
|
99
|
-
export Toggle from './pb_toggle/_toggle
|
100
|
-
export Typeahead from './pb_typeahead/_typeahead
|
101
|
-
export User from './pb_user/_user
|
102
|
-
export UserBadge from './pb_user_badge/_user_badge
|
103
|
-
export WeekdayStacked from './pb_weekday_stacked/_weekday_stacked
|
7
|
+
export Avatar from './pb_avatar/_avatar'
|
8
|
+
export AvatarActionButton from './pb_avatar_action_button/_avatar_action_button'
|
9
|
+
export Background from './pb_background/_background'
|
10
|
+
export Badge from './pb_badge/_badge'
|
11
|
+
export BarGraph from './pb_bar_graph/_bar_graph'
|
12
|
+
export Body from './pb_body/_body'
|
13
|
+
export BreadCrumbs from './pb_bread_crumbs/_bread_crumbs'
|
14
|
+
export Button from './pb_button/_button'
|
15
|
+
export ButtonToolbar from './pb_button_toolbar/_button_toolbar'
|
16
|
+
export Caption from './pb_caption/_caption'
|
17
|
+
export Card from './pb_card/_card'
|
18
|
+
export Checkbox from './pb_checkbox/_checkbox'
|
19
|
+
export CircleChart from './pb_circle_chart/_circle_chart'
|
20
|
+
export CircleIconButton from './pb_circle_icon_button/_circle_icon_button'
|
21
|
+
export Collapsible from './pb_collapsible/_collapsible'
|
22
|
+
export Contact from './pb_contact/_contact'
|
23
|
+
export Currency from './pb_currency/_currency'
|
24
|
+
export DashboardValue from './pb_dashboard_value/_dashboard_value'
|
25
|
+
export Date from './pb_date/_date'
|
26
|
+
export DatePicker from './pb_date_picker/_date_picker'
|
27
|
+
export DateRangeInline from './pb_date_range_inline/_date_range_inline'
|
28
|
+
export DateRangeStacked from './pb_date_range_stacked/_date_range_stacked'
|
29
|
+
export DateStacked from './pb_date_stacked/_date_stacked'
|
30
|
+
export DateTime from './pb_date_time/_date_time'
|
31
|
+
export DateTimeStacked from './pb_date_time_stacked/_date_time_stacked'
|
32
|
+
export DateYearStacked from './pb_date_year_stacked/_date_year_stacked'
|
33
|
+
export Dialog from './pb_dialog/_dialog'
|
34
|
+
export DistributionBar from './pb_distribution_bar/_distribution_bar'
|
35
|
+
export FileUpload from './pb_file_upload/_file_upload'
|
36
|
+
export Filter from './pb_filter/_filter'
|
37
|
+
export FixedConfirmationToast from './pb_fixed_confirmation_toast/_fixed_confirmation_toast'
|
38
|
+
export Flex from './pb_flex/_flex'
|
39
|
+
export FlexItem from './pb_flex/_flex_item'
|
40
|
+
export FormGroup from './pb_form_group/_form_group'
|
41
|
+
export FormPill from './pb_form_pill/_form_pill'
|
42
|
+
export Gauge from './pb_gauge/_gauge'
|
43
|
+
export Hashtag from './pb_hashtag/_hashtag'
|
44
|
+
export Highlight from './pb_highlight/_highlight'
|
45
|
+
export HomeAddressStreet from './pb_home_address_street/_home_address_street'
|
46
|
+
export Icon from './pb_icon/_icon'
|
47
|
+
export IconCircle from './pb_icon_circle/_icon_circle'
|
48
|
+
export IconStatValue from './pb_icon_stat_value/_icon_stat_value'
|
49
|
+
export IconValue from './pb_icon_value/_icon_value'
|
50
|
+
export Image from './pb_image/_image'
|
51
|
+
export LabelPill from './pb_label_pill/_label_pill'
|
52
|
+
export LabelValue from './pb_label_value/_label_value'
|
53
|
+
export Layout from './pb_layout/_layout'
|
54
|
+
export Legend from './pb_legend/_legend'
|
55
|
+
export LineGraph from './pb_line_graph/_line_graph'
|
56
|
+
export List from './pb_list/_list'
|
57
|
+
export ListItem from './pb_list/_list_item'
|
58
|
+
export LoadingInline from './pb_loading_inline/_loading_inline'
|
59
|
+
export Message from './pb_message/_message'
|
60
|
+
export MultipleUsers from './pb_multiple_users/_multiple_users'
|
61
|
+
export MultipleUsersStacked from './pb_multiple_users_stacked/_multiple_users_stacked'
|
62
|
+
export Nav from './pb_nav/_nav'
|
63
|
+
export NavItem from './pb_nav/_item'
|
64
|
+
export OnlineStatus from './pb_online_status/_online_status'
|
65
|
+
export Passphrase from './pb_passphrase/_passphrase'
|
66
|
+
export PbReactPopover from './pb_popover/_popover'
|
67
|
+
export Person from './pb_person/_person'
|
68
|
+
export PersonContact from './pb_person_contact/_person_contact'
|
69
|
+
export Pill from './pb_pill/_pill'
|
70
|
+
export ProgressPills from './pb_progress_pills/_progress_pills'
|
71
|
+
export ProgressSimple from './pb_progress_simple/_progress_simple'
|
72
|
+
export ProgressStep from './pb_progress_step/_progress_step'
|
73
|
+
export ProgressStepItem from './pb_progress_step/_progress_step_item'
|
74
|
+
export Radio from './pb_radio/_radio'
|
75
|
+
export RichTextEditor from './pb_rich_text_editor/_rich_text_editor'
|
76
|
+
export SectionSeparator from './pb_section_separator/_section_separator'
|
77
|
+
export Select from './pb_select/_select'
|
78
|
+
export SelectableCard from './pb_selectable_card/_selectable_card'
|
79
|
+
export SelectableCardIcon from './pb_selectable_card_icon/_selectable_card_icon'
|
80
|
+
export SelectableIcon from './pb_selectable_icon/_selectable_icon'
|
81
|
+
export SelectableList from './pb_selectable_list/_selectable_list'
|
82
|
+
export SelectableListItem from './pb_selectable_list/_item'
|
83
|
+
export Source from './pb_source/_source'
|
84
|
+
export StarRating from './pb_star_rating/_star_rating'
|
85
|
+
export StatChange from './pb_stat_change/_stat_change'
|
86
|
+
export StatValue from './pb_stat_value/_stat_value'
|
87
|
+
export Table from './pb_table/_table'
|
88
|
+
export TableRow from './pb_table/_table_row'
|
89
|
+
export TextInput from './pb_text_input/_text_input'
|
90
|
+
export Textarea from './pb_textarea/_textarea'
|
91
|
+
export Time from './pb_time/_time'
|
92
|
+
export TimeRangeInline from './pb_time_range_inline/_time_range_inline'
|
93
|
+
export TimeStacked from './pb_time_stacked/_time_stacked'
|
94
|
+
export Timeline from './pb_timeline/_timeline'
|
95
|
+
export Timestamp from './pb_timestamp/_timestamp'
|
96
|
+
export Title from './pb_title/_title'
|
97
|
+
export TitleCount from './pb_title_count/_title_count'
|
98
|
+
export TitleDetail from './pb_title_detail/_title_detail'
|
99
|
+
export Toggle from './pb_toggle/_toggle'
|
100
|
+
export Typeahead from './pb_typeahead/_typeahead'
|
101
|
+
export User from './pb_user/_user'
|
102
|
+
export UserBadge from './pb_user_badge/_user_badge'
|
103
|
+
export WeekdayStacked from './pb_weekday_stacked/_weekday_stacked'
|
104
104
|
// ^^^ React Component JSX Imports from the React Kits ^^^
|
105
105
|
|
106
106
|
// Dashboard Settings
|
@@ -26,11 +26,12 @@ export default class PbEnhancedElement {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
static addMatch(element) {
|
29
|
-
if (this.elements.has(element)) return
|
29
|
+
if (element._pbEnhanced || this.elements.has(element)) return
|
30
30
|
|
31
31
|
const enhansedElement = new this(element)
|
32
32
|
enhansedElement.connect()
|
33
33
|
this.elements.set(element, enhansedElement)
|
34
|
+
element._pbEnhanced = enhansedElement
|
34
35
|
}
|
35
36
|
|
36
37
|
static removeMatch(element) {
|
@@ -3,8 +3,8 @@
|
|
3
3
|
@import "../tokens/border_radius";
|
4
4
|
@import "../tokens/animation-curves";
|
5
5
|
@import "../tokens/typography";
|
6
|
+
@import "../tokens/titles";
|
6
7
|
@import "../pb_body/body_mixins";
|
7
|
-
@import "../pb_title/title_mixin";
|
8
8
|
@import "./subtle_mixin";
|
9
9
|
|
10
10
|
$selector: ".pb_nav_list";
|
@@ -134,7 +134,7 @@ $selector: ".pb_nav_list";
|
|
134
134
|
border-bottom: 0;
|
135
135
|
}
|
136
136
|
}
|
137
|
-
|
137
|
+
|
138
138
|
}
|
139
139
|
|
140
140
|
//Image Wrapper
|
@@ -2,11 +2,18 @@
|
|
2
2
|
|
3
3
|
import React, { useEffect, useRef } from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
|
-
import useFocus from './useFocus
|
6
|
-
import
|
7
|
-
import { globalProps } from '../utilities/globalProps.js'
|
5
|
+
import useFocus from './useFocus'
|
6
|
+
import { globalProps } from '../utilities/globalProps'
|
8
7
|
import { buildAriaProps, buildDataProps } from '../utilities/props'
|
9
8
|
|
9
|
+
try {
|
10
|
+
const Trix = require('trix')
|
11
|
+
Trix.config.textAttributes.inlineCode = {
|
12
|
+
tagName: 'code',
|
13
|
+
inheritable: true,
|
14
|
+
}
|
15
|
+
} catch (_e) { /* do nothing */ }
|
16
|
+
|
10
17
|
type RichTextEditorProps = {
|
11
18
|
aria?: object,
|
12
19
|
toolbarBottom?: Boolean,
|
@@ -46,11 +53,6 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
46
53
|
const dataProps = buildDataProps(data)
|
47
54
|
|
48
55
|
useEffect(() => {
|
49
|
-
Trix.config.textAttributes.inlineCode = {
|
50
|
-
tagName: 'code',
|
51
|
-
inheritable: true,
|
52
|
-
}
|
53
|
-
|
54
56
|
trixRef.current.addEventListener('trix-initialize', (event) => {
|
55
57
|
const element = event.target
|
56
58
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import "../pb_body/body_mixins";
|
2
2
|
@import "./textarea_mixin";
|
3
|
-
@import "../pb_title/title_mixin";
|
4
3
|
@import "../tokens/spacing";
|
4
|
+
@import "../tokens/titles";
|
5
5
|
|
6
6
|
[class^=pb_textarea_kit] {
|
7
7
|
margin-bottom: $space_sm;
|
8
|
-
|
8
|
+
|
9
9
|
[class^=pb_caption_kit] {
|
10
10
|
margin-bottom: $space_xs;
|
11
11
|
display: block;
|
@@ -28,7 +28,7 @@
|
|
28
28
|
.pb_text_area_kit:hover {
|
29
29
|
background-color: rgba($focus_input_light,$opacity_5);
|
30
30
|
}
|
31
|
-
|
31
|
+
|
32
32
|
&.resize_both > textarea {
|
33
33
|
resize: both;
|
34
34
|
overflow: auto;
|
@@ -1,40 +1 @@
|
|
1
|
-
@import "../tokens/
|
2
|
-
@import "../tokens/typography";
|
3
|
-
@import "../tokens/line_height";
|
4
|
-
|
5
|
-
@mixin pb_title(
|
6
|
-
$fontSize: $heading_1,
|
7
|
-
$fontWeight: $lighter,
|
8
|
-
$lineHeight: $lh_tighter
|
9
|
-
){
|
10
|
-
font-size: $fontSize;
|
11
|
-
letter-spacing: $lspace_tight;
|
12
|
-
font-weight: $fontWeight;
|
13
|
-
color: $text_lt_default;
|
14
|
-
margin: 0;
|
15
|
-
line-height: $lineHeight;
|
16
|
-
font-family: $font_family_base;
|
17
|
-
}
|
18
|
-
|
19
|
-
@mixin pb_title_1 {
|
20
|
-
@include pb_title($heading_1);
|
21
|
-
letter-spacing: -0.03em;
|
22
|
-
}
|
23
|
-
|
24
|
-
@mixin pb_title_2 {
|
25
|
-
@include pb_title($heading_2, $lighter, 0.96);
|
26
|
-
}
|
27
|
-
|
28
|
-
@mixin pb_title_3 {
|
29
|
-
@include pb_title($heading_3);
|
30
|
-
}
|
31
|
-
|
32
|
-
@mixin pb_title_4 {
|
33
|
-
@include pb_title($heading_4, $bolder);
|
34
|
-
}
|
35
|
-
|
36
|
-
@mixin pb_title_dark {
|
37
|
-
color: $text_dk_default;
|
38
|
-
}
|
39
|
-
|
40
|
-
|
1
|
+
@import "../tokens/titles";
|