-
Notifications
You must be signed in to change notification settings - Fork 0
/
DAY3-PROJECTstyle.css
108 lines (92 loc) · 1.74 KB
/
DAY3-PROJECTstyle.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
@import url("https://fonts.googleapis.com/css?family=Poppins&display=swap");
* {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
font-size: 62.5%;
}
body {
background-color: #eee;
font-family: "Poppins", sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.grid {
display: grid;
width: 114em;
grid-gap: 6rem;
grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
align-items: start;
}
.grid-item {
background-color: #fff;
border-radius: 0.4rem;
overflow: hidden;
box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: 0.2s;
}
.grid-item:hover {
transform: translateY(-0.5%);
box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.5);
}
.card-img {
display: block;
width: 100%;
height: 20rem;
object-fit: cover;
}
.card-content {
padding: 3rem;
}
.card-header {
font-size: 3rem;
font-weight: 500;
color: #0d0d0d;
margin-bottom: 1.5rem;
}
.card-text {
font-size: 1.6rem;
letter-spacing: 0.1rem;
line-height: 1.7;
color: #3d3d3d;
margin-bottom: 2.5rem;
}
.card-btn {
display: block;
width: 100%;
padding: 1.5rem;
font-size: 2rem;
text-align: center;
color: #3363ff;
background-color: #d8e0fd;
border: none;
border-radius: 0.4rem;
transition: 0.2s;
cursor: pointer;
letter-spacing: 0.1rem;
}
.card-btn span {
margin-left: 1rem;
transition: 0.2s;
}
.card-btn:hover,
.card-btn:active {
background-color: #c2cffc;
}
.card-btn:hover span,
.card-btn:active span {
margin-left: 1.5rem;
}
@media only screen and (max-width: 60em) {
body {
padding: 3rem;
}
.grid {
grid-gap: 3rem;
}
}