-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstyle.css
More file actions
771 lines (664 loc) · 17.7 KB
/
style.css
File metadata and controls
771 lines (664 loc) · 17.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
li[id="topbar-cta-button"]>a>div>span {
color: #000 !important;
}
li[id="topbar-cta-button"]>a>div>svg>path {
stroke: #000 !important;
}
.dark li[id="topbar-cta-button"]>a>div>span {
color: #000 !important;
}
/* Target the background span directly */
#topbar-cta-button span[class*="bg-primary-dark"] {
background-color: #20EDBA !important;
/* Green */
border: 1.2px solid black !important;
/* Black border */
}
#topbar-cta-button:hover span[class*="bg-primary-dark"] {
background-color: #20EDBA !important;
/* Darker green on hover */
border: 1.2px solid black !important;
/* Black border on hover */
}
/* ---------- typography helpers with dark mode support ---------- */
.home-section-heading {
color: #03031C;
/* $brand-black */
font-family: "Inter", sans-serif;
font-size: 20px;
font-weight: 700;
line-height: 28px;
}
.dark .home-section-heading {
color: #ffffff;
/* White text in dark mode */
}
.fs-18 {
font-size: 18px;
}
.fs-16 {
font-size: 16px;
}
.fs-xs {
font-size: 14px;
}
.font-400 {
font-weight: 400;
}
.text-sec {
color: var(--text-subdued, #515071);
}
.dark .text-sec {
color: #FFF;
/* Light gray text in dark mode */
}
/* ---------- layout helpers ---------- */
.home-section {
margin-top: 40px;
}
/* keeps the “1 % inline padding” behaviour ≥ 992 px */
@media (min-width: 992px) {
.section-padding {
padding-inline: 1%;
}
}
/* centres imgs exactly like .image-container in Bootstrap */
.image-container {
display: flex;
justify-content: center;
}
.parent-container {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
/* ---------- CTA button style with dark mode support ---------- */
.sec-btn {
display: inline-block;
border-radius: 20px;
border: 1.2px solid #03031C;
background: #ffffff;
padding: 8px 24px;
color: #03031C;
font-size: 14px;
font-weight: 500;
line-height: 20px;
text-decoration: none;
transition: all 0.2s ease;
}
.sec-btn:hover {
background: #E5E5E8;
}
.dark .sec-btn {
background: transparent;
color: #ffffff;
border: 1.2px solid #ffffff;
}
.dark .sec-btn:hover {
background: rgba(107, 114, 128, 0.1);
border-color: #ffffff;
}
.stack-heading {
color: var(--action-primary-default, var(--primary-primary-50, #8438FA));
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 20px;
/* 142.857% */
}
.fs-xs {
font-size: 14px;
}
.lh-20 {
line-height: 20px;
}
.banner {
background-size: auto;
background-repeat: no-repeat;
background-position: right;
margin-left: 36px;
margin-right: 36px;
}
.home-container {
padding-top: 10px;
}
.home-bottom {
margin-bottom: 70px;
}
.feature-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-bottom: 2rem;
}
@media (min-width: 576px) {
.feature-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 992px) {
.feature-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.feature-item {
background-color: #ffffff;
border-radius: 8px;
padding: 16px;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.feature-icon {
font-size: 3.5rem;
margin-bottom: 16px;
}
.feature-title {
font-size: 1.4rem;
margin-bottom: 12px;
color: #333;
}
.feature-description {
color: #666;
flex-grow: 1;
}
.feature-button {
margin-top: 16px;
}
.feature-button a {
display: inline-block;
background-color: #00AEF0;
color: white;
padding: 8px 16px;
border-radius: 4px;
text-decoration: none;
}
/* Button styles from Hugo theme */
.button {
display: inline-block;
padding: 12px 24px;
border: none;
border-radius: 6px;
text-decoration: none;
font-weight: 500;
font-size: 16px;
transition: background-color 0.3s ease;
cursor: pointer;
}
.button.center {
display: inline-block;
}
.button.button-green {
background-color: #20EDBA;
color: white;
}
.button.button-green:hover {
background-color: #20EDBA;
}
.button.button-red {
background-color: #dc3545;
color: white;
}
.button.button-red:hover {
background-color: #c82333;
}
.button.button-black {
background-color: #343a40;
color: white;
}
.button.button-black:hover {
background-color: #23272b;
}
/* Grid styles for Hugo grid shortcode */
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
@media (min-width: 768px) {
.grid-container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 767px) {
.grid-container {
grid-template-columns: 1fr;
}
}
/* Badge styles - Card style badges for your BadgeCard component */
.badge {
display: block;
background-color: #ffffff;
border-radius: 8px;
padding: 1rem;
text-decoration: none;
color: inherit;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
margin-bottom: 1rem;
}
.badge:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
text-decoration: none;
color: inherit;
}
.badge.with_image {
text-align: center;
}
.badge .nav {
font-size: 0.875rem;
margin-bottom: 0.5rem;
}
.badge .nav.read {
color: #666;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 0.5px;
}
.badge .nav.title {
font-size: 1.25rem;
font-weight: 600;
color: #333;
margin-bottom: 1rem;
}
.badge p {
margin-bottom: 1rem;
color: #666;
}
.badge p img {
max-width: 100%;
height: auto;
border-radius: 4px;
margin-bottom: 0.5rem;
}
.badge .bottom {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #e5e7eb;
}
.badge .bottom .read {
font-size: 0.875rem;
color: #666;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 0.5px;
}
/* Simple badge styles for inline use */
.simple-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-weight: 500;
text-decoration: none;
border-radius: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.simple-badge-small {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
.simple-badge-medium {
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
}
.simple-badge-large {
padding: 0.5rem 1rem;
font-size: 1rem;
}
.simple-badge-default {
background-color: #e5e7eb;
color: #374151;
}
.simple-badge-default:hover {
background-color: #d1d5db;
}
.simple-badge-primary {
background-color: #00AEF0;
color: white;
}
.simple-badge-primary:hover {
background-color: #0090c4;
}
.simple-badge-success {
background-color: #20EDBA;
color: white;
}
.simple-badge-success:hover {
background-color: #1bc7a1;
}
.badge-next {
background-color: #00AEF0;
color: white;
padding: 0.5rem 1rem;
margin-top: 1rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.badge-next:hover {
background-color: #0090c4;
color: white;
}
.badge-icon {
display: inline-flex;
align-items: center;
}
.badge-icon img,
.badge-icon object {
width: 16px;
height: 16px;
vertical-align: middle;
}
/* ResponsiveGrid component styles */
.responsive-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin: 1rem 0;
max-width: 1200px;
column-gap: 1.5rem;
/* Keep horizontal spacing */
row-gap: 0.5rem;
justify-items: start;
/* Align items to the left when there's only one */
}
/* Responsive breakpoints for grid */
@media (max-width: 768px) {
.responsive-grid {
grid-template-columns: 1fr;
gap: 0.5rem;
}
}
/* ONLY constrain cards INSIDE ResponsiveGrid - not global cards */
.responsive-grid .card {
max-width: 300px !important;
min-width: 200px !important;
min-height: 160px !important;
width: 100% !important;
margin: 5px 0 !important;
/* Changed from auto to 0 to align left */
}
/* ONLY constrain images INSIDE ResponsiveGrid cards */
.responsive-grid .card img {
max-height: 100px !important;
max-width: 100px !important;
object-fit: scale-down !important;
margin: 0 auto !important;
display: block !important;
}
/* Hover effects ONLY for ResponsiveGrid cards */
.responsive-grid .card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: all 0.2s ease;
}
/* ---------- Dark mode improvements for homepage cards ---------- */
/* Override Tailwind's border-gray-300 in dark mode for better contrast */
.dark .border-gray-300 {
border-color: #4c5a6b !important;
/* Strong blue-gray border */
}
/* Add subtle background to cards in dark mode for better definition */
.dark .grid .border-gray-300 {
background-color: rgba(44, 52, 71, 0.4) !important;
/* Deep navy background */
border-color: #4c5a6b !important;
/* Strong blue-gray border for cards */
border-width: 1.5px !important;
/* Slightly thicker border */
}
/* Improve hover effects for cards in dark mode */
.dark .grid .border-gray-300:hover {
background-color: rgba(54, 63, 85, 0.5) !important;
border-color: #5d6b7d !important;
transform: translateY(-2px);
transition: all 0.2s ease;
}
/* Ensure banner border looks good in dark mode */
.dark .banner.border-gray-300 {
border-color: #4c5a6b !important;
background-color: rgba(44, 52, 71, 0.3) !important;
}
/* ---------- Dark mode improvements for stack boxes ---------- */
/* Style the stack boxes in the "Explore by Tyk Stack" section */
.dark .stack-box {
background-color: rgba(44, 52, 71, 0.4) !important;
border-color: #4c5a6b !important;
border-width: 1.5px !important;
}
.dark .stack-box:hover {
background-color: rgba(54, 63, 85, 0.5) !important;
border-color: #5d6b7d !important;
}
/* Ensure stack headings are properly styled in dark mode */
.dark .stack-heading {
color: #ffffff !important;
/* White text instead of purple */
}
/* Style any other border-gray-300 elements that might be stack boxes */
.dark .border.border-gray-300.rounded-md {
background-color: rgba(44, 52, 71, 0.4) !important;
border-color: #4c5a6b !important;
border-width: 1.5px !important;
}
.dark .border.border-gray-300.rounded-md:hover {
background-color: rgba(54, 63, 85, 0.5) !important;
border-color: #5d6b7d !important;
}
/* ---------- Dark mode link colors for "Most viewed" section only ---------- */
/* Target only the text-primary links in the "Most viewed" section */
.dark .text-primary.fs-xs {
color: #20EDBA !important;
/* Tyk green color */
}
.dark .text-primary.fs-xs:hover {
color: #1bc7a1 !important;
/* Slightly darker green on hover */
text-decoration: underline;
}
/* More specific targeting for all text-primary links in grid layouts */
.dark .grid a.text-primary {
color: #20EDBA !important;
}
.dark .grid a.text-primary:hover {
color: #1bc7a1 !important;
}
/* ---------- Refined Professional Dark Mode for Tyk Stack Section ---------- */
/* Enhanced styling to match the sophisticated reference design */
.dark .grid-cols-2>div,
.dark .grid>div[class*="border"],
.dark .grid>div[class*="rounded"] {
background: #1e293b !important;
/* Deeper, more sophisticated dark background */
border: 1px solid #334155 !important;
/* Refined subtle border */
border-radius: 16px !important;
/* More generous rounded corners */
padding: 24px !important;
/* Increased padding for better spacing */
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
/* Smoother easing */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
/* Layered shadows */
position: relative !important;
overflow: hidden !important;
}
.dark .grid-cols-2>div:hover,
.dark .grid>div[class*="border"]:hover,
.dark .grid>div[class*="rounded"]:hover {
background: #334155 !important;
/* Refined hover background */
border-color: #475569 !important;
/* Subtle border color change */
transform: translateY(-4px) !important;
/* More pronounced lift effect */
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
/* Enhanced shadow */
}
/* Enhanced typography for better hierarchy and readability - matching reference design */
.dark .grid-cols-2 h3,
.dark .grid>div h3,
.dark .grid-cols-2 .stack-heading,
.dark .grid>div .stack-heading,
.dark .grid-cols-2>div h3,
.dark .grid>div[class*="border"] h3,
.dark .grid>div[class*="rounded"] h3 {
color: #ffffff !important;
/* Pure white titles like reference */
font-weight: 600 !important;
/* Medium weight for clean look */
font-size: 16px !important;
/* Consistent with reference */
line-height: 1.3 !important;
/* Tight line height */
margin-bottom: 6px !important;
/* Compact spacing */
letter-spacing: 0 !important;
/* No letter spacing */
}
.dark .grid-cols-2 p,
.dark .grid>div p,
.dark .grid-cols-2 .text-sec,
.dark .grid>div .text-sec,
.dark .grid-cols-2>div p,
.dark .grid>div[class*="border"] p,
.dark .grid>div[class*="rounded"] p,
.dark .grid-cols-2>div .text-sec,
.dark .grid>div[class*="border"] .text-sec,
.dark .grid>div[class*="rounded"] .text-sec {
color: #9ca3af !important;
/* Light gray descriptions matching reference */
font-size: 13px !important;
/* Slightly smaller for hierarchy */
line-height: 1.4 !important;
/* Readable line height */
margin-top: 2px !important;
/* Tight spacing */
font-weight: 400 !important;
/* Normal weight */
}
/* Additional specific targeting for all text elements in stack cards */
.dark .grid-cols-2>div *,
.dark .grid>div[class*="border"] *,
.dark .grid>div[class*="rounded"] * {
color: inherit !important;
/* Inherit from parent */
}
/* Ensure titles are always white */
.dark .grid-cols-2>div h1,
.dark .grid-cols-2>div h2,
.dark .grid-cols-2>div h3,
.dark .grid-cols-2>div h4,
.dark .grid-cols-2>div h5,
.dark .grid-cols-2>div h6,
.dark .grid>div[class*="border"] h1,
.dark .grid>div[class*="border"] h2,
.dark .grid>div[class*="border"] h3,
.dark .grid>div[class*="border"] h4,
.dark .grid>div[class*="border"] h5,
.dark .grid>div[class*="border"] h6,
.dark .grid>div[class*="rounded"] h1,
.dark .grid>div[class*="rounded"] h2,
.dark .grid>div[class*="rounded"] h3,
.dark .grid>div[class*="rounded"] h4,
.dark .grid>div[class*="rounded"] h5,
.dark .grid>div[class*="rounded"] h6 {
color: #ffffff !important;
/* White titles */
font-weight: 600 !important;
}
/* Ensure descriptions are light gray */
.dark .grid-cols-2>div span,
.dark .grid-cols-2>div div:not([class*="flex"]):not([class*="grid"]),
.dark .grid>div[class*="border"] span,
.dark .grid>div[class*="border"] div:not([class*="flex"]):not([class*="grid"]),
.dark .grid>div[class*="rounded"] span,
.dark .grid>div[class*="rounded"] div:not([class*="flex"]):not([class*="grid"]) {
color: #9ca3af !important;
/* Light gray for descriptions */
}
/* Enhanced icon styling for better integration */
.dark .grid-cols-2 img,
.dark .grid>div img {
filter: brightness(1.2) contrast(1.1) !important;
/* Enhanced icon visibility */
width: 48px !important;
/* Consistent icon size */
height: 48px !important;
/* Consistent icon size */
margin-bottom: 16px !important;
/* Better spacing below icons */
border-radius: 8px !important;
/* Subtle rounding for icons */
transition: transform 0.2s ease !important;
/* Smooth icon transitions */
}
/* Add proper spacing between icon and text content in stack cards */
.stack-text-container {
margin-left: 16px !important;
/* Add spacing between icon and text for both light and dark mode */
}
/* ---------- Dark mode styling for card headings in "Try it out" section ---------- */
.dark .grid-cols-2>div:hover img,
.dark .grid>div[class*="border"]:hover img,
.dark .grid>div[class*="rounded"]:hover img {
transform: scale(1.05) !important;
/* Subtle icon scale on hover */
}
/* Improved grid layout and spacing */
.dark .grid-cols-2,
.dark .grid {
gap: 20px !important;
/* Refined gap between cards */
margin-top: 24px !important;
/* Better section spacing */
}
/* Enhanced responsive behavior */
@media (max-width: 768px) {
.dark .grid-cols-2>div,
.dark .grid>div[class*="border"],
.dark .grid>div[class*="rounded"] {
padding: 20px !important;
/* Adjusted padding for mobile */
margin-bottom: 16px !important;
/* Better mobile spacing */
}
.dark .grid-cols-2 h3,
.dark .grid>div h3,
.dark .grid-cols-2 .stack-heading,
.dark .grid>div .stack-heading {
font-size: 16px !important;
/* Responsive font sizing */
}
}
/* Subtle background pattern for added sophistication */
.dark .grid-cols-2>div::before,
.dark .grid>div[class*="border"]::before,
.dark .grid>div[class*="rounded"]::before {
content: '' !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 50%) !important;
pointer-events: none !important;
border-radius: inherit !important;
}
/* Enhanced focus states for accessibility */
.dark .grid-cols-2>div:focus,
.dark .grid>div[class*="border"]:focus,
.dark .grid>div[class*="rounded"]:focus {
outline: 2px solid #3b82f6 !important;
outline-offset: 2px !important;
}