-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtable.css
More file actions
103 lines (88 loc) · 1.9 KB
/
Copy pathtable.css
File metadata and controls
103 lines (88 loc) · 1.9 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
101
102
103
/* Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
:root {
--accent-color: #9935e0;
--primary-font: 'Poppins', sans-serif;
--bg-color: #121212;
--text-color: #e0e0e0;
--table-bg: #1e1e1e;
--border-color: #444;
--hover-color: #6a0dad;
--transition: 0.3s;
}
body {
font-family: var(--primary-font);
background: url('background.png') no-repeat center center fixed;
background-size: cover;
background-color: var(--bg-color);
color: var(--text-color);
text-align: center;
padding: 20px;
}
.container {
width: 80%;
margin: auto;
background: var(--table-bg);
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
border: 1px solid var(--accent-color);
}
h1 {
font-size: 2.5em;
color: var(--accent-color);
margin-bottom: 10px;
}
p {
font-size: 1.2em;
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
thead {
background-color: var(--accent-color);
color: white;
}
th, td {
padding: 12px;
border: 1px solid var(--border-color);
text-align: center;
}
tbody tr:nth-child(even) {
background-color: #292929;
}
tbody tr:nth-child(odd) {
background-color: #222;
}
tbody tr:hover {
background-color: var(--hover-color);
transition: var(--transition);
}
.back-button {
display: inline-block;
background-color: var(--accent-color);
color: white;
padding: 12px 20px;
border-radius: 8px;
font-size: 1em;
font-weight: 600;
text-decoration: none;
transition: var(--transition);
margin-top: 20px;
}
.back-button:hover {
background-color: #5a007d;
}
/* Adding responsiveness to the table */
@media (max-width: 768px) {
.container {
width: 90%;
padding: 20px;
}
th, td {
padding: 8px;
}
}