playbook_ui 13.31.0.pre.alpha.play1262iconstyles3172 → 13.31.0.pre.alpha.powercentrainplaybookpt23212
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_background/background.html.erb +2 -11
- data/app/pb_kits/playbook/pb_body/body.html.erb +1 -6
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +1 -6
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +1 -6
- data/app/pb_kits/playbook/pb_button/_button.scss +3 -3
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +3 -2
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_caption/caption.html.erb +1 -6
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -7
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +1 -1
- data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_detail/detail.html.erb +1 -6
- data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -6
- data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +1 -6
- data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +2 -5
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -6
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +15 -1
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +5 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +14 -19
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md +5 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md +7 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md +3 -5
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md +3 -5
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +3 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +2 -0
- data/app/pb_kits/playbook/pb_dropdown/index.js +33 -4
- data/app/pb_kits/playbook/pb_flex/flex.html.erb +1 -5
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +9 -0
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +1 -1
- data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +1 -6
- data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +1 -5
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +1 -5
- data/app/pb_kits/playbook/pb_icon/_icon.scss +1 -211
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +7 -99
- data/app/pb_kits/playbook/pb_icon/icon.rb +16 -22
- data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +8 -23
- data/app/pb_kits/playbook/tokens/_titles.scss +4 -4
- data/app/pb_kits/playbook/tokens/_typography.scss +10 -10
- data/dist/menu.yml +566 -472
- data/dist/playbook-rails.js +6 -6
- data/dist/reset.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
// Rails custom icon styles
|
1
2
|
svg.pb_custom_icon {
|
2
3
|
width: 1em;
|
3
4
|
fill: currentColor;
|
@@ -9,214 +10,3 @@ svg.pb_custom_icon {
|
|
9
10
|
.pb_icon_kit_emoji {
|
10
11
|
font-family: monospace;
|
11
12
|
}
|
12
|
-
|
13
|
-
$rotate-list: (90, 180, 270);
|
14
|
-
$flip-list: (
|
15
|
-
"horizontal": (-1, 1),
|
16
|
-
"vertical": (1, -1),
|
17
|
-
"both": (-1, -1)
|
18
|
-
);
|
19
|
-
|
20
|
-
@keyframes pb_icon_spin {
|
21
|
-
0% {
|
22
|
-
-webkit-transform: rotate(0);
|
23
|
-
transform: rotate(0);
|
24
|
-
}
|
25
|
-
100% {
|
26
|
-
-webkit-transform: rotate(360deg);
|
27
|
-
transform: rotate(360deg);
|
28
|
-
}
|
29
|
-
};
|
30
|
-
|
31
|
-
svg {
|
32
|
-
&.pb_icon_kit,
|
33
|
-
&.pb_custom_icon{
|
34
|
-
@each $r in $rotate-list {
|
35
|
-
&.rotate_#{$r} {
|
36
|
-
transform: rotate(#{$r}deg);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
@each $f, $v in $flip-list {
|
40
|
-
&.flip_#{$f} {
|
41
|
-
transform: scale($v);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
&.svg-inline--fa {
|
45
|
-
height: 1em;
|
46
|
-
overflow: visible;
|
47
|
-
vertical-align: -.125em
|
48
|
-
}
|
49
|
-
&.svg_inverse {
|
50
|
-
color: #fff;
|
51
|
-
}
|
52
|
-
&.svg_border {
|
53
|
-
border-color: #eee;
|
54
|
-
border-radius: .1em;
|
55
|
-
border-style: solid;
|
56
|
-
border-width: .08em;
|
57
|
-
padding: .2em .25em .15em;
|
58
|
-
}
|
59
|
-
&.svg_fw {
|
60
|
-
text-align: center;
|
61
|
-
width: 1.25em
|
62
|
-
}
|
63
|
-
&.svg_li {
|
64
|
-
left: calc(2em * -1);
|
65
|
-
position: absolute;
|
66
|
-
text-align: center;
|
67
|
-
width: 2em;
|
68
|
-
line-height: inherit
|
69
|
-
}
|
70
|
-
&.pull_left {
|
71
|
-
float: left;
|
72
|
-
margin-right: .3em;
|
73
|
-
}
|
74
|
-
|
75
|
-
&.pull_right {
|
76
|
-
float: right;
|
77
|
-
margin-left: .3em;
|
78
|
-
}
|
79
|
-
&.pulse {
|
80
|
-
animation-name: pb_icon_spin;
|
81
|
-
animation-direction: normal;
|
82
|
-
animation-duration: 1s;
|
83
|
-
animation-iteration-count: infinite;
|
84
|
-
animation-timing-function: steps(8);
|
85
|
-
}
|
86
|
-
&.spin {
|
87
|
-
animation-name: pb_icon_spin;
|
88
|
-
animation-delay: 0s;
|
89
|
-
animation-direction: normal;
|
90
|
-
animation-duration: 2s;
|
91
|
-
animation-iteration-count: infinite;
|
92
|
-
animation-timing-function: linear;
|
93
|
-
}
|
94
|
-
|
95
|
-
&.svg_xs {
|
96
|
-
font-size: 0.75em
|
97
|
-
}
|
98
|
-
|
99
|
-
&.svg_sm {
|
100
|
-
font-size: 0.875em
|
101
|
-
}
|
102
|
-
|
103
|
-
&.svg_lg {
|
104
|
-
font-size: 1.25em
|
105
|
-
}
|
106
|
-
|
107
|
-
&.svg_1x {
|
108
|
-
font-size: 1em
|
109
|
-
}
|
110
|
-
|
111
|
-
&.svg_2x {
|
112
|
-
font-size: 2em
|
113
|
-
}
|
114
|
-
|
115
|
-
&.svg_3x {
|
116
|
-
font-size: 3em
|
117
|
-
}
|
118
|
-
|
119
|
-
&.svg_4x {
|
120
|
-
font-size: 4em
|
121
|
-
}
|
122
|
-
|
123
|
-
&.svg_5x {
|
124
|
-
font-size: 5em
|
125
|
-
}
|
126
|
-
|
127
|
-
&.svg_6x {
|
128
|
-
font-size: 6em
|
129
|
-
}
|
130
|
-
|
131
|
-
&.svg_7x {
|
132
|
-
font-size: 7em
|
133
|
-
}
|
134
|
-
|
135
|
-
&.svg_8x {
|
136
|
-
font-size: 8em
|
137
|
-
}
|
138
|
-
|
139
|
-
&.svg_9x {
|
140
|
-
font-size: 9em
|
141
|
-
}
|
142
|
-
|
143
|
-
&.svg_10x {
|
144
|
-
font-size: 10em
|
145
|
-
}
|
146
|
-
&.fa-xs {
|
147
|
-
font-size: .75em;
|
148
|
-
line-height: .0833333337em;
|
149
|
-
vertical-align: .125em
|
150
|
-
}
|
151
|
-
&.fa-sm {
|
152
|
-
font-size: .875em;
|
153
|
-
line-height: .0714285718em;
|
154
|
-
vertical-align: .0535714295em
|
155
|
-
}
|
156
|
-
&.fa-lg {
|
157
|
-
font-size: 1.25em;
|
158
|
-
line-height: .05em;
|
159
|
-
vertical-align: -.075em
|
160
|
-
}
|
161
|
-
&.fa-pull-left {
|
162
|
-
float: left;
|
163
|
-
margin-right: .3em;
|
164
|
-
}
|
165
|
-
|
166
|
-
&.fa-pull-right {
|
167
|
-
float: right;
|
168
|
-
margin-left: .3em;
|
169
|
-
}
|
170
|
-
&.fa-li {
|
171
|
-
left: calc(2em * -1);
|
172
|
-
position: absolute;
|
173
|
-
text-align: center;
|
174
|
-
width: 2em;
|
175
|
-
line-height: inherit
|
176
|
-
}
|
177
|
-
&.svg-inline--fa.fa-li {
|
178
|
-
width: 2em;
|
179
|
-
top: .25em
|
180
|
-
}
|
181
|
-
&.svg-inline--fa.fa-fw {
|
182
|
-
width: 1.25em;
|
183
|
-
}
|
184
|
-
&.fa-fw {
|
185
|
-
text-align: center;
|
186
|
-
width: 1.25em
|
187
|
-
}
|
188
|
-
&.fa-layers {
|
189
|
-
display: inline-block;
|
190
|
-
height: 1em;
|
191
|
-
position: relative;
|
192
|
-
text-align: center;
|
193
|
-
vertical-align: -.125em;
|
194
|
-
width: 1em
|
195
|
-
}
|
196
|
-
&.fa-2x {
|
197
|
-
font-size: 2em
|
198
|
-
}
|
199
|
-
&.fa-3x {
|
200
|
-
font-size: 3em
|
201
|
-
}
|
202
|
-
&.fa-flip {
|
203
|
-
animation-name: fa-flip;
|
204
|
-
animation-delay: 0s;
|
205
|
-
animation-direction: normal;
|
206
|
-
animation-duration: 1s;
|
207
|
-
animation-iteration-count: infinite;
|
208
|
-
animation-timing-function: ease-in-out;
|
209
|
-
}
|
210
|
-
&.fa-spin {
|
211
|
-
animation-name: fa-spin;
|
212
|
-
animation-delay: 0s;
|
213
|
-
animation-direction: normal;
|
214
|
-
animation-duration: 2s;
|
215
|
-
animation-iteration-count: infinite;
|
216
|
-
animation-timing-function: linear;
|
217
|
-
}
|
218
|
-
&.fa-pulse {
|
219
|
-
animation: fa-spin 1s infinite linear;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
}
|
@@ -55,74 +55,10 @@ const aliases: AliasesJson = aliasesJson;
|
|
55
55
|
|
56
56
|
|
57
57
|
const flipMap = {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
none: ''
|
63
|
-
},
|
64
|
-
svg: {
|
65
|
-
horizontal: 'flip_horizontal',
|
66
|
-
vertical: 'flip_vertical',
|
67
|
-
both: 'flip_horizontal flip_vertical',
|
68
|
-
none: ''
|
69
|
-
}
|
70
|
-
}
|
71
|
-
const pulseMap = {
|
72
|
-
fa: 'fa-pulse',
|
73
|
-
svg: 'pulse'
|
74
|
-
}
|
75
|
-
const spinMap = {
|
76
|
-
fa: 'fa-spin',
|
77
|
-
svg: 'spin'
|
78
|
-
}
|
79
|
-
const rotateMap = {
|
80
|
-
fa: {
|
81
|
-
90: 'fa-rotate-90',
|
82
|
-
180: 'fa-rotate-180',
|
83
|
-
270: 'fa-rotate-270'
|
84
|
-
},
|
85
|
-
svg: {
|
86
|
-
90: 'rotate_90',
|
87
|
-
180: 'rotate_180',
|
88
|
-
270: 'rotate_270'
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
const sizeMap = {
|
93
|
-
fa: {
|
94
|
-
"lg": "fa-lg",
|
95
|
-
"xs": "fa-xs",
|
96
|
-
"sm": "fa-sm",
|
97
|
-
"1x": "fa-1x",
|
98
|
-
"2x": "fa-2x",
|
99
|
-
"3x": "fa-3x",
|
100
|
-
"4x": "fa-4x",
|
101
|
-
"5x": "fa-5x",
|
102
|
-
"6x": "fa-6x",
|
103
|
-
"7x": "fa-7x",
|
104
|
-
"8x": "fa-8x",
|
105
|
-
"9x": "fa-9x",
|
106
|
-
"10x": "fa-10x",
|
107
|
-
"": ""
|
108
|
-
},
|
109
|
-
svg: {
|
110
|
-
"lg": "svg_lg",
|
111
|
-
"xs": "svg_xs",
|
112
|
-
"sm": "svg_sm",
|
113
|
-
"1x": "svg_1x",
|
114
|
-
"2x": "svg_2x",
|
115
|
-
"3x": "svg_3x",
|
116
|
-
"4x": "svg_4x",
|
117
|
-
"5x": "svg_5x",
|
118
|
-
"6x": "svg_6x",
|
119
|
-
"7x": "svg_7x",
|
120
|
-
"8x": "svg_8x",
|
121
|
-
"9x": "svg_9x",
|
122
|
-
"10x": "svg_10x",
|
123
|
-
"": ""
|
124
|
-
}
|
125
|
-
|
58
|
+
horizontal: 'fa-flip-horizontal',
|
59
|
+
vertical: 'fa-flip-vertical',
|
60
|
+
both: 'fa-flip-horizontal fa-flip-vertical',
|
61
|
+
none: ""
|
126
62
|
}
|
127
63
|
|
128
64
|
declare global {
|
@@ -194,44 +130,16 @@ const Icon = (props: IconProps) => {
|
|
194
130
|
}
|
195
131
|
}
|
196
132
|
|
197
|
-
const
|
198
|
-
|
199
|
-
let classes = classnames(
|
133
|
+
const classes = classnames(
|
134
|
+
flipMap[flip],
|
200
135
|
(!iconElement && !customIcon) ? 'pb_icon_kit' : '',
|
201
136
|
(iconElement || customIcon) ? 'pb_custom_icon' : fontStyle,
|
202
137
|
iconElement ? 'svg-inline--fa' : '',
|
203
|
-
|
138
|
+
faClasses,
|
204
139
|
globalProps(props),
|
205
140
|
className
|
206
141
|
)
|
207
142
|
|
208
|
-
const transformClasses = classnames(
|
209
|
-
flip ? flipMap[isFA ? 'fa' : 'svg'][flip] : null,
|
210
|
-
pulse ? pulseMap[isFA ? 'fa' : 'svg'] : null,
|
211
|
-
rotation ? rotateMap[isFA ? 'fa' : 'svg'][rotation] : null,
|
212
|
-
spin ? spinMap[isFA ? 'fa' : 'svg'] : null,
|
213
|
-
size ? sizeMap[isFA ? 'fa' : 'svg'][size] : null,
|
214
|
-
border ? isFA ? 'fa-border' : 'svg_border' : null,
|
215
|
-
fixedWidth ? isFA ? 'fa-fw' : 'svg_fw' : null,
|
216
|
-
inverse ? isFA ? 'fa-inverse' : 'svg_inverse' : null,
|
217
|
-
listItem ? isFA ? 'fa-li' : 'svg_li' : null,
|
218
|
-
pull ? isFA ? `fa-pull-${pull}` : `pull_${pull}` : null,
|
219
|
-
)
|
220
|
-
classes += ` ${transformClasses}`
|
221
|
-
|
222
|
-
if (isFA) {
|
223
|
-
const faClassList = {
|
224
|
-
'fa-border': border,
|
225
|
-
'fa-fw': (iconElement) ? false : fixedWidth,
|
226
|
-
'fa-inverse': inverse,
|
227
|
-
'fa-li': listItem,
|
228
|
-
[`fa-${size}`]: size,
|
229
|
-
[`fa-pull-${pull}`]: pull,
|
230
|
-
}
|
231
|
-
faClassList[`fa-${icon}`] = icon as string
|
232
|
-
classes += ` ${classnames(faClassList)}`
|
233
|
-
}
|
234
|
-
|
235
143
|
const classesEmoji = classnames(
|
236
144
|
'pb_icon_kit_emoji',
|
237
145
|
globalProps(props),
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# rubocop:disable Style/HashLikeCase
|
4
|
+
|
3
5
|
require "open-uri"
|
4
6
|
require "json"
|
5
7
|
|
@@ -129,13 +131,11 @@ module Playbook
|
|
129
131
|
end
|
130
132
|
|
131
133
|
def border_class
|
132
|
-
|
133
|
-
border ? prefix : nil
|
134
|
+
border ? "fa-border" : nil
|
134
135
|
end
|
135
136
|
|
136
137
|
def fixed_width_class
|
137
|
-
|
138
|
-
fixed_width ? prefix : nil
|
138
|
+
fixed_width ? "fa-fw" : nil
|
139
139
|
end
|
140
140
|
|
141
141
|
def icon_class
|
@@ -143,45 +143,38 @@ module Playbook
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def inverse_class
|
146
|
-
|
147
|
-
inverse ? class_name : nil
|
146
|
+
inverse ? "fa-inverse" : nil
|
148
147
|
end
|
149
148
|
|
150
149
|
def list_item_class
|
151
|
-
|
152
|
-
list_item ? class_name : nil
|
150
|
+
list_item ? "fa-li" : nil
|
153
151
|
end
|
154
152
|
|
155
153
|
def flip_class
|
156
|
-
prefix = is_svg? ? "flip_" : "fa-flip-"
|
157
154
|
case flip
|
158
155
|
when "horizontal"
|
159
|
-
"
|
156
|
+
"fa-flip-horizontal"
|
160
157
|
when "vertical"
|
161
|
-
"
|
158
|
+
"fa-flip-vertical"
|
162
159
|
when "both"
|
163
|
-
"
|
160
|
+
"fa-flip-horizontal fa-flip-vertical"
|
164
161
|
end
|
165
162
|
end
|
166
163
|
|
167
164
|
def pull_class
|
168
|
-
|
169
|
-
pull ? class_name : nil
|
165
|
+
pull ? "fa-pull-#{pull}" : nil
|
170
166
|
end
|
171
167
|
|
172
168
|
def pulse_class
|
173
|
-
|
174
|
-
pulse ? class_name : nil
|
169
|
+
pulse ? "fa-pulse" : nil
|
175
170
|
end
|
176
171
|
|
177
172
|
def rotation_class
|
178
|
-
|
179
|
-
rotation ? class_name : nil
|
173
|
+
rotation ? "fa-rotate-#{rotation}" : nil
|
180
174
|
end
|
181
175
|
|
182
176
|
def size_class
|
183
|
-
|
184
|
-
size ? class_name : nil
|
177
|
+
size ? "fa-#{size}" : nil
|
185
178
|
end
|
186
179
|
|
187
180
|
def font_style_class
|
@@ -189,9 +182,10 @@ module Playbook
|
|
189
182
|
end
|
190
183
|
|
191
184
|
def spin_class
|
192
|
-
|
193
|
-
spin ? class_name : nil
|
185
|
+
spin ? "fa-spin" : nil
|
194
186
|
end
|
195
187
|
end
|
196
188
|
end
|
197
189
|
end
|
190
|
+
|
191
|
+
# rubocop:enable Style/HashLikeCase
|
@@ -95,11 +95,11 @@ test('should not have a left border', () => {
|
|
95
95
|
test('should have a right icon', () => {
|
96
96
|
render(<NavDefault iconRight="angle-down" />)
|
97
97
|
const kit = screen.getByTestId(itemTestId)
|
98
|
-
expect(kit).toContainHTML('<i class="pb_icon_kit far
|
98
|
+
expect(kit).toContainHTML('<i class="pb_icon_kit far fa-fw fa-angle-down pb_nav_list_item_icon_right" />')
|
99
99
|
})
|
100
100
|
|
101
101
|
test('should have a left icon', () => {
|
102
102
|
render(<NavDefault iconLeft="users-class" />)
|
103
103
|
const kit = screen.getByTestId(itemTestId)
|
104
|
-
expect(kit).toContainHTML('<i class="pb_icon_kit far
|
104
|
+
expect(kit).toContainHTML('<i class="pb_icon_kit far fa-fw fa-users-class pb_nav_list_item_icon_left" />')
|
105
105
|
})
|
@@ -86,33 +86,18 @@ const RichTextEditor = (props: RichTextEditorProps): React.ReactElement => {
|
|
86
86
|
const toolbarElement = element.parentElement.querySelector('trix-toolbar') as HTMLElement,
|
87
87
|
blockCodeButton = toolbarElement.querySelector('[data-trix-attribute=code]') as HTMLElement
|
88
88
|
|
89
|
+
// replace default trix "block code" button with "inline code" button
|
89
90
|
let inlineCodeButton = toolbarElement.querySelector('[data-trix-attribute=inlineCode]') as HTMLElement
|
90
|
-
if (!inlineCodeButton)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
if (!inlineCodeButton) {
|
92
|
+
inlineCodeButton = blockCodeButton.cloneNode(true) as HTMLElement
|
93
|
+
blockCodeButton.hidden = true
|
94
|
+
// set button attributes
|
95
|
+
inlineCodeButton.dataset.trixAttribute = 'inlineCode'
|
96
|
+
blockCodeButton.insertAdjacentElement('afterend', inlineCodeButton)
|
97
|
+
}
|
95
98
|
|
96
99
|
if (toolbarBottom) editor.element.after(toolbarElement)
|
97
100
|
|
98
|
-
const getCodeFormattingType = (): string => {
|
99
|
-
if (editor.attributeIsActive('code')) return 'block'
|
100
|
-
if (editor.attributeIsActive('inlineCode')) return 'inline'
|
101
|
-
|
102
|
-
const range = editor.getSelectedRange()
|
103
|
-
if (range[0] == range[1]) return 'block'
|
104
|
-
|
105
|
-
const text = editor.getSelectedDocument().toString().trim()
|
106
|
-
return /\n/.test(text) ? 'block' : 'inline'
|
107
|
-
}
|
108
|
-
|
109
|
-
// DOM event listeners
|
110
|
-
element.addEventListener('trix-selection-change', () => {
|
111
|
-
const type = getCodeFormattingType()
|
112
|
-
blockCodeButton.hidden = type == 'inline'
|
113
|
-
inlineCodeButton.hidden = type == 'block'
|
114
|
-
})
|
115
|
-
|
116
101
|
focus
|
117
102
|
? (document.addEventListener('trix-focus', useFocus),
|
118
103
|
document.addEventListener('trix-blur', useFocus),
|
@@ -5,10 +5,11 @@
|
|
5
5
|
@mixin pb_title(
|
6
6
|
$fontSize: $heading_1,
|
7
7
|
$fontWeight: $lighter,
|
8
|
-
$lineHeight: $lh_tighter
|
8
|
+
$lineHeight: $lh_tighter,
|
9
|
+
$letterSpacing: $lspace_tight
|
9
10
|
){
|
10
11
|
font-size: $fontSize;
|
11
|
-
letter-spacing: $
|
12
|
+
letter-spacing: $letterSpacing;
|
12
13
|
font-weight: $fontWeight;
|
13
14
|
color: $text_lt_default;
|
14
15
|
margin: 0;
|
@@ -29,8 +30,7 @@
|
|
29
30
|
}
|
30
31
|
|
31
32
|
@mixin pb_title_4 {
|
32
|
-
@include pb_title($heading_4, $bolder);
|
33
|
-
letter-spacing: -0.03em;
|
33
|
+
@include pb_title($heading_4, $bolder, $letterSpacing: $lspace_normal);
|
34
34
|
}
|
35
35
|
|
36
36
|
@mixin pb_title_dark {
|
@@ -1,11 +1,11 @@
|
|
1
|
-
$font_family_base: "
|
1
|
+
$font_family_base: "Power Centra", "Helvetica Neue", Helvetica, Arial, sans_serif !default;
|
2
2
|
|
3
3
|
/* CLEAN UP AND REMOVE */
|
4
4
|
$font_jumbo: 36px !default;
|
5
5
|
$font_largest: 32px !default;
|
6
|
-
$font_larger:
|
6
|
+
$font_larger: 27px !default;
|
7
7
|
$font_large: 20px !default;
|
8
|
-
$font_base:
|
8
|
+
$font_base: 15.5px !default;
|
9
9
|
$font_default: $font_base !default;
|
10
10
|
$font_normal: $font_base !default;
|
11
11
|
$font_medium: $font_base !default;
|
@@ -26,8 +26,8 @@ $text_smaller: $font_smaller !default;
|
|
26
26
|
$text_smallest: $font_smallest !default;
|
27
27
|
|
28
28
|
/* Headings */
|
29
|
-
$heading_1:
|
30
|
-
$heading_2:
|
29
|
+
$heading_1: 44px !default;
|
30
|
+
$heading_2: 32px !default;
|
31
31
|
$heading_3: $font_larger !default;
|
32
32
|
$heading_4: $font_base !default;
|
33
33
|
|
@@ -35,19 +35,19 @@ $heading_4: $font_base !default;
|
|
35
35
|
$lspace_tightest: -.1em !default;
|
36
36
|
$lspace_tighter: -.07em !default;
|
37
37
|
$lspace_tight: -.01em !default;
|
38
|
-
$lspace_normal:
|
38
|
+
$lspace_normal: .003em !default;
|
39
39
|
$lspace_loose: .03em !default;
|
40
40
|
$lspace_looser: .07em !default;
|
41
41
|
$lspace_loosest: .1em !default;
|
42
42
|
$lspace_super_loosest: .2em !default;
|
43
43
|
|
44
44
|
/* Standard Font Weights */
|
45
|
-
$bold:
|
45
|
+
$bold: 700 !default;
|
46
46
|
$regular: 400 !default;
|
47
47
|
|
48
48
|
/* Non_Standard Font Weights */
|
49
|
-
$extrabold:
|
50
|
-
$boldest:
|
49
|
+
$extrabold: 700 !default;
|
50
|
+
$boldest: 700 !default;
|
51
51
|
$bolder: 700 !default;
|
52
52
|
$light: 300 !default;
|
53
|
-
$lighter:
|
53
|
+
$lighter: 300 !default;
|