-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (104 loc) · 2.34 KB
/
style.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
113
114
115
116
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
/* Box Model */
}
:root {
/* color variables */
--clr-primary: #d50000;
--clr-primary-hover: #29e6a7;
--clr-primary-dark: #039d69;
--clr-gray100: #f0f7f8;
--clr-gray200: #cfd8dc;
--clr-gray300: #a7b7be;
--clr-gray400: #6b7e86;
--clr-gray500: #425a65;
/* border radius */
--radius: 0.2rem;
}
.card {
width: 300px;
overflow: hidden;
box-shadow: 0px 2px 20px var(--clr-gray200);
border-radius: var(--radius);
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
transition: transform 200ms ease-in;
}
.card__image {
height: 12rem;
width: 100%;
object-fit: cover;
}
.card__title {
padding: 1rem;
}
.card__description {
padding: 0 1rem;
}
.card__btn {
padding: 1rem;
font-family: inherit;
font-weight: bold;
font-size: 1rem;
margin: 1rem;
border: 2px solid var(--clr-primary);
background: transparent;
color: var(--clr-primary);
border-radius: var(--radius);
transition: background 200ms ease-in, color 200ms ease-in;
}
.card:hover {
transform: scale(1.02);
}
.card:hover .card__btn {
background: var(--clr-primary);
color: white;
}
.Search-section {
padding: 20px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 20px;
}
input {
width: 100px;
display: flex;
padding: 15px;
background-color: white;
border: 2px solid black;
color: #111;
font-size: 15px;
box-shadow: 3px 1px 0px 2px, 0px -1px 0px 2px rgba(0, 0, 0, 0.62);
height: 58px;
transform: skew(-3deg, 1deg);
font-family: "Knewave", cursive;
letter-spacing: 2px;
text-transform: uppercase;
}
button {
height: 58px;
font-size: 20px;
transform: skew(-3deg, 1deg);
font-family: "Knewave", cursive;
letter-spacing: 2px;
text-transform: uppercase;
background-color: white;
border: 2px solid black;
color: #111;
padding: 10px;
}
.Cards-section {
margin-top: 50px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 30px;
justify-content: center;
align-items: center;
}