mohsin-devs commited on
Commit
5e3f3ec
·
1 Parent(s): 8b653e0

Optimize UI box heights for compactness

Browse files
Files changed (1) hide show
  1. styles.css +63 -58
styles.css CHANGED
@@ -469,8 +469,8 @@ body {
469
  linear-gradient(90deg, #18315f 0%, #1c2e68 48%, #146d83 100%);
470
  color: #f8fafc;
471
  border-radius: 24px;
472
- padding: 42px 44px;
473
- min-height: 256px;
474
  display: flex;
475
  align-items: center;
476
  justify-content: space-between;
@@ -510,32 +510,32 @@ body {
510
  }
511
 
512
  .links-hero h2 {
513
- font-size: clamp(34px, 4vw, 58px);
514
- line-height: 1.05;
515
- letter-spacing: -1.4px;
516
- margin-bottom: 16px;
517
- max-width: 670px;
518
  }
519
 
520
  .links-hero p {
521
- max-width: 560px;
522
  color: rgba(241, 245, 249, 0.86);
523
- line-height: 1.6;
524
- font-size: 16px;
525
  }
526
 
527
  .links-hero .btn-primary {
528
  position: relative;
529
  z-index: 1;
530
- min-width: 164px;
531
- min-height: 60px;
532
  justify-content: center;
533
- border-radius: 18px;
534
  }
535
 
536
  .links-hero-art {
537
- flex: 0 0 360px;
538
- height: 190px;
539
  position: relative;
540
  z-index: 1;
541
  margin-left: auto;
@@ -654,21 +654,21 @@ body {
654
  .links-note-chip {
655
  display: flex;
656
  align-items: center;
657
- gap: 16px;
658
- padding: 18px 22px;
659
- border-radius: 20px;
660
  background: #ffffff;
661
  border: 1px solid var(--border-color);
662
  color: var(--text-muted);
663
- font-size: 12px;
664
  font-weight: 500;
665
- box-shadow: var(--shadow-sm);
666
  }
667
 
668
  .links-note-icon {
669
- width: 48px;
670
- height: 48px;
671
- border-radius: 16px;
672
  display: flex;
673
  align-items: center;
674
  justify-content: center;
@@ -683,12 +683,12 @@ body {
683
  }
684
 
685
  .links-note-copy strong {
686
- font-size: 16px;
687
  color: #18315f;
688
  }
689
 
690
  .links-note-copy span {
691
- font-size: 14px;
692
  color: #62748e;
693
  }
694
 
@@ -696,17 +696,17 @@ body {
696
  .links-search {
697
  background: #ffffff;
698
  border: 1px solid var(--border-color);
699
- border-radius: 22px;
700
- padding: 22px 24px;
701
- box-shadow: 0 2px 8px rgba(0,0,0,0.05);
702
  transition: all 0.2s ease;
703
  }
704
 
705
  .links-stat-card {
706
  display: flex;
707
  align-items: center;
708
- gap: 18px;
709
- min-height: 132px;
710
  justify-content: flex-start;
711
  }
712
 
@@ -717,20 +717,20 @@ body {
717
  }
718
 
719
  .links-stat-icon {
720
- width: 76px;
721
- height: 76px;
722
  border-radius: 50%;
723
  display: flex;
724
  align-items: center;
725
  justify-content: center;
726
- font-size: 34px;
727
  flex-shrink: 0;
728
  }
729
 
730
  .links-stat-copy {
731
  display: flex;
732
  flex-direction: column;
733
- gap: 6px;
734
  }
735
 
736
  .links-stat-label {
@@ -742,13 +742,13 @@ body {
742
  }
743
 
744
  .links-stat-card strong {
745
- font-size: 30px;
746
  line-height: 1.1;
747
  color: #0f2b63;
748
  }
749
 
750
  .links-stat-subtitle {
751
- font-size: 14px;
752
  color: #62748e;
753
  }
754
 
@@ -756,27 +756,27 @@ body {
756
  display: flex;
757
  align-items: center;
758
  justify-content: space-between;
759
- gap: 18px;
760
- min-height: 132px;
761
  border-color: #d7e2ee;
762
- padding: 20px 22px;
763
  }
764
 
765
  .links-search-input {
766
  display: flex;
767
  align-items: center;
768
  gap: 16px;
769
- min-height: 84px;
770
  flex: 1;
771
  border: 1px solid #e6edf5;
772
- border-radius: 20px;
773
- padding: 0 22px;
774
  background: linear-gradient(180deg, #ffffff, #fbfdff);
775
  }
776
 
777
  .links-search-input i {
778
  color: #6b778a;
779
- font-size: 28px;
780
  }
781
 
782
  .links-search input {
@@ -785,7 +785,7 @@ body {
785
  background: transparent;
786
  outline: none;
787
  font-family: inherit;
788
- font-size: 16px;
789
  color: var(--text-main);
790
  }
791
 
@@ -795,8 +795,8 @@ body {
795
  }
796
 
797
  .links-filter-btn {
798
- min-height: 46px;
799
- padding: 0 18px;
800
  border-radius: 999px;
801
  border: 1px solid #dce7f2;
802
  background: #ffffff;
@@ -2046,7 +2046,12 @@ body {
2046
  transform: scale(0.8);
2047
  transform-origin: left center;
2048
  }
2049
- .links-hero h2 { font-size: 24px; }
 
 
 
 
 
2050
  .links-toolbar { grid-template-columns: 1fr; }
2051
  .links-stat-card {
2052
  min-height: auto;
@@ -2213,8 +2218,8 @@ body {
2213
  background: #ffffff;
2214
  border: 1px solid #e8edf4;
2215
  border-radius: 28px;
2216
- min-height: 300px;
2217
- padding: 32px;
2218
  box-shadow: var(--shadow-sm);
2219
  }
2220
 
@@ -2222,11 +2227,11 @@ body {
2222
  background: #ffffff;
2223
  border: 1px solid #eef2f6;
2224
  border-radius: 20px;
2225
- padding: 24px;
2226
  position: relative;
2227
  display: flex;
2228
  flex-direction: column;
2229
- gap: 18px;
2230
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
2231
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
2232
  animation: cardFadeIn 0.5s ease-out forwards;
@@ -2268,8 +2273,8 @@ body {
2268
  }
2269
 
2270
  .link-icon-container {
2271
- width: 52px;
2272
- height: 52px;
2273
  background: #f8fafc;
2274
  border: 1px solid #f1f5f9;
2275
  border-radius: 14px;
@@ -2282,8 +2287,8 @@ body {
2282
  }
2283
 
2284
  .link-favicon {
2285
- width: 32px;
2286
- height: 32px;
2287
  object-fit: contain;
2288
  }
2289
 
@@ -2306,7 +2311,7 @@ body {
2306
  }
2307
 
2308
  .link-title {
2309
- font-size: 16px;
2310
  font-weight: 700;
2311
  color: #1e293b;
2312
  line-height: 1.4;
@@ -2349,7 +2354,7 @@ body {
2349
  }
2350
 
2351
  .link-description {
2352
- font-size: 14px;
2353
  line-height: 1.6;
2354
  color: #475569;
2355
  display: -webkit-box;
@@ -2423,7 +2428,7 @@ body {
2423
  display: inline-flex;
2424
  align-items: center;
2425
  gap: 6px;
2426
- padding: 8px 16px;
2427
  background: var(--primary-color);
2428
  color: #ffffff;
2429
  border-radius: 10px;
 
469
  linear-gradient(90deg, #18315f 0%, #1c2e68 48%, #146d83 100%);
470
  color: #f8fafc;
471
  border-radius: 24px;
472
+ padding: 24px 30px;
473
+ min-height: 180px;
474
  display: flex;
475
  align-items: center;
476
  justify-content: space-between;
 
510
  }
511
 
512
  .links-hero h2 {
513
+ font-size: clamp(26px, 3vw, 40px);
514
+ line-height: 1.1;
515
+ letter-spacing: -1.2px;
516
+ margin-bottom: 12px;
517
+ max-width: 600px;
518
  }
519
 
520
  .links-hero p {
521
+ max-width: 500px;
522
  color: rgba(241, 245, 249, 0.86);
523
+ line-height: 1.5;
524
+ font-size: 14px;
525
  }
526
 
527
  .links-hero .btn-primary {
528
  position: relative;
529
  z-index: 1;
530
+ min-width: 140px;
531
+ min-height: 48px;
532
  justify-content: center;
533
+ border-radius: 14px;
534
  }
535
 
536
  .links-hero-art {
537
+ flex: 0 0 280px;
538
+ height: 140px;
539
  position: relative;
540
  z-index: 1;
541
  margin-left: auto;
 
654
  .links-note-chip {
655
  display: flex;
656
  align-items: center;
657
+ gap: 12px;
658
+ padding: 10px 14px;
659
+ border-radius: 16px;
660
  background: #ffffff;
661
  border: 1px solid var(--border-color);
662
  color: var(--text-muted);
663
+ font-size: 11px;
664
  font-weight: 500;
665
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
666
  }
667
 
668
  .links-note-icon {
669
+ width: 42px;
670
+ height: 42px;
671
+ border-radius: 14px;
672
  display: flex;
673
  align-items: center;
674
  justify-content: center;
 
683
  }
684
 
685
  .links-note-copy strong {
686
+ font-size: 15px;
687
  color: #18315f;
688
  }
689
 
690
  .links-note-copy span {
691
+ font-size: 13px;
692
  color: #62748e;
693
  }
694
 
 
696
  .links-search {
697
  background: #ffffff;
698
  border: 1px solid var(--border-color);
699
+ border-radius: 20px;
700
+ padding: 14px 18px;
701
+ box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
702
  transition: all 0.2s ease;
703
  }
704
 
705
  .links-stat-card {
706
  display: flex;
707
  align-items: center;
708
+ gap: 12px;
709
+ min-height: 84px;
710
  justify-content: flex-start;
711
  }
712
 
 
717
  }
718
 
719
  .links-stat-icon {
720
+ width: 58px;
721
+ height: 58px;
722
  border-radius: 50%;
723
  display: flex;
724
  align-items: center;
725
  justify-content: center;
726
+ font-size: 26px;
727
  flex-shrink: 0;
728
  }
729
 
730
  .links-stat-copy {
731
  display: flex;
732
  flex-direction: column;
733
+ gap: 4px;
734
  }
735
 
736
  .links-stat-label {
 
742
  }
743
 
744
  .links-stat-card strong {
745
+ font-size: 22px;
746
  line-height: 1.1;
747
  color: #0f2b63;
748
  }
749
 
750
  .links-stat-subtitle {
751
+ font-size: 13px;
752
  color: #62748e;
753
  }
754
 
 
756
  display: flex;
757
  align-items: center;
758
  justify-content: space-between;
759
+ gap: 14px;
760
+ min-height: 108px;
761
  border-color: #d7e2ee;
762
+ padding: 16px 18px;
763
  }
764
 
765
  .links-search-input {
766
  display: flex;
767
  align-items: center;
768
  gap: 16px;
769
+ min-height: 68px;
770
  flex: 1;
771
  border: 1px solid #e6edf5;
772
+ border-radius: 18px;
773
+ padding: 0 18px;
774
  background: linear-gradient(180deg, #ffffff, #fbfdff);
775
  }
776
 
777
  .links-search-input i {
778
  color: #6b778a;
779
+ font-size: 24px;
780
  }
781
 
782
  .links-search input {
 
785
  background: transparent;
786
  outline: none;
787
  font-family: inherit;
788
+ font-size: 15px;
789
  color: var(--text-main);
790
  }
791
 
 
795
  }
796
 
797
  .links-filter-btn {
798
+ min-height: 40px;
799
+ padding: 0 16px;
800
  border-radius: 999px;
801
  border: 1px solid #dce7f2;
802
  background: #ffffff;
 
2046
  transform: scale(0.8);
2047
  transform-origin: left center;
2048
  }
2049
+ .links-hero h2 {
2050
+ font-size: clamp(26px, 3vw, 40px);
2051
+ line-height: 1.1;
2052
+ letter-spacing: -1.2px;
2053
+ margin-bottom: 12px;
2054
+ max-width: 600px;
2055
  .links-toolbar { grid-template-columns: 1fr; }
2056
  .links-stat-card {
2057
  min-height: auto;
 
2218
  background: #ffffff;
2219
  border: 1px solid #e8edf4;
2220
  border-radius: 28px;
2221
+ min-height: 240px;
2222
+ padding: 24px;
2223
  box-shadow: var(--shadow-sm);
2224
  }
2225
 
 
2227
  background: #ffffff;
2228
  border: 1px solid #eef2f6;
2229
  border-radius: 20px;
2230
+ padding: 18px;
2231
  position: relative;
2232
  display: flex;
2233
  flex-direction: column;
2234
+ gap: 14px;
2235
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
2236
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
2237
  animation: cardFadeIn 0.5s ease-out forwards;
 
2273
  }
2274
 
2275
  .link-icon-container {
2276
+ width: 44px;
2277
+ height: 44px;
2278
  background: #f8fafc;
2279
  border: 1px solid #f1f5f9;
2280
  border-radius: 14px;
 
2287
  }
2288
 
2289
  .link-favicon {
2290
+ width: 26px;
2291
+ height: 26px;
2292
  object-fit: contain;
2293
  }
2294
 
 
2311
  }
2312
 
2313
  .link-title {
2314
+ font-size: 15px;
2315
  font-weight: 700;
2316
  color: #1e293b;
2317
  line-height: 1.4;
 
2354
  }
2355
 
2356
  .link-description {
2357
+ font-size: 12px;
2358
  line-height: 1.6;
2359
  color: #475569;
2360
  display: -webkit-box;
 
2428
  display: inline-flex;
2429
  align-items: center;
2430
  gap: 6px;
2431
+ padding: 6px 12px;
2432
  background: var(--primary-color);
2433
  color: #ffffff;
2434
  border-radius: 10px;