-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyles.css
103 lines (88 loc) · 1.63 KB
/
styles.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: white;
color: black;
font-family: Arial, sans-serif;
}
header {
text-align: center;
padding: 20px;
background-color: #333;
color: white;
}
.name-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
}
.name-item {
margin: 15px;
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease-in-out;
}
.name-item:hover {
transform: scale(1.05);
}
.name-item img {
width: 150px;
height: 150px;
object-fit: cover;
border-bottom: 2px solid #333;
}
.name-item h2 {
padding: 10px;
font-size: 1.5rem;
}
footer {
text-align: center;
padding: 10px;
background-color: #333;
color: white;
position: absolute;
width: 100%;
bottom: 0;
}
/* Light mode styles */
body {
background-color: white;
color: black;
}
button#dark-mode-toggle {
position: fixed;
top: 20px;
right: 20px;
padding: 10px 15px;
cursor: pointer;
background-color: #f1f1f1;
border: 1px solid #ddd;
border-radius: 5px;
z-index: 1000;
}
button#dark-mode-toggle:hover {
background-color: #ddd;
}
/* Dark mode styles */
body.dark-mode {
background-color: #121212;
color: #f1f1f1;
}
body.dark-mode .name-item {
border-color: #333;
}
body.dark-mode button#dark-mode-toggle {
background-color: #333;
color: white;
border: 1px solid #f1f1f1;
}
body.dark-mode .name-item h2 {
color: #f1f1f1;
}