File tree 6 files changed +27
-21
lines changed
6 files changed +27
-21
lines changed Original file line number Diff line number Diff line change
1
+
1
2
.card .card-websites {
2
3
cursor : default;
3
4
opacity : 1 ;
4
5
margin : 0 ;
5
6
padding : 0 !important ;
6
- position : fixed;
7
7
max-width : 300px ;
8
8
display : flex;
9
9
flex-direction : column;
10
- transform : translate (0 , 70px );
11
10
}
12
11
13
12
.card .card-websites .card-title {
Original file line number Diff line number Diff line change 10
10
'Following' : 'Subscribe' }}</ button >
11
11
</ div >
12
12
< a class ="item " routerLink ="/websites "> Show more...</ a >
13
- </ div >
13
+ </ div >
Original file line number Diff line number Diff line change 9
9
}
10
10
11
11
.skeletons {
12
- margin-top : 0.5rem ;
12
+ display : flex;
13
+ flex-direction : column;
14
+ gap : 1rem ;
13
15
}
14
16
15
17
.news-container {
16
- margin : 0 1 rem 1 rem 1rem ;
18
+ margin : 1rem ;
17
19
}
18
20
19
21
.top-search {
20
22
display : flex;
21
23
align-items : center;
22
- position : fixed;
23
24
width : inherit;
24
25
min-height : 70px ;
25
26
}
28
29
width : 100% ;
29
30
}
30
31
32
+ .websites-wrapper {
33
+ position : sticky;
34
+ top : 0 ;
35
+ display : flex;
36
+ flex-direction : column;
37
+ gap : 1rem ;
38
+ }
39
+
31
40
@media (max-width : 1200px ) {
32
41
.home-section .recently .news {
33
42
grid-template-columns : repeat (1 , 100% );
Original file line number Diff line number Diff line change 19
19
</ div >
20
20
</ section >
21
21
< section class ="websites ">
22
- < div class ="top-search ">
23
- < app-search-input (search) ="search($event) "> </ app-search-input >
22
+ < div class ="websites-wrapper ">
23
+ < div class ="top-search ">
24
+ < app-search-input (search) ="search($event) "> </ app-search-input >
25
+ </ div >
26
+ < app-card-websites-a *ngIf ="isLoading "> </ app-card-websites-a >
27
+ < app-websites-card *ngIf ="!isLoading " [websites] ="websites "> </ app-websites-card >
24
28
</ div >
25
- < app-card-websites-a *ngIf ="isLoading "> </ app-card-websites-a >
26
- < app-websites-card *ngIf ="!isLoading " [websites] ="websites "> </ app-websites-card >
27
29
</ section >
28
- </ div >
30
+ </ div >
Original file line number Diff line number Diff line change 7
7
min-height : 10rem ;
8
8
height : 13rem ;
9
9
max-height : 13rem ;
10
- padding : 1rem 0.5rem ;
11
- margin : 0 0 1rem ;
10
+ padding : 1rem ;
12
11
gap : 10px ;
12
+ flex-direction : row-reverse;
13
13
}
14
14
15
15
.card-new .image {
16
16
max-height : 100% ;
17
17
min-width : auto;
18
18
height : 12rem ;
19
19
width : 12rem ;
20
- border-radius : 50 % ;
20
+ border-radius : 0.6 rem
21
21
}
22
22
23
23
.card-new .content {
39
39
.line {
40
40
height : 30px ;
41
41
border-radius : 8px ;
42
- width : 100 % ;
42
+ width : 50 % ;
43
43
}
44
44
45
45
.line-1 {
46
46
width : 90% !important ;
47
47
}
48
48
49
49
.line-2 {
50
- width : 70 % !important ;
50
+ width : 60 % !important ;
51
51
}
52
52
53
53
@media (max-width : 480px ) {
59
59
width : 95% ;
60
60
}
61
61
62
- .line-1 {
63
- width : 100% !important ;
64
- }
65
62
66
63
.line-2 {
67
- width : 78 % !important ;
64
+ width : 68 % !important ;
68
65
}
69
66
}
Original file line number Diff line number Diff line change 14
14
gap : 1rem ;
15
15
opacity : 1 ;
16
16
position : fixed;
17
- transform : translate (0 , 78px );
18
17
}
19
18
20
19
.card-website .item {
You can’t perform that action at this time.
0 commit comments