forked from mir-hussain/debugging-project-02
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (111 loc) · 2.15 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
117
118
119
120
121
122
123
124
125
126
127
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--off-black: hsl(0, 0%, 20%);
--gray: hsl(0, 0%, 50%);
--light-gray: hsl(0, 0%, 80%);
--rose: hsl(348, 100%, 73%);
--light-rose: hsl(348, 95%, 57%);
--naples-yellow: hsla(48, 85%, 62%, 1);
--medium-purple: hsla(242, 84%, 76%, 1);
--majorelle-blue: hsla(252, 89%, 62%, 1);
--transition-motion: all ease-in-out 300ms;
}
body {
font-family: "Fredoka", sans-serif;
}
#wishlist {
display: none;
grid-template-columns: repeat(4, 1fr);
justify-items: center;
}
#cart {
display: none;
grid-template-columns: repeat(4, 1fr);
justify-items: center;
}
header {
width: 80%;
height: 80px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 {
font-weight: 500;
color: var(--majorelle-blue);
cursor: pointer;
}
nav ul {
list-style: none;
display: flex;
}
nav ul li {
margin-left: 25px;
font-size: 1.2rem;
cursor: pointer;
color: var(--off-black);
transition: var(--transition-motion);
}
nav ul li:hover {
margin-left: 25px;
font-size: 1.2rem;
cursor: pointer;
color: var(--medium-purple);
}
.books-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
justify-items: center;
gap: 40px 0;
margin: 50px 0;
}
.card {
height: 550px;
width: 300px;
padding: 10px;
border-radius: 12px;
-webkit-box-shadow: 5px 5px 11px 1px rgba(0, 0, 0, 0.4);
box-shadow: 5px 5px 11px 1px rgba(0, 0, 0, 0.4);
}
.image-container {
height: 400px;
width: 280px;
border-radius: 8px;
position: relative;
border: 1px solid var(--medium-purple);
}
.image-container img {
height: 100%;
width: 100%;
object-fit: cover;
object-position: center;
border-radius: 8px;
}
.info-container h1 {
font-weight: 600;
font-size: 1.5rem;
margin-top: 25px;
margin-bottom: 10px;
}
.button-container {
position: absolute;
bottom: -18px;
right: 10px;
}
.button {
background-color: var(--majorelle-blue);
font-size: 1rem;
padding: 0.5em 1em;
border: none;
font-weight: 400;
font-family: "Fredoka", sans-serif;
cursor: pointer;
border-radius: 6px;
color: white;
margin-left: 5px;
}