forked from navik11/SURP--2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhy.css
112 lines (95 loc) · 1.56 KB
/
why.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.main {
max-width: 1200px;
margin: 0 auto;
}
.cards {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
.cards_item {
display: flex;
padding: 1rem;
}
.card_image {
position: relative;
max-height: 250px;
}
.card_image img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (min-width: 40rem) {
.cards_item {
width: 50%;
}
}
@media (min-width: 56rem) {
.cards_item {
width: 33.3333%;
}
}
.card {
background-color: white;
border-radius: 0.25rem;
box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
display: flex;
flex-direction: column;
overflow: hidden;
transition: transform 0.3s;
}
.card:hover {
transform: scale(1.05);
}
.card_content {
position: relative;
padding: 16px 12px 32px 24px;
margin: 16px 8px 8px 0;
max-height: 290px;
overflow-y: scroll;
}
.card_content::-webkit-scrollbar {
width: 8px;
}
.card_content::-webkit-scrollbar-track {
box-shadow: 0;
border-radius: 0;
}
.card_content::-webkit-scrollbar-thumb {
background: #c89b3f;
border-radius: 15px;
}
.card_title {
position: relative;
margin: 0 0 24px;
padding-bottom: 10px;
text-align: center;
font-size: 20px;
font-weight: 700;
}
.card_title::after {
position: absolute;
display: block;
width: 50px;
height: 2px;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: #004AAD;
content: "";
}
hr {
width: 70%;
border-top: solid #004AAD;
}
.card_text p {
margin: 0 0 24px;
font-size: 14px;
line-height: 1.5;
}
.card_text p:last-child {
margin: 0;
}