-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathDescriptionSection.module.css
More file actions
72 lines (60 loc) · 1.3 KB
/
DescriptionSection.module.css
File metadata and controls
72 lines (60 loc) · 1.3 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
/* DescriptionSection.css */
.tabs {
display: flex;
justify-content: space-between;
/* Ensures tabs fill the container */
border-bottom: 2px solid #ccc;
margin-bottom: 16px;
}
.tab-button {
flex: 1;
/* Ensures all buttons take equal width */
text-align: center;
/* Center-align the text */
padding: 12px;
font-weight: bold;
border: none;
background: none;
cursor: pointer;
}
.tab-button.active {
color: #1d4ed8;
/* Highlight active tab */
border-bottom: 2px solid #1d4ed8;
/* Bottom border for active tab */
}
.tab-button:hover {
background-color: #f3f4f6;
/* Light background on hover */
}
.tab-content {
margin-top: 16px;
border: none;
}
.description-paragraph {
padding-left: 5%;
margin-bottom: 8px;
}
/* Class-based Dark Mode Support */
.description-section.dark-mode {
background-color: #1e2a3a;
}
.description-section.dark-mode .tabs {
border-bottom-color: #3a4a5c;
}
.description-section.dark-mode .tab-button {
color: #b0b0b0;
}
.description-section.dark-mode .tab-button.active {
color: #4a9eff;
border-bottom-color: #4a9eff;
}
.description-section.dark-mode .tab-button:hover {
background-color: #2a3a4a;
}
.description-section.dark-mode .tab-content {
color: #e0e0e0;
}
.description-section.dark-mode .description-paragraph {
color: #b0b0b0;
}