-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
100 lines (85 loc) · 1.61 KB
/
style.css
File metadata and controls
100 lines (85 loc) · 1.61 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
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.tabs {
max-width: 600px;
width: 100%;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
background-color: #fff;
overflow: hidden;
}
.tab {
display: flex;
align-items: center;
cursor: pointer;
padding: 15px 20px;
transition: background-color 0.3s, box-shadow 0.3s;
border-bottom: 1px solid #ddd;
}
.tab:last-child {
border-bottom: none;
}
.tab:hover {
background-color: #f0f0f0;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
.tab input[type="radio"] {
display: none;
}
.tab label {
flex: 1;
font-size: 18px;
font-weight: 600;
color: #555;
display: block;
transition: color 0.3s;
}
.tab label:hover {
color: #000;
}
.tab-content {
display: none;
padding: 20px;
background-color: #fff;
animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.tab-content h2 {
margin-top: 0;
font-size: 24px;
color: #222;
}
.tab-content p {
font-size: 16px;
line-height: 1.6;
color: #666;
}
@media (max-width: 768px) {
.tab {
flex-direction: column;
align-items: flex-start;
padding: 10px 15px;
}
.tab label {
font-size: 16px;
}
.tab-content {
padding: 15px;
}
}