-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
71 lines (60 loc) · 1.42 KB
/
main.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
/*css card styling*/
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@500;600&display=swap");
img {
width: 100%;
border-radius: 12px;
height: 214px;
object-fit: cover;
}
body {
background-color: #eaeff1;
font-family: "Raleway", sans-serif;
}
#container {
max-width: 300px;
margin: 0 auto; /*center the container in middle on horizotal axis*/
margin-top: 20vh; /*add empty space above the container (20% of the view height*/
}
.card {
background-color: white;
border: 1px solid #bacdd8;
padding: 8px; /*add space between border and content*/
border-radius: 12px;
}
.tag {
padding: 4px 8px;
border: 1px solid #e5eaed;
border-radius: 50px;
font-size: 12px;
font-weight: 600;
color: #788769;
}
.card_name {
font-size: 24px;
font-weight: 600;
margin-top: 16px;
}
p {
font-size: 14px;
color: #7f8c9b;
line-height: 150%;
}
button {
border: none;
padding: 12px 24px;
border-radius: 50px;
font-weight: 600;
color: #7f8c9b;
background-color: #e0efff;
margin: 0 auto;
display: block; /*convert inline elemt to display as a block*/
cursor: pointer; /*button is a clickable element, therefore it should have a pointer cursor*/
}
.card_details {
padding: 16px 8px 8px 8px;
}
button:focus,
button:hover { /*add style when button is focused or hovered*/
background-color: #0077ff;
color: #ffffff;
}