forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionButtons.module.css
More file actions
84 lines (73 loc) · 1.41 KB
/
ActionButtons.module.css
File metadata and controls
84 lines (73 loc) · 1.41 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
/**
* Action Buttons Styles
*
* CSS Module for the action buttons component.
* Provides consistent styling with the rest of the application.
*/
.actionButtons {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
justify-content: flex-start;
}
.button {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 120px;
}
.button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.editButton {
background: #0070f3;
color: white;
border: 1px solid #0070f3;
}
.editButton:hover:not(:disabled) {
background: #0051cc;
border-color: #0051cc;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 112, 243, 0.3);
}
.deleteButton {
background: #dc2626;
color: white;
border: 1px solid #dc2626;
}
.deleteButton:hover:not(:disabled) {
background: #b91c1c;
border-color: #b91c1c;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}
/* Responsive Design */
@media (max-width: 768px) {
.actionButtons {
flex-direction: column;
gap: 0.75rem;
}
.button {
width: 100%;
padding: 0.875rem 1rem;
}
}
@media (max-width: 480px) {
.actionButtons {
gap: 0.5rem;
}
.button {
padding: 0.75rem 1rem;
font-size: 0.9rem;
}
}