-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.module.css
More file actions
58 lines (50 loc) · 938 Bytes
/
Copy pathapp.module.css
File metadata and controls
58 lines (50 loc) · 938 Bytes
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
/* app.module.css */
.outerShell {
background: #3498db;
color: white;
padding: 1.5rem;
border-radius: 8px;
margin: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.outerShell:hover {
background: #2980b9;
transform: translateY(-2px);
transition: all 0.3s ease;
}
.button {
display: inline-block;
padding: 8px 16px;
background: #2ecc71;
color: white;
border: none;
border-radius: 4px;
font-weight: bold;
cursor: pointer;
}
.button:hover {
background: #27ae60;
}
/* Example of composition */
.dangerButton {
composes: button;
background: #e74c3c;
}
.dangerButton:hover {
background: #c0392b;
}
/* Example of complex nesting */
.card {
border: 1px solid #ddd;
border-radius: 4px;
padding: 1rem;
margin-bottom: 1rem;
}
.card .title {
font-size: 1.2rem;
margin-top: 0;
color: #333;
}
.card .content {
color: #666;
}