1
1
.cards {
2
- padding : 10px ;
3
- background : # fff ;
4
- }
5
-
6
- .card-title {
7
- text-align : center;
8
- color : # 5cbdb9 ;
9
- font-size : 20px ;
10
- font-weight : bold;
11
- padding : 20px 20px 20px 20px ;
12
- }
13
-
14
- .cards-container {
15
- display : flex;
16
- flex-flow : column;
17
- align-items : center;
18
- margin : 0 auto;
19
- }
20
-
21
- .cards-wrapper {
22
- position : relative;
2
+ padding : 4rem ;
3
+ background : # fff ;
4
+ }
5
+
6
+ h1 {
7
+ text-align : center;
8
+ }
9
+
10
+ .cards-container {
11
+ display : flex;
12
+ flex-flow : column;
13
+ align-items : center;
14
+ max-width : 1120px ;
15
+ width : 90% ;
16
+ margin : 0 auto;
17
+ }
18
+
19
+ .cards-wrapper {
20
+ position : relative;
21
+ margin : 50px 0 45px ;
22
+ }
23
+
24
+ .cards-items {
25
+ margin-bottom : 24px ;
26
+ }
27
+
28
+ .cards-item {
29
+ display : flex;
30
+ flex : 1 ;
31
+ margin : 0 1rem ;
32
+ border-radius : 10px ;
33
+ }
34
+
35
+ .cards-item-link {
36
+ display : flex;
37
+ flex-flow : column;
38
+ width : 100% ;
39
+ box-shadow : 0 6px 20px rgba (56 , 125 , 255 , 0.17 );
40
+ -webkit-filter : drop-shadow (0 6px 20px rgba (56 , 125 , 255 , 0.017 ));
41
+ filter : drop-shadow (0 6px 20px rgba (56 , 125 , 255 , 0.017 ));
42
+ border-radius : 10px ;
43
+ overflow : hidden;
44
+ text-decoration : none;
45
+ }
46
+
47
+ .cards-item-pic-wrap {
48
+ position : relative;
49
+ width : 100% ;
50
+ padding-top : 67% ;
51
+ overflow : hidden;
52
+ }
53
+
54
+ .fade-img {
55
+ animation-name : fade-img;
56
+ animation-duration : 2s ;
57
+ }
58
+
59
+ .cards-item-pic-wrap ::after {
60
+ content : attr (data-category);
61
+ position : absolute;
62
+ bottom : 0 ;
63
+ margin-left : 10px ;
64
+ padding : 6px 8px ;
65
+ max-width : calc ((100% ) - 60px );
66
+ font-size : 16px ;
67
+ font-weight : 700 ;
68
+ color : # fff ;
69
+ background-color : # 2d712799 ;
70
+ box-sizing : border-box;
71
+ }
72
+
73
+ .cards-item-img {
74
+ position : absolute;
75
+ top : 0 ;
76
+ right : 0 ;
77
+ bottom : 0 ;
78
+ left : 0 ;
79
+ display : block;
80
+ width : 100% ;
81
+ max-width : 100% ;
82
+ height : 100% ;
83
+ max-height : 100% ;
84
+ object-fit : cover;
85
+ transition : all 0.2s linear;
86
+ }
87
+
88
+ .cards-item-img : hover {
89
+ transform : scale (1.1 );
90
+ }
23
91
92
+ .cards-item-info {
93
+ padding : 20px 30px 30px ;
94
+ }
95
+
96
+ .cards-item-text {
97
+ color : # 252e48 ;
98
+ font-size : 18px ;
99
+ line-height : 24px ;
100
+ }
101
+
102
+ @media only screen and (min-width : 1200px ) {
103
+ .content-blog-container {
104
+ width : 84% ;
24
105
}
25
-
106
+ }
107
+
108
+ @media only screen and (min-width : 1024px ) {
26
109
.cards-items {
27
- margin-bottom : 24px ;
28
- }
29
-
30
- .cards-item {
31
110
display : flex;
32
- flex : 1 ;
33
- margin : 0 1rem ;
34
- border-radius : 10px ;
35
111
}
36
-
112
+ }
37
113
38
- .cards-item-pic-wrap {
39
- position : relative;
40
- width : 100% ;
41
- padding-top : 67% ;
42
- overflow : hidden;
43
- }
44
-
45
- .fade-img {
46
- animation-name : fade-img;
47
- animation-duration : 2s ;
48
- }
49
-
50
- .cards-item-pic-wrap ::after {
51
- content : attr (data-category);
52
- position : absolute;
53
- bottom : 0 ;
54
- margin-left : 10px ;
55
- margin-bottom : 8px ;
56
- padding : 6px 8px ;
57
- max-width : calc ((100% ) - 60px );
58
- font-size : 16px ;
59
- font-weight : 700 ;
60
- color : # fff ;
61
- background-color : # b484a8 ;
62
- box-sizing : border-box;
63
- border-radius : 10px ;
64
- }
65
-
66
- .cards-item-img {
67
- position : absolute;
68
- top : 0 ;
69
- right : 0 ;
70
- bottom : 0 ;
71
- left : 0 ;
72
- display : block;
73
- width : 100% ;
74
- max-width : 100% ;
75
- height : 100% ;
76
- max-height : 100% ;
77
- object-fit : cover;
78
- transition : all 0.2s linear;
79
- }
80
-
81
- .cards-item-img : hover {
82
- transform : scale (1.1 );
83
- }
84
-
85
- .cards-item-info {
86
- padding : 10px 20px ;
87
- }
88
-
89
- .cards-item-text {
90
- color : # 252e48 ;
91
- font-size : 18px ;
92
- line-height : 24px ;
93
- }
94
- .form-head {
95
- font-size : 20px ;
96
- }
97
-
98
- @media only screen and (min-width : 1280px ) {
99
- .content-blog-container {
100
- width : 84% ;
101
- }
102
- }
103
-
104
- @media only screen and (min-width : 768px ) {
105
- .cards-items {
106
- display : flex;
107
- }
108
-
109
- .card-title {
110
-
111
- font-size : 2rem ;
112
- padding : 20px 50px 0px 50px ;
113
-
114
- }
114
+ @media only screen and (max-width : 1024px ) {
115
+ .cards-item {
116
+ margin-bottom : 2rem ;
115
117
}
116
-
117
- @media only screen and (min-width : 320px ) {
118
- .cards-item {
119
- margin-bottom : 1rem ;
120
- }
121
-
122
- .cards-item-text {
123
- color : # 252e48 ;
124
- font-size : 1rem ;
125
- line-height : 24px ;
126
- }
127
- }
118
+ }
0 commit comments