-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
202 lines (174 loc) · 3.8 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/* Reset some default browser styles */
html, body, header, main, footer {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* CSS Variables */
:root {
--header-bg-color: #f8f9fa;
--header-text-color: #333;
--table-header-bg-color: #f1f1f1;
--table-header-text-color: #333;
--table-row-even-bg-color: #fafafa;
--table-row-odd-bg-color: #f5f5f5;
--background-color: #ffffff;
--text-color: #000000;
--link-color: #07158d; /* Dark Blue for light mode */
}
:root.dark-mode {
--header-bg-color: #13131341;
--header-text-color: #f8f9fa;
--table-header-bg-color: #111111;
--table-header-text-color: #f8f9fa;
--table-row-even-bg-color: #121212;
--table-row-odd-bg-color: #121212;
--background-color: #131313;
--text-color: #e0e0e0;
--link-color: #5bcbff;
}
/* Ensure the body takes up the full height of the viewport */
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: var(--background-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
}
/* Header styling */
header {
background-color: var(--header-bg-color);
color: var(--header-text-color);
padding: 0;
}
.Header-Text {
font-size: 1.4rem;
padding: 5px 20px;
text-align: left;
}
/* Link styling */
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
li {
padding-top: 0.4rem;
padding-bottom: 0.4rem;
}
/* Page selector styling */
.page-selector {
padding: 10px;
text-align: center;
}
#page-select {
padding: 5px;
font-size: 16px;
}
/* Main content area */
main {
padding: 20px 40px 40px 40px;
flex-grow: 1;
text-align: left;
}
.h3 {
font-size: 1.2rem;
margin-bottom: 30px;
margin-top: 50px;
}
/* Centralising and handling table overflow */
.table-wrapper {
display: flex;
justify-content: center; /* Centre the table horizontally */
align-items: center; /* Centre the table vertically */
flex-grow: 1;
overflow-x: auto; /* Enables horizontal scrolling if content overflows */
}
table {
border-collapse: collapse;
margin: 0 auto; /* Ensure centring within the container */
font-size: 18px;
max-width: 100%;
table-layout: auto; /* Allow the table to adjust based on its content */
}
table th, table td {
padding: 13px;
border: 1px solid #ddd;
text-align: center;
}
table th {
background-color: var(--table-header-bg-color);
color: var(--table-header-text-color);
}
table tr:nth-child(even) {
background-color: var(--table-row-even-bg-color);
}
table tr:nth-child(odd) {
background-color: var(--table-row-odd-bg-color);
}
/* Theme toggle button */
.toggle-theme {
padding: 10px;
text-align: center;
}
.theme-toggle-label {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.theme-toggle-label input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2f2f2f;
}
input:checked + .slider:before {
transform: translateX(26px);
}
.toggle-text {
display: block;
margin-top: 22px;
font-size: 14px;
color: var(--text-color);
}
/* Footer styling */
footer {
background-color: #00000000;
color: grey;
font-size: 0.7rem;
padding: 5px;
text-align: center;
}
.footer-link {
color: #f09d05;
text-decoration: none;
}