-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBookCard.module.css
More file actions
117 lines (100 loc) · 1.89 KB
/
Copy pathBookCard.module.css
File metadata and controls
117 lines (100 loc) · 1.89 KB
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
.book-card {
background: white;
border: 1px solid #e9ecef;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
padding: 1rem;
transition: box-shadow 0.2s;
}
.book-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.book-card__header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.5rem;
gap: 1rem;
}
.book-card__title {
margin: 0;
font-size: 1.125rem;
font-weight: 700;
color: #212529;
line-height: 1.3;
flex: 1;
}
.book-card__year {
background-color: #e9ecef;
color: #6c757d;
padding: 0.25rem 0.5rem;
border-radius: 3px;
font-size: 0.75rem;
font-weight: 500;
white-space: nowrap;
}
.book-card__author {
margin: 0 0 1rem 0;
color: #6c757d;
font-size: 0.875rem;
}
.book-card__status-container {
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e9ecef;
}
.book-card__status {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 3px;
font-size: 0.75rem;
font-weight: 500;
text-transform: lowercase;
}
.book-card__status--pending {
background-color: #fff5d9;
color: #ec8a4d;
}
.book-card__status--in-progress {
background-color: #ddeffd;
color: #2e5eab;
}
.book-card__status--read {
background-color: #d4edda;
color: #42a646;
}
.book-card__actions {
display: flex;
gap: 0.5rem;
}
.book-card__button {
flex: 1;
padding: 0.5rem 1rem;
border-radius: 3px;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s;
border: 1px solid;
font-weight: 400;
}
.book-card__button--delete {
background-color: #fde7e9;
color: #ac3031;
border-color: #fde7e9;
}
.book-card__button--edit {
background-color: #f8f9fa;
color: #495057;
border-color: #ced4da;
}
@media (min-width: 768px) {
.book-card {
padding: 1.5rem;
}
.book-card__title {
font-size: 1.25rem;
}
.book-card__author {
font-size: 1rem;
}
}