2626 row-gap : var (--space-2xs );
2727 }
2828
29- .news-title {
30- font-size : var (--size-3 );
31- letter-spacing : var (--size-3-spacing );
32- margin : 0 ;
33-
34- a {
35- text-decoration : none;
36- }
37- }
38-
3929 .news-time {
4030 grid-area : time;
4131
4434 }
4535 }
4636}
37+
38+ .news-title {
39+ font-size : var (--size-3 );
40+ letter-spacing : var (--size-3-spacing );
41+ margin : 0 ;
42+
43+ a {
44+ text-decoration : none;
45+ }
46+ }
47+
48+ .news-image {
49+ border-radius : var (--border-radius );
50+ max-width : 100% ;
51+ height : auto;
52+ }
53+
54+ .news-home {
55+ grid-column : content;
56+ display : grid;
57+ grid-template-columns : repeat (4 , minmax (0 , 1fr ));
58+ align-content : start;
59+ row-gap : var (--space-3xl );
60+ column-gap : var (--space-2xl );
61+ grid-template-areas : "nth-1 nth-1 nth-1 nth-2"
62+ "nth-3 nth-4 nth-5 nth-6" ;
63+ > : nth-child (1 ) {
64+ grid-area : nth-1;
65+ }
66+ > : nth-child (2 ) {
67+ grid-area : nth-2;
68+ }
69+ > : nth-child (3 ) {
70+ grid-area : nth-3;
71+ }
72+ > : nth-child (4 ) {
73+ grid-area : nth-4;
74+ }
75+ > : nth-child (5 ) {
76+ grid-area : nth-5;
77+ }
78+ > : nth-child (6 ) {
79+ grid-area : nth-6;
80+ }
81+ }
82+
83+ .news .is-main {
84+ display : grid;
85+ grid-template-columns : minmax (0 , 1fr ) minmax (0 , 2fr );
86+ grid-template-areas : "content img" ;
87+ column-gap : var (--space-2xl );
88+
89+ .news-image {
90+ grid-area : img;
91+ }
92+ .news-content {
93+ grid-area : content;
94+ display : grid;
95+ align-content : start;
96+ row-gap : var (--space-xs );
97+ }
98+ .news-intro {
99+ font-size : var (--size-2 );
100+ letter-spacing : var (--size-2-spacing );
101+ line-height : var (--line-base );
102+ }
103+ .news-title {
104+ font-size : var (--size-6 );
105+ line-height : var (--line-xshort );
106+ letter-spacing : var (--size-6-spacing );
107+ }
108+ }
109+ .news .is-secondary {
110+ display : grid;
111+ grid-template-columns : minmax (0 , 1fr );
112+ grid-template-areas : "content" "img" ;
113+ column-gap : var (--space-xl );
114+
115+ .news-image {
116+ grid-area : img;
117+ }
118+ .news-content {
119+ grid-area : content;
120+ display : grid;
121+ align-content : start;
122+ row-gap : var (--space-xs );
123+ }
124+ .news-intro {
125+ font-size : var (--size-1 );
126+ letter-spacing : var (--size-1-spacing );
127+ line-height : var (--line-base );
128+ }
129+ .news-title {
130+ font-size : var (--size-4 );
131+ letter-spacing : var (--size-4-spacing );
132+ line-height : var (--line-xshort );
133+ }
134+ }
0 commit comments