@ptcwebops/ptcw-design 6.4.11-beta → 6.4.12-beta

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.
@@ -0,0 +1,406 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ p,
8
+ ul,
9
+ li,
10
+ ptc-subnav,
11
+ ptc-tab-list,
12
+ ptc-link,
13
+ ptc-square-card,
14
+ .hyphenate-text,
15
+ ptc-footer {
16
+ word-break: break-word;
17
+ hyphens: manual;
18
+ -webkit-hyphens: manual;
19
+ -moz-hyphens: manual;
20
+ -ms-hyphens: manual;
21
+ }
22
+ @supports (hyphenate-limit-chars: 12 3 3) {
23
+ h1,
24
+ h2,
25
+ h3,
26
+ h4,
27
+ h5,
28
+ h6,
29
+ p,
30
+ ul,
31
+ li,
32
+ ptc-subnav,
33
+ ptc-tab-list,
34
+ ptc-link,
35
+ ptc-square-card,
36
+ .hyphenate-text,
37
+ ptc-footer {
38
+ hyphens: auto;
39
+ -webkit-hyphenate-limit-before: 3;
40
+ /* For Safari */
41
+ -webkit-hyphenate-limit-after: 3;
42
+ /* For Safari */
43
+ hyphenate-limit-chars: 12 3 3;
44
+ hyphenate-limit-lines: 2;
45
+ hyphenate-limit-last: always;
46
+ hyphenate-limit-zone: 6%;
47
+ -webkit-hyphens: auto;
48
+ -webkit-hyphenate-limit-before: 3;
49
+ -webkit-hyphenate-limit-after: 3;
50
+ -webkit-hyphenate-limit-chars: 12 3 3;
51
+ -webkit-hyphenate-limit-lines: 2;
52
+ -moz-hyphens: auto;
53
+ -moz-hyphenate-limit-chars: 12 3 3;
54
+ -moz-hyphenate-limit-lines: 2;
55
+ -ms-hyphens: auto;
56
+ -ms-hyphenate-limit-chars: 12 3 3;
57
+ -ms-hyphenate-limit-lines: 2;
58
+ }
59
+ }
60
+
61
+ :host {
62
+ display: block;
63
+ font-family: var(--ptc-font-latin);
64
+ position: sticky;
65
+ top: 0;
66
+ z-index: 105;
67
+ background-color: var(--color-standard-gray);
68
+ box-shadow: var(--ptc-shadow-small);
69
+ }
70
+ :host .subnav-container {
71
+ display: flex;
72
+ flex-direction: row;
73
+ justify-content: space-between;
74
+ align-items: center;
75
+ padding: 0 24px;
76
+ margin: 0 auto;
77
+ max-width: 1200px;
78
+ gap: 24px;
79
+ }
80
+ @media only screen and (min-width: 768px) {
81
+ :host .subnav-container {
82
+ flex-wrap: wrap;
83
+ gap: 48px;
84
+ }
85
+ }
86
+ @media only screen and (min-width: 1200px) {
87
+ :host .subnav-container {
88
+ padding-left: 0;
89
+ padding-right: 0;
90
+ max-width: 1136px;
91
+ }
92
+ }
93
+ @media only screen and (min-width: 1440px) {
94
+ :host .subnav-container {
95
+ padding-left: 0;
96
+ padding-right: 0;
97
+ max-width: 1200px;
98
+ }
99
+ }
100
+ :host .subnav-menu-left {
101
+ display: flex;
102
+ align-items: center;
103
+ flex: 1;
104
+ }
105
+ @media only screen and (min-width: 768px) {
106
+ :host .subnav-menu-left {
107
+ justify-content: flex-start;
108
+ }
109
+ }
110
+ :host .subnav-menu-left ul.desktop-menu {
111
+ list-style: none;
112
+ padding: 0;
113
+ margin: 0;
114
+ display: flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ gap: 4px;
118
+ flex-wrap: wrap;
119
+ margin-bottom: -2px;
120
+ }
121
+ @media only screen and (min-width: 768px) {
122
+ :host .subnav-menu-left ul.desktop-menu {
123
+ justify-content: flex-start;
124
+ gap: 32px;
125
+ }
126
+ }
127
+ :host .subnav-menu-left ul.desktop-menu li {
128
+ display: inline-block;
129
+ }
130
+ :host .subnav-menu-left ul.desktop-menu li a {
131
+ color: var(--color-gray-07);
132
+ text-decoration: none;
133
+ padding: 8px 12px;
134
+ font-size: var(--ptc-font-size-xx-small);
135
+ font-weight: var(--ptc-font-weight-bold);
136
+ line-height: var(--ptc-line-height-densest);
137
+ display: block;
138
+ position: relative;
139
+ border-bottom: 3px solid transparent;
140
+ }
141
+ @media only screen and (min-width: 768px) {
142
+ :host .subnav-menu-left ul.desktop-menu li a {
143
+ padding: 20px 0 17px 0;
144
+ }
145
+ }
146
+ :host .subnav-menu-left ul.desktop-menu li a:hover {
147
+ color: var(--color-gray-10);
148
+ }
149
+ :host .subnav-menu-left ul.desktop-menu li a.active {
150
+ color: var(--color-gray-10);
151
+ border-bottom: 3px solid var(--color-green-07);
152
+ }
153
+ :host .subnav-menu-left ul.desktop-menu li a:focus-visible {
154
+ border-radius: var(--ptc-border-radius-standard);
155
+ outline: 5px solid var(--keyboard-nav-outline);
156
+ }
157
+ :host .subnav-menu-left .overflow-menu-container {
158
+ position: relative;
159
+ display: none;
160
+ }
161
+ @media only screen and (min-width: 768px) {
162
+ :host .subnav-menu-left .overflow-menu-container {
163
+ display: inline-block;
164
+ }
165
+ }
166
+ :host .subnav-menu-left .overflow-menu-container .overflow-button {
167
+ background: none;
168
+ border: none;
169
+ padding: 20px 0 17px 0;
170
+ font-size: var(--ptc-font-size-xx-small);
171
+ font-weight: var(--ptc-font-weight-bold);
172
+ color: var(--color-gray-07);
173
+ cursor: pointer;
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ min-width: 32px;
178
+ border-bottom: 3px solid transparent;
179
+ transition: all 0.2s ease;
180
+ }
181
+ :host .subnav-menu-left .overflow-menu-container .overflow-button:hover {
182
+ color: var(--color-gray-10);
183
+ }
184
+ :host .subnav-menu-left .overflow-menu-container .overflow-button:focus-visible {
185
+ border-radius: var(--ptc-border-radius-standard);
186
+ outline: 5px solid var(--keyboard-nav-outline);
187
+ }
188
+ :host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots {
189
+ border-radius: 2px;
190
+ border: 1px solid var(--color-gray-07);
191
+ line-height: 1;
192
+ width: 18px;
193
+ height: 18px;
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ cursor: pointer;
198
+ transition: all 0.2s ease;
199
+ }
200
+ :host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover {
201
+ background-color: var(--color-gray-04);
202
+ border-color: var(--color-gray-04);
203
+ }
204
+ :host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover svg circle {
205
+ fill: var(--color-gray-10);
206
+ }
207
+ :host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:focus-visible {
208
+ border-radius: var(--ptc-border-radius-standard);
209
+ outline: 5px solid var(--keyboard-nav-outline);
210
+ }
211
+ :host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded], :host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active {
212
+ border-bottom: 3px solid var(--color-green-07);
213
+ }
214
+ :host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots, :host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots {
215
+ background-color: var(--color-green-07);
216
+ border-color: var(--color-green-07);
217
+ }
218
+ :host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots svg circle, :host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots svg circle {
219
+ fill: var(--color-white);
220
+ }
221
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown {
222
+ position: absolute;
223
+ top: 100%;
224
+ right: 0;
225
+ background: var(--color-white);
226
+ border-radius: var(--ptc-border-radius-standard);
227
+ box-shadow: var(--ptc-shadow-x-large);
228
+ min-width: 200px;
229
+ z-index: 1001;
230
+ padding: 14px 0;
231
+ margin-top: -4px;
232
+ max-width: 312px;
233
+ width: -moz-max-content;
234
+ width: max-content;
235
+ }
236
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown a {
237
+ display: block;
238
+ padding: 12px 32px 12px 24px;
239
+ color: var(--color-gray-07);
240
+ text-decoration: none;
241
+ font-size: var(--ptc-font-size-xx-small);
242
+ font-weight: var(--ptc-font-weight-bold);
243
+ line-height: var(--ptc-line-height-densest);
244
+ transition: all 0.2s ease;
245
+ position: relative;
246
+ border: none;
247
+ }
248
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:hover {
249
+ background-color: var(--color-gray-02);
250
+ color: var(--color-gray-10);
251
+ }
252
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active {
253
+ color: var(--color-gray-10);
254
+ border-bottom: none;
255
+ }
256
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active::before {
257
+ content: "";
258
+ display: block;
259
+ width: 2px;
260
+ height: calc(100% - 0px);
261
+ background-color: var(--color-green-07);
262
+ position: absolute;
263
+ left: 16px;
264
+ top: 0;
265
+ }
266
+ :host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:focus-visible {
267
+ border-radius: var(--ptc-border-radius-standard);
268
+ outline: 5px solid var(--keyboard-nav-outline);
269
+ }
270
+ :host .mobile-dropdown-container {
271
+ position: relative;
272
+ display: block;
273
+ }
274
+ @media only screen and (min-width: 768px) {
275
+ :host .mobile-dropdown-container {
276
+ display: none !important;
277
+ }
278
+ }
279
+ @media (min-width: 768px) {
280
+ :host .mobile-dropdown-container {
281
+ display: none !important;
282
+ }
283
+ }
284
+ :host .mobile-dropdown-container .mobile-dropdown-button {
285
+ display: flex;
286
+ padding: 20px 0 17px 0;
287
+ justify-content: center;
288
+ align-items: center;
289
+ gap: 10px;
290
+ align-self: stretch;
291
+ border: none;
292
+ cursor: pointer;
293
+ transition: all 0.2s ease;
294
+ background-color: transparent;
295
+ border-bottom: 3px solid var(--color-green-07);
296
+ }
297
+ :host .mobile-dropdown-container .mobile-dropdown-button .mobile-selected-item {
298
+ color: var(--color-gray-07);
299
+ font-size: var(--ptc-font-size-xx-small);
300
+ font-style: normal;
301
+ font-weight: var(--ptc-font-weight-bold);
302
+ line-height: var(--ptc-line-height-densest);
303
+ display: -webkit-box;
304
+ line-clamp: 1;
305
+ -webkit-line-clamp: 1;
306
+ -webkit-box-orient: vertical;
307
+ overflow: hidden;
308
+ text-overflow: ellipsis;
309
+ max-width: 100%;
310
+ }
311
+ :host .mobile-dropdown-container .mobile-dropdown-button:hover {
312
+ border-color: var(--color-gray-04);
313
+ color: var(--color-gray-10);
314
+ }
315
+ :host .mobile-dropdown-container .mobile-dropdown-button:focus-visible {
316
+ border-radius: var(--ptc-border-radius-standard);
317
+ outline: 5px solid var(--keyboard-nav-outline);
318
+ }
319
+ :host .mobile-dropdown-container .mobile-dropdown-button[aria-expanded] {
320
+ border-color: var(--color-green-07);
321
+ color: var(--color-gray-10);
322
+ }
323
+ :host .mobile-dropdown-container .mobile-dropdown-button .mobile-selected-item {
324
+ flex: 1;
325
+ text-align: left;
326
+ }
327
+ :host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow {
328
+ display: flex;
329
+ align-items: center;
330
+ justify-content: center;
331
+ transition: transform 0.2s ease;
332
+ }
333
+ :host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow svg {
334
+ transition: transform 0.2s ease;
335
+ }
336
+ :host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow.rotated svg {
337
+ transform: rotate(180deg);
338
+ }
339
+ :host .mobile-dropdown-container .mobile-dropdown {
340
+ position: absolute;
341
+ top: calc(100% - 4px);
342
+ left: auto;
343
+ right: auto;
344
+ background: var(--color-white);
345
+ border: 1px solid var(--color-gray-02);
346
+ border-radius: var(--ptc-border-radius-standard);
347
+ box-shadow: var(--ptc-shadow-medium);
348
+ z-index: 1001;
349
+ margin-top: 4px;
350
+ overflow-y: auto;
351
+ min-width: 280px;
352
+ width: -moz-fit-content;
353
+ width: fit-content;
354
+ list-style: none;
355
+ padding: 0;
356
+ margin: 4px 0 0 0;
357
+ }
358
+ :host .mobile-dropdown-container .mobile-dropdown li {
359
+ display: block;
360
+ border-bottom: 1px solid var(--color-gray-01);
361
+ }
362
+ :host .mobile-dropdown-container .mobile-dropdown li:last-child {
363
+ border-bottom: none;
364
+ }
365
+ :host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item {
366
+ width: 100%;
367
+ background: none;
368
+ border: none;
369
+ padding: 12px 16px;
370
+ color: var(--color-gray-07);
371
+ text-decoration: none;
372
+ font-size: var(--ptc-font-size-xx-small);
373
+ font-weight: var(--ptc-font-weight-bold);
374
+ line-height: var(--ptc-line-height-densest);
375
+ text-align: left;
376
+ cursor: pointer;
377
+ transition: all 0.2s ease;
378
+ word-break: break-word;
379
+ display: block;
380
+ }
381
+ :host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item:hover {
382
+ background-color: var(--color-gray-01);
383
+ color: var(--color-gray-10);
384
+ }
385
+ :host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item.active {
386
+ background-color: var(--color-gray-01);
387
+ color: var(--color-gray-10);
388
+ border-left: 3px solid var(--color-green-07);
389
+ }
390
+ :host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item:focus-visible {
391
+ border-radius: var(--ptc-border-radius-standard);
392
+ outline: 5px solid var(--keyboard-nav-outline);
393
+ }
394
+ :host .subnav-menu-right {
395
+ max-width: 300px;
396
+ padding: 12px 0;
397
+ }
398
+ @media only screen and (min-width: 768px) {
399
+ :host .subnav-menu-right {
400
+ margin-left: 48px;
401
+ width: auto;
402
+ }
403
+ }
404
+ :host .subnav-menu-right ptc-button {
405
+ max-width: 300px;
406
+ }