-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
137 lines (120 loc) · 2.38 KB
/
style.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
:root {
--background-color: #f0f8ff;
--text-color: #333333;
--header-background-color: #4682b4;
--header-text-color: #ffffff;
--header-border-color: #5f9ea0;
--box-background-color: #ffffff;
--box-border-color: #b0c4de;
--hover-background-color: #e6f2ff;
--error-color: #e53935;
--tooltip-background-color: rgba(50, 50, 50, 0.9);
--tooltip-text-color: #ffffff;
}
body.dark-mode {
--background-color: #1a1a1a;
--text-color: #e0e0e0;
--header-background-color: #2f4f4f;
--header-text-color: #ffffff;
--header-border-color: #4f4f4f;
--box-background-color: #2a2a2a;
--box-border-color: #444444;
--hover-background-color: #333333;
--error-color: #ef5350;
--tooltip-background-color: rgba(230, 230, 230, 0.9);
--tooltip-text-color: #1a1a1a;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-color);
color: var(--text-color);
}
a {
color: inherit;
text-decoration: none;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1,
h2 {
margin: 20px 0;
text-align: center;
}
p {
margin: 0;
text-align: center;
}
.header {
background-color: var(--header-background-color);
color: var(--header-text-color);
border-bottom: 2px solid var(--header-border-color);
}
.header-content {
max-width: 800px;
margin: 0 auto;
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.home-link {
position: absolute;
left: 20px;
display: flex;
align-items: center;
}
.home-icon {
width: 28px;
height: 28px;
}
.tool-name {
font-size: 24px;
font-weight: bold;
margin: 0;
}
.theme-toggle {
position: absolute;
right: 20px;
background-color: var(--box-background-color);
color: var(--text-color);
border: 1px solid var(--box-border-color);
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
}
.theme-toggle:hover {
background-color: var(--hover-background-color);
}
.tool-menu {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 40px;
}
.tool-card {
background-color: var(--box-background-color);
border: 2px solid var(--box-border-color);
border-radius: 8px;
padding: 20px;
margin: 10px;
text-align: center;
text-decoration: none;
color: var(--text-color);
width: calc(50% - 40px);
box-sizing: border-box;
}
.tool-card:hover {
background-color: var(--hover-background-color);
}
body,
.box,
.theme-toggle,
.tool-card {
transition: none;
}