playbook_ui 13.0.0.pre.alpha.PLAY966collapsiblenav41129 → 13.0.0.pre.alpha.salesbookmismatchingdate1120
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_collapsible/child_kits/CollapsibleMain.tsx +1 -1
- data/app/pb_kits/playbook/pb_kit/dateTime.ts +55 -48
- data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +14 -16
- data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +115 -86
- data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +58 -58
- data/app/pb_kits/playbook/pb_nav/_item.tsx +138 -234
- data/app/pb_kits/playbook/pb_nav/_mixins.scss +5 -0
- data/app/pb_kits/playbook/pb_nav/_nav.scss +0 -38
- data/app/pb_kits/playbook/pb_nav/_nav.tsx +1 -17
- data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +11 -9
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +59 -50
- data/app/pb_kits/playbook/pb_nav/docs/_block_no_title_nav.jsx +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +1 -4
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.html.erb +4 -4
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +10 -4
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +1 -5
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.html.erb +12 -12
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.jsx +1 -13
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.md +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_no_highlight_nav.jsx +1 -4
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_nav.jsx +1 -4
- data/app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx +1 -4
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +5 -5
- data/app/pb_kits/playbook/pb_nav/item.html.erb +12 -19
- data/app/pb_kits/playbook/pb_nav/item.rb +14 -55
- data/app/pb_kits/playbook/pb_nav/nav.html.erb +1 -3
- data/app/pb_kits/playbook/pb_time/_time.tsx +1 -1
- data/dist/playbook-rails.js +5 -5
- data/lib/playbook/version.rb +1 -1
- metadata +3 -4
- data/app/pb_kits/playbook/pb_nav/_collapsible_trail_mixin.scss +0 -14
- data/app/pb_kits/playbook/pb_nav/navTypes.ts +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e814815e52260f723ffe7d60a15296ebe7c522dbaf99e1635aa32d72c30264
|
4
|
+
data.tar.gz: 91ddc7e14810c34ecb755a4036e059d771ac84532b73d050a5ddb8fb9b02d659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f47045dd3d5db61e4b75d1015cbb10229bf6a22a44af748a77db1084ae9f610699b882cd15d32cc969eb401ea6f89f83803cbc6a449cb4a46a2bda8d44d3e1
|
7
|
+
data.tar.gz: 79237b4941b973520b016f302f8170f91893855a748da55c9b3c5e21ce42eea6331b41201ae31cb196de215dbffc51c35231d086afe3c2c879ec4fbb541e9899
|
@@ -104,7 +104,7 @@ const CollapsibleMain = ({
|
|
104
104
|
}
|
105
105
|
|
106
106
|
return (
|
107
|
-
<div className={classnames(mainCSS,
|
107
|
+
<div className={classnames(mainCSS, className, mainSpacing)}>
|
108
108
|
<div onClick={handleCollapsibleClick}>
|
109
109
|
<Flex
|
110
110
|
spacing="between"
|
@@ -17,92 +17,97 @@ const formatDate = (newDate: Date | string) => {
|
|
17
17
|
|
18
18
|
export const toMinute = (newDate: Date | string, timeZone?: string): string => {
|
19
19
|
const date = formatDate(newDate)
|
20
|
+
|
20
21
|
if (timeZone) {
|
21
|
-
return date.toLocaleTimeString(
|
22
|
+
return date.toLocaleTimeString("en-US", { timeZone, hour: "2-digit", minute: "2-digit" }).slice(3, 5);
|
22
23
|
} else {
|
23
|
-
return date.toLocaleTimeString(
|
24
|
+
return date.toLocaleTimeString("en-US", { hour: "2-digit", minute: "2-digit" }).slice(3, 5);
|
24
25
|
}
|
25
26
|
}
|
26
27
|
|
27
28
|
export const toHour = (newDate: Date | string, timeZone?: string): string => {
|
28
29
|
const date = formatDate(newDate)
|
30
|
+
|
29
31
|
if (timeZone) {
|
30
|
-
return date.toLocaleTimeString(
|
32
|
+
return date.toLocaleTimeString("en-US", { timeZone, hour: "numeric" }).split(' ')[0];
|
31
33
|
} else {
|
32
|
-
return date.toLocaleTimeString(
|
34
|
+
return date.toLocaleTimeString("en-US", { hour: "numeric" }).split(' ')[0];
|
33
35
|
}
|
34
36
|
}
|
35
37
|
|
36
38
|
export const toDay = (newDate: Date | string, timeZone?: string): number => {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
39
|
+
if (timeZone) {
|
40
|
+
const date = new Date(formatDate(newDate).toLocaleString("en-US", { timeZone }));
|
41
|
+
return date.getDate()
|
42
|
+
} else {
|
43
|
+
const date = formatDate(newDate)
|
44
|
+
return date.getDate()
|
45
|
+
}
|
44
46
|
}
|
45
47
|
|
46
48
|
export const toDayAbbr = (newDate: Date | string): string => {
|
47
49
|
const date = formatDate(newDate)
|
48
|
-
return ABBR_DAYS[date.
|
50
|
+
return ABBR_DAYS[date.getDay()]
|
49
51
|
}
|
50
52
|
|
51
53
|
export const toWeekday = (newDate: Date | string): string => {
|
52
|
-
|
53
|
-
|
54
|
+
const date = formatDate(newDate)
|
55
|
+
return days[date.getDay()]
|
54
56
|
}
|
55
57
|
|
56
58
|
export const toMonth = (newDate: Date | string, timeZone?: string): string => {
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
59
|
+
if (timeZone) {
|
60
|
+
const date = new Date(formatDate(newDate).toLocaleString("en-US", { timeZone }));
|
61
|
+
return months[date.getMonth()]
|
62
|
+
} else {
|
63
|
+
const date = formatDate(newDate)
|
64
|
+
return months[date.getMonth()]
|
65
|
+
}
|
64
66
|
}
|
65
67
|
|
66
68
|
export const toMonthNum = (newDate: Date | string): number => {
|
67
69
|
const date = formatDate(newDate)
|
68
|
-
return date.
|
70
|
+
return date.getMonth() + 1
|
69
71
|
}
|
70
72
|
|
71
73
|
export const toYear = (newDate: Date | string, timeZone?: string): number => {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
74
|
+
if (timeZone) {
|
75
|
+
const date = new Date(formatDate(newDate).toLocaleString("en-US", { timeZone }));
|
76
|
+
return date.getFullYear()
|
77
|
+
} else {
|
78
|
+
const date = formatDate(newDate)
|
79
|
+
return date.getFullYear()
|
80
|
+
}
|
79
81
|
}
|
80
82
|
|
81
83
|
export const toTime = (newDate: Date | string, timeZone?: string): string => {
|
82
84
|
const date = formatDate(newDate)
|
85
|
+
|
83
86
|
if (timeZone) {
|
84
|
-
return date.toLocaleTimeString(
|
87
|
+
return date.toLocaleTimeString("en-US", { timeZone, timeStyle: "short" }).split(' ')[0];
|
85
88
|
} else {
|
86
|
-
return date.toLocaleTimeString(
|
89
|
+
return date.toLocaleTimeString("en-US", { timeStyle: "short" }).split(' ')[0];
|
87
90
|
}
|
88
91
|
}
|
89
92
|
|
90
93
|
export const toMeridiem = (newDate: Date | string, timeZone?: string): string => {
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
}
|
94
|
+
const date = formatDate(newDate)
|
95
|
+
|
96
|
+
if (timeZone) {
|
97
|
+
return date.toLocaleString("en-US", { timeZone, hour12: true }).slice(-2).charAt(0).toLocaleLowerCase();
|
98
|
+
} else {
|
99
|
+
return date.toLocaleString("en-US", { hour12: true }).slice(-2).charAt(0).toLocaleLowerCase();
|
100
|
+
}
|
97
101
|
}
|
98
102
|
|
99
103
|
export const toTimeZone = (newDate: Date | string, timeZone?: string): string => {
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
}
|
104
|
+
const date = formatDate(newDate)
|
105
|
+
|
106
|
+
if (timeZone) {
|
107
|
+
return date.toLocaleString("en-US", { timeZone, timeZoneName: "short" }).split(' ')[3];
|
108
|
+
} else {
|
109
|
+
return date.toLocaleString("en-US", { timeZoneName: "short" }).split(' ')[3];
|
110
|
+
}
|
106
111
|
}
|
107
112
|
|
108
113
|
export const toTimeWithMeridiem = (newDate: Date | string, timeZone: string): string => {
|
@@ -111,15 +116,17 @@ export const toTimeWithMeridiem = (newDate: Date | string, timeZone: string): st
|
|
111
116
|
}
|
112
117
|
|
113
118
|
export const toIso = (newDate: Date | string): string => {
|
114
|
-
|
115
|
-
|
119
|
+
const date = formatDate(newDate)
|
120
|
+
return date.toISOString()
|
116
121
|
}
|
117
122
|
|
118
123
|
export const fromNow = (newDate: Date | string): string => {
|
119
124
|
const startDate = formatDate(newDate).getTime()
|
120
125
|
const endDate = new Date().getTime()
|
121
126
|
const elapsedTime = endDate - startDate
|
122
|
-
let elapsedTimeString = `${Math.round(elapsedTime / (365.25 * 24 * 60 * 60 * 1000))} years ago
|
127
|
+
let elapsedTimeString = `${Math.round(elapsedTime / (365.25 * 24 * 60 * 60 * 1000))} years ago`; // 730+ days
|
128
|
+
|
129
|
+
const MILLISECONDS_IN_A_MONTH = 30.44 * 24 * 60 * 60 * 1000
|
123
130
|
|
124
131
|
const elapsedTimeData = [
|
125
132
|
{ min: 0, max: 44999, value: "a few seconds ago" }, // 0-44 seconds
|
@@ -130,7 +137,7 @@ export const fromNow = (newDate: Date | string): string => {
|
|
130
137
|
{ min: 75700000, max: 172899999, value: "a day ago" }, // 22-48 hours
|
131
138
|
{ min: 172900000, max: 2169999999, value: `${Math.round(elapsedTime / 86400000)} days ago`}, // 2-25 days
|
132
139
|
{ min: 2170000000, max: 5184999999, value: "a month ago"}, // 26-60 days
|
133
|
-
{ min: 5185000000, max: 27561699999, value: `${Math.round(elapsedTime /
|
140
|
+
{ min: 5185000000, max: 27561699999, value: `${Math.round(elapsedTime / MILLISECONDS_IN_A_MONTH)} months ago`}, // 60-319 days
|
134
141
|
{ min: 27561700000, max: 63072999999, value: "a year ago"}, // 320-730 days
|
135
142
|
];
|
136
143
|
|
@@ -149,7 +156,7 @@ export const toCustomFormat = (newDate: Date | string, format = 'month_day'): st
|
|
149
156
|
if (format == "month_day") {
|
150
157
|
return `${toMonthNum(date)}/${toDay(date)}`
|
151
158
|
} else {
|
152
|
-
return `${date.toLocaleString(
|
159
|
+
return `${date.toLocaleString("en-US", { month: "short" })} ${toDay(date)}`
|
153
160
|
}
|
154
161
|
}
|
155
162
|
|
@@ -1,24 +1,22 @@
|
|
1
1
|
@mixin bold {
|
2
2
|
@include subtle;
|
3
3
|
|
4
|
-
[class*=pb_nav_list_kit_item]
|
5
|
-
&[class*=_link] {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
color: $white;
|
15
|
-
}
|
4
|
+
[class*=pb_nav_list_kit_item] {
|
5
|
+
&[class*=_active] [class*=_link] {
|
6
|
+
background-color: $primary;
|
7
|
+
color: $white;
|
8
|
+
box-shadow: $shadow_deep;
|
9
|
+
@media (hover:hover) {
|
10
|
+
&:hover {
|
11
|
+
background-color: darken($primary, 4%);
|
12
|
+
[class*=_text],[class*=_icon] {
|
13
|
+
color: $white;
|
16
14
|
}
|
17
15
|
}
|
18
|
-
[class*=_text],[class*=_icon] {
|
19
|
-
font-weight: $bolder;
|
20
|
-
}
|
21
16
|
}
|
22
|
-
|
17
|
+
[class*=_text],[class*=_icon] {
|
18
|
+
font-weight: $bolder;
|
19
|
+
}
|
20
|
+
}
|
23
21
|
}
|
24
22
|
}
|
@@ -3,43 +3,74 @@
|
|
3
3
|
@import "../tokens/border_radius";
|
4
4
|
@import "../tokens/titles";
|
5
5
|
@import "../tokens/typography";
|
6
|
-
@import "./
|
6
|
+
@import "./mixins";
|
7
7
|
|
8
|
-
[class^="pb_nav_list"]
|
9
|
-
.
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
[class^="pb_nav_list"] {
|
9
|
+
.font_size_small {
|
10
|
+
.pb_nav_list_item_text,
|
11
|
+
.pb_nav_list_item_text_collapsible {
|
12
|
+
font-size: $font_small !important;
|
13
|
+
}
|
13
14
|
}
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
.font_bolder {
|
17
|
+
.pb_nav_list_item_text {
|
18
|
+
@include pb_title_4;
|
19
|
+
}
|
20
|
+
.pb_collapsible_main_kit {
|
21
|
+
.pb_nav_list_item_text_collapsible {
|
22
|
+
@include pb_title_4;
|
23
|
+
font-weight: $bolder !important;
|
20
24
|
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.font_bold {
|
29
|
+
.pb_nav_list_item_text {
|
30
|
+
font-weight: $bold;
|
31
|
+
}
|
32
|
+
.pb_collapsible_main_kit {
|
33
|
+
.pb_nav_list_item_text_collapsible {
|
34
|
+
font-weight: $bold !important;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.font_regular {
|
40
|
+
.pb_nav_list_item_text {
|
41
|
+
font-weight: $regular;
|
42
|
+
}
|
43
|
+
.pb_collapsible_main_kit {
|
44
|
+
.pb_nav_list_item_text_collapsible {
|
45
|
+
font-weight: $regular !important;
|
27
46
|
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
//styling for default variant with collapsible
|
51
|
+
&[class*="_normal"] {
|
52
|
+
[class*="pb_collapsible_nav_item"] {
|
28
53
|
.pb_collapsible_content_kit {
|
29
54
|
margin-left: $space_lg + 3;
|
30
55
|
}
|
31
56
|
.pb_collapsible_main_kit {
|
32
57
|
border-radius: unset;
|
33
|
-
margin: 0;
|
34
58
|
}
|
35
59
|
&[class*="_active"] {
|
36
60
|
.pb_collapsible_main_kit {
|
37
61
|
background-color: $active_light;
|
38
62
|
}
|
63
|
+
.pb_nav_list_item_link {
|
64
|
+
border-color: transparent !important;
|
65
|
+
.pb_nav_list_item_text {
|
66
|
+
color: unset !important;
|
67
|
+
font-weight: $regular !important;
|
68
|
+
}
|
69
|
+
}
|
39
70
|
}
|
40
|
-
|
41
|
-
|
42
|
-
|
71
|
+
|
72
|
+
&.dark {
|
73
|
+
border-color: $border_dark;
|
43
74
|
.pb_collapsible_main_kit:hover {
|
44
75
|
.pb_nav_list_item_text_collapsible {
|
45
76
|
color: $white !important;
|
@@ -60,17 +91,16 @@
|
|
60
91
|
|
61
92
|
//styling bold variant to work with collapsible
|
62
93
|
&[class*="_bold"] {
|
63
|
-
|
94
|
+
[class*="pb_collapsible_nav_item"] {
|
64
95
|
&[class*="_active"] {
|
65
|
-
background-color: unset;
|
66
96
|
.pb_collapsible_main_kit {
|
67
|
-
background-color: $primary;
|
97
|
+
background-color: $primary !important;
|
68
98
|
border-radius: $border_rad_heavier;
|
69
99
|
.pb_nav_list_item_text_collapsible,
|
70
100
|
.pb_nav_list_item_icon_collapsible,
|
71
101
|
.icon_wrapper,
|
72
102
|
.pb_icon_kit {
|
73
|
-
color: $white;
|
103
|
+
color: $white !important;
|
74
104
|
}
|
75
105
|
}
|
76
106
|
.pb_nav_list_item_link {
|
@@ -79,28 +109,11 @@
|
|
79
109
|
&:hover {
|
80
110
|
background-color: rgba($primary, 0.03) !important;
|
81
111
|
.pb_nav_list_item_text {
|
82
|
-
color: $primary;
|
112
|
+
color: $primary !important;
|
83
113
|
}
|
84
114
|
}
|
85
115
|
.pb_nav_list_item_text {
|
86
|
-
font-weight: $regular;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
.icon_wrapper:hover {
|
90
|
-
background-color: mix($primary, $card_light, 40%);
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
&.dark {
|
95
|
-
.pb_collapsible_kit {
|
96
|
-
&[class*="_active"] {
|
97
|
-
.pb_collapsible_main_kit {
|
98
|
-
background-color: $primary;
|
99
|
-
}
|
100
|
-
.pb_nav_list_item_link {
|
101
|
-
&:hover {
|
102
|
-
background-color: rgba($white, $opacity_1) !important;
|
103
|
-
}
|
116
|
+
font-weight: $regular !important;
|
104
117
|
}
|
105
118
|
}
|
106
119
|
}
|
@@ -109,30 +122,33 @@
|
|
109
122
|
|
110
123
|
//styling for subtle variant with collapsible
|
111
124
|
&[class*="_subtle"] {
|
112
|
-
|
125
|
+
[class*="pb_collapsible_nav_item"] {
|
113
126
|
&[class*="_active"] {
|
114
|
-
background-color: unset;
|
115
127
|
.pb_collapsible_main_kit {
|
116
|
-
background-color: $
|
128
|
+
background-color: $primary !important;
|
117
129
|
border-radius: $border_rad_heavier;
|
118
130
|
.pb_nav_list_item_text_collapsible,
|
119
|
-
.pb_nav_list_item_icon_collapsible
|
120
|
-
|
131
|
+
.pb_nav_list_item_icon_collapsible,
|
132
|
+
.icon_wrapper,
|
133
|
+
.pb_icon_kit {
|
134
|
+
color: $white !important;
|
121
135
|
}
|
122
136
|
}
|
137
|
+
|
123
138
|
&:hover {
|
124
139
|
background-color: unset;
|
125
140
|
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
141
|
+
.pb_collapsible_main_kit:hover {
|
142
|
+
.pb_nav_list_item_text_collapsible {
|
143
|
+
color: $white !important;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.icon_wrapper {
|
148
|
+
&:hover {
|
149
|
+
background-color: mix($primary, $card_light, 40%);
|
150
|
+
.pb_icon_kit {
|
151
|
+
color: $primary !important;
|
136
152
|
}
|
137
153
|
}
|
138
154
|
}
|
@@ -140,20 +156,16 @@
|
|
140
156
|
}
|
141
157
|
}
|
142
158
|
|
143
|
-
|
144
|
-
|
145
|
-
margin: 0px;
|
146
|
-
&[class*="_active"] {
|
147
|
-
background-color: unset;
|
148
|
-
box-shadow: unset;
|
149
|
-
.pb_nav_list_item_text_collapsible {
|
150
|
-
color: unset;
|
151
|
-
}
|
152
|
-
}
|
159
|
+
[class*="pb_collapsible_nav_item"] {
|
160
|
+
.pb_nav_list_kit_item {
|
161
|
+
margin-right: 0px !important;
|
153
162
|
}
|
154
163
|
|
155
|
-
&[class*="
|
156
|
-
|
164
|
+
&[class*="_active"] {
|
165
|
+
background-color: unset !important;
|
166
|
+
.pb_nav_list_item_link {
|
167
|
+
color: unset !important;
|
168
|
+
}
|
157
169
|
}
|
158
170
|
|
159
171
|
.pb_nav_list_item_link_collapsible {
|
@@ -163,7 +175,6 @@
|
|
163
175
|
}
|
164
176
|
|
165
177
|
.pb_collapsible_main_kit {
|
166
|
-
margin: $space_xs ($space_sm - 2px);
|
167
178
|
&:focus-visible {
|
168
179
|
box-shadow: 0px 0px 0px 2px $primary_action;
|
169
180
|
border-radius: $border_rad_heavier;
|
@@ -183,9 +194,10 @@
|
|
183
194
|
}
|
184
195
|
}
|
185
196
|
|
186
|
-
//
|
197
|
+
// vertical line on left of collapsible content
|
187
198
|
.pb_collapsible_content_kit {
|
188
|
-
margin-left: $
|
199
|
+
margin-left: $space_sm + 2;
|
200
|
+
border-left: 1px solid transparent;
|
189
201
|
}
|
190
202
|
|
191
203
|
.pb_collapsible_main_kit {
|
@@ -197,11 +209,21 @@
|
|
197
209
|
background-color: mix($primary, $card_light, 10%);
|
198
210
|
.pb_nav_list_item_text_collapsible,
|
199
211
|
svg {
|
200
|
-
color: $primary;
|
212
|
+
color: $primary !important;
|
201
213
|
}
|
202
214
|
}
|
203
215
|
}
|
204
216
|
|
217
|
+
.pb_collapsible_main_kit,
|
218
|
+
.pb_collapsible_content_kit,
|
219
|
+
.pb_collapsible_kit {
|
220
|
+
padding: 0 !important;
|
221
|
+
}
|
222
|
+
|
223
|
+
&[class*="_collapsible_trail"] {
|
224
|
+
@include collapsible_trail_class;
|
225
|
+
}
|
226
|
+
|
205
227
|
.icon_wrapper {
|
206
228
|
border-radius: $border_radius_rounded;
|
207
229
|
width: $space_sm + 3;
|
@@ -214,19 +236,23 @@
|
|
214
236
|
background-color: mix($primary, $card_light, 40%);
|
215
237
|
}
|
216
238
|
}
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
239
|
+
|
240
|
+
&.dark {
|
241
|
+
.pb_nav_list_kit_item {
|
242
|
+
border-color: $border_dark;
|
221
243
|
.pb_nav_list_item_text {
|
222
|
-
color: $
|
244
|
+
color: $text_dk_light !important;
|
223
245
|
}
|
224
246
|
}
|
225
|
-
[class*="
|
226
|
-
.
|
247
|
+
&[class*="pb_nav_list_kit_item"] [class*="_link"]:hover {
|
248
|
+
.pb_nav_list_item_text {
|
227
249
|
color: $white !important;
|
228
250
|
}
|
229
251
|
}
|
252
|
+
|
253
|
+
.pb_nav_list_item_text_collapsible {
|
254
|
+
color: $white !important;
|
255
|
+
}
|
230
256
|
.pb_nav_list_item_text {
|
231
257
|
color: $text_dk_light;
|
232
258
|
}
|
@@ -248,12 +274,15 @@
|
|
248
274
|
.icon_wrapper:hover {
|
249
275
|
background-color: mix($white, $card_dark, 40%);
|
250
276
|
}
|
277
|
+
&[class*="_active"] {
|
278
|
+
.icon_wrapper:hover {
|
279
|
+
background-color: mix($primary, $card_light, 40%);
|
280
|
+
}
|
281
|
+
}
|
251
282
|
|
252
|
-
&[class*="_collapsible_trail"] {
|
283
|
+
&[class*="pb_collapsible_nav_item"][class*="_collapsible_trail"] {
|
253
284
|
.pb_collapsible_content_kit {
|
254
|
-
|
255
|
-
background-color: $border_dark;
|
256
|
-
}
|
285
|
+
border-color: $border_dark;
|
257
286
|
}
|
258
287
|
}
|
259
288
|
}
|