File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131}
3232
3333.post img {
34- width : 7rem ;
35- height : 7rem ;
34+ width : 100% ;
35+ height : auto;
36+ max-height : 12rem ;
37+ object-fit : cover;
38+ border-radius : 12px 12px 0 0 ;
39+ display : block;
40+ margin : 0 auto;
3641}
3742
3843.post a {
3944 height : 22rem ;
45+ width : 18rem ;
4046 transform-origin : center;
4147 box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.25 );
4248 border-radius : 12px ;
4349 background-color : white;
4450 display : flex;
4551 flex-direction : column;
52+ align-items : center;
53+ overflow : hidden;
54+ text-decoration : none;
55+ }
56+
57+ .post__content {
58+ padding : 1rem ;
59+ text-align : center;
60+ width : 100% ;
61+ }
62+
63+ .post__content h3 {
64+ font-size : 1.1rem ;
65+ font-weight : 600 ;
66+ color : # 1a1a1a ;
67+ margin : 0 0 0.5rem 0 ;
68+ line-height : 1.3 ;
69+ }
70+
71+ .post__content p {
72+ font-size : 0.9rem ;
73+ color : # 4a4a4a ;
74+ margin : 0 ;
75+ line-height : 1.4 ;
76+ overflow : hidden;
77+ text-overflow : ellipsis;
78+ display : -webkit-box;
79+ -webkit-line-clamp : 3 ;
80+ -webkit-box-orient : vertical;
4681}
You can’t perform that action at this time.
0 commit comments