@@ -156,7 +156,6 @@ textarea:not([rows]) {
156
156
--color-inline_codeblock-border : 0.85 0 0 ;
157
157
--color-inline_codeblock-background : 0.98 0 0 ;
158
158
--color-codeblock-border : 0.63 0 0 ;
159
- --color-codeblock-shadow : 0.92 0 0 ;
160
159
--color-codeblock-background : 1 0 0 ;
161
160
--color-codeblock-highlight : 0.99 0.0479 105.97 ;
162
161
--color-footer : 0.23 0 0 ;
@@ -199,6 +198,7 @@ textarea:not([rows]) {
199
198
--codeblock-comment-space-between : 10px ;
200
199
--codeblock-horizontal-line-length : 2rem ;
201
200
--codeblock-horizontal-line-overflow : 0.25rem ;
201
+ --codeblock-horizontal-padding : 1rem ;
202
202
--codeblock-border-thickness : 1px ;
203
203
--codeblock-code-section-padding-left : 1rem ;
204
204
--codeblock-line-box-side-length : 4px ;
@@ -758,12 +758,12 @@ nav {
758
758
759
759
.homepage {
760
760
--content-max-width : 120rem ;
761
+ margin : 0 2rem ;
762
+ line-height : 1.5rem ;
761
763
762
- .homepage-heading {
763
- grid-column : 1 / -1 ;
764
- font-size : 1.5rem ;
765
- font-weight : 500 ;
766
- margin : 2rem 0rem ;
764
+ * {
765
+ margin-left : 0 ;
766
+ padding-left : 0 ;
767
767
}
768
768
769
769
.homepage-section {
@@ -772,77 +772,91 @@ nav {
772
772
gap : 1.5rem ;
773
773
774
774
justify-content : center;
775
- max-width : 98 rem ;
775
+ max-width : 100 rem ;
776
776
margin : 0 auto;
777
- padding-bottom : 2 rem ;
777
+ padding : 1 rem ;
778
778
779
779
a {
780
780
color : oklch (var (--color-foreground ));
781
781
text-decoration-color : oklch (var (--color-background ));
782
782
783
783
& : hover {
784
+ box-shadow : 3px 3px 0px oklch (var (--color-brand ) / 0.4 );
784
785
text-decoration-color : oklch (var (--color-background ));
786
+ border : 1px solid oklch (var (--color-brand ) / 0.8 );
785
787
}
786
788
}
787
789
788
- .homepage-heading {
790
+ .headerlink {
791
+ cursor : default;
792
+ pointer-events : none;
793
+
794
+ & ::before {
795
+ display : none;
796
+ }
797
+ }
798
+
799
+ > * {
789
800
grid-column : 1 / -1 ;
790
- margin : 1rem 0rem ;
801
+ }
802
+
803
+ > p {
804
+ grid-column : 1 ;
791
805
}
792
806
}
807
+ }
793
808
794
- /* Styling for items */
795
- .homepage-item {
796
- background : oklch (var (--color-background ));
797
- border : 1px solid oklch (var (--color-codeblock-border ));
798
- box-shadow : 3px 3px 0px oklch (var (--color-shadow ));
799
- min-height : 11rem ;
800
- padding : 1rem 2rem 2rem 2rem ;
801
- display : flex;
802
- flex-direction : column;
803
- justify-content : space-between;
804
- cursor : pointer;
809
+ /* MARK: Main content
810
+ */
805
811
806
- & : hover {
807
- box-shadow : 3px 3px 0px oklch (var (--color-brand ) / 0.4 );
808
- text-decoration-color : oklch (var (--color-background ));
809
- border : 1px solid oklch (var (--color-brand ) / 0.8 );
810
- }
812
+ [data-grid = "wide" ] {
813
+ grid-column : 1 ;
814
+ }
815
+ [data-grid = "first-third" ] {
816
+ grid-column : 1 ;
817
+ }
818
+ [data-grid = "last-third" ] {
819
+ grid-column : 1 ;
820
+ }
821
+ [data-grid = "quarter" ] {
822
+ grid-column : 1 ;
823
+ }
824
+ [data-grid = "third" ] {
825
+ grid-column : 1 ;
826
+ }
827
+ [data-grid = "half" ] {
828
+ grid-column : 1 ;
829
+ }
830
+
831
+ @media (min-width : 55rem ) {
832
+ [data-grid = "wide" ] {
833
+ grid-column : 1 / -1 ;
811
834
}
812
835
813
- .homepage-item-heading {
814
- display : flex;
815
- align-items : center;
816
- justify-content : flex-start;
836
+ [data-grid = "first-third" ] {
837
+ grid-column : 1 / 4 ;
817
838
}
818
839
819
- . homepage-item-logo {
820
- margin-right : 0.5 rem ;
840
+ [ data-grid = "first-two-thirds" ] {
841
+ grid-column : 1 / 8 ;
821
842
}
822
843
823
- .homepage-item-logo img {
824
- height : 40px ;
825
- width : auto;
826
- display : block;
844
+ [data-grid = "last-third" ] {
845
+ grid-column : 8 / -1 ;
827
846
}
828
847
829
- .homepage-item-text {
830
- font-size : 1.1rem ;
831
- font-weight : 600 ;
832
- line-height : 1.2 ;
833
- margin : 0 ;
834
- padding : 0 ;
835
- /* Hack to make text line-up with logos */
836
- transform : translateY (-6px );
848
+ [data-grid = "quarter" ] {
849
+ grid-column : span 3 ;
837
850
}
838
851
839
- . homepage-item-content {
840
- line-height : 1.5 rem ;
852
+ [ data-grid = "third" ] {
853
+ grid-column : span 4 ;
841
854
}
842
- }
843
855
844
- /* MARK: Main content
845
- */
856
+ [data-grid = "half" ] {
857
+ grid-column : span 6 ;
858
+ }
859
+ }
846
860
847
861
.content {
848
862
grid-area : content;
@@ -854,7 +868,7 @@ nav {
854
868
& > ul ,
855
869
& > ol {
856
870
display : grid;
857
- grid-template-columns : 1fr ;
871
+ grid-template-columns : minmax ( 0 , 1fr ) ;
858
872
/* These gaps determine the spacing between all content. Be careful!! */
859
873
gap : var (--space-m ) var (--space-m );
860
874
@@ -871,19 +885,6 @@ nav {
871
885
grid-column : 1 ;
872
886
}
873
887
874
- [data-grid = "wide" ] {
875
- grid-column : 1 ;
876
- }
877
- [data-grid = "first-third" ] {
878
- grid-column : 1 ;
879
- }
880
- [data-grid = "last-third" ] {
881
- grid-column : 1 ;
882
- }
883
- [data-grid = "half" ] {
884
- grid-column : 1 ;
885
- }
886
-
887
888
@media (min-width : 55rem ) {
888
889
max-width : var (--content-max-width );
889
890
grid-template-columns : repeat (var (--grid-columns ), 1fr );
@@ -892,33 +893,20 @@ nav {
892
893
> li : not ([data-grid ]) {
893
894
grid-column : 1 / 8 ;
894
895
}
895
-
896
- [data-grid = "wide" ] {
897
- grid-column : 1 / -1 ;
898
- }
899
-
900
- [data-grid = "first-third" ] {
901
- grid-column : 1 / 4 ;
902
- }
903
-
904
- [data-grid = "first-two-thirds" ] {
905
- grid-column : 1 / 8 ;
906
- }
907
-
908
- [data-grid = "last-third" ] {
909
- grid-column : 8 / -1 ;
910
- }
911
-
912
- [data-grid = "half" ] {
913
- grid-column : span 6 ;
914
- }
915
896
}
916
897
}
917
898
918
899
/* Allow redocly to fill the entire container */
919
900
& .content__redocly {
920
901
justify-self : unset;
921
- max-width : unset;
902
+ max-width : 100% ;
903
+
904
+ # api-component {
905
+ z-index : 0 ;
906
+ position : relative;
907
+ display : block;
908
+ max-width : 100% ;
909
+ }
922
910
}
923
911
}
924
912
@@ -1458,16 +1446,38 @@ h6:has(a):hover {
1458
1446
}
1459
1447
1460
1448
/* Landing page cards */
1449
+
1450
+ .homepage {
1451
+ .card-grid {
1452
+ grid-template-columns : 1fr ;
1453
+
1454
+ @media (min-width : 70rem ) {
1455
+ grid-template-columns : repeat (12 , 1fr );
1456
+ }
1457
+ }
1458
+
1459
+ .card-layout .card-grid .card {
1460
+ padding : 1rem 2rem 2rem 2rem ;
1461
+
1462
+ .lucide ,
1463
+ .card-brand-icon {
1464
+ height : 40px ;
1465
+ width : auto;
1466
+ }
1467
+ }
1468
+ }
1469
+
1461
1470
.card-layout {
1462
- grid-column : 1 ;
1471
+ display : flex;
1472
+ flex-direction : column;
1473
+ gap : 1.5rem ;
1463
1474
1464
1475
.card-section {
1465
- display : flex;
1466
- flex-direction : column;
1467
- gap : 1rem ;
1468
-
1469
1476
strong {
1470
1477
font-weight : 500 ;
1478
+ font-size : var (--font-step-2 );
1479
+ display : block;
1480
+ margin-bottom : 1rem ;
1471
1481
}
1472
1482
1473
1483
& .featured-section {
@@ -1479,20 +1489,17 @@ h6:has(a):hover {
1479
1489
}
1480
1490
1481
1491
.card {
1482
- display : flex;
1483
- flex-direction : column;
1484
- gap : 0.5rem ;
1485
- margin-bottom : 1rem ;
1486
- order : 2 ;
1487
-
1488
- & .featured-card {
1489
- order : 1 ;
1492
+ .card-container {
1493
+ display : flex;
1494
+ flex-direction : column;
1495
+ gap : 0.5rem ;
1490
1496
}
1491
1497
1492
1498
.card-header {
1493
1499
display : flex;
1494
1500
flex-direction : row;
1495
- gap : 0.5rem ;
1501
+ gap : 1rem ;
1502
+ align-items : center;
1496
1503
1497
1504
.card-brand-icon {
1498
1505
height : 20px ;
@@ -1514,7 +1521,7 @@ h6:has(a):hover {
1514
1521
grid-template-columns : repeat (var (--grid-columns ), 1fr );
1515
1522
gap : 1.5rem ;
1516
1523
1517
- @media (max-width : 68 rem ) {
1524
+ @media (max-width : 55 rem ) {
1518
1525
grid-template-columns : 1fr ;
1519
1526
}
1520
1527
@@ -1844,12 +1851,37 @@ a:has(code:not(pre code)) {
1844
1851
1845
1852
/* Regular Codeblock */
1846
1853
.highlight {
1847
- padding : 0 1rem 0 1rem ;
1854
+ padding : 0 var (--codeblock-horizontal-padding ) 0
1855
+ var (--codeblock-horizontal-padding );
1848
1856
position : relative;
1849
1857
flex : 1 ;
1850
1858
1851
- code .cl {
1852
- position : relative;
1859
+ code {
1860
+ font-size : var (--font-step--1 );
1861
+
1862
+ .cl {
1863
+ position : relative;
1864
+ }
1865
+ }
1866
+
1867
+ table {
1868
+ width : calc (100% + var (--codeblock-horizontal-padding ));
1869
+ }
1870
+
1871
+ .lntd : first-child pre code {
1872
+ span {
1873
+ margin-left : -1rem ;
1874
+ padding-left : 1rem ;
1875
+ width : calc (100% + 1rem );
1876
+ }
1877
+ }
1878
+
1879
+ pre code .line {
1880
+ display : inline;
1881
+ }
1882
+
1883
+ pre code .line .hl {
1884
+ display : block;
1853
1885
}
1854
1886
}
1855
1887
@@ -1880,10 +1912,6 @@ a:has(code:not(pre code)) {
1880
1912
/* margin: 1.5rem 0 0.25rem 0; */
1881
1913
}
1882
1914
1883
- .highlight code {
1884
- font-size : 0.875rem ;
1885
- }
1886
-
1887
1915
.highlight-v2 .single-line {
1888
1916
display : flex;
1889
1917
align-items : center;
@@ -1907,7 +1935,7 @@ a:has(code:not(pre code)) {
1907
1935
}
1908
1936
1909
1937
.code-container {
1910
- box-shadow : 2 px 2 px 0px oklch (var (--color-codeblock -shadow ));
1938
+ box-shadow : 3 px 3 px 0px oklch (var (--color-shadow ));
1911
1939
}
1912
1940
1913
1941
ol .code-block ,
@@ -1955,6 +1983,7 @@ ul .code-block {
1955
1983
.highlight code .hl {
1956
1984
width : fit-content;
1957
1985
min-width : 100% ;
1986
+ display : block;
1958
1987
background-color : oklch (var (--color-codeblock-highlight ));
1959
1988
}
1960
1989
0 commit comments