-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
205 lines (181 loc) · 3.81 KB
/
style.css
File metadata and controls
205 lines (181 loc) · 3.81 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
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
203
204
205
/* ===========================
General Body & Headings
=========================== */
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #f7f7f7;
margin: 0;
padding: 0;
line-height: 1;
}
/* Container for links */
.box {
max-width: 400px;
margin: 50px auto;
background: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 6px 15px rgba(0,0,0,0.1);
text-align: center;
}
/* Style ALL anchor tags as buttons by default */
/* Style ALL anchor tags as buttons by default */
a {
display: inline-block;
padding: 10px 20px;
margin: 5px;
background-color: #6c757d;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
}
a:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
h1, h2 {
text-align: center;
color: #333;
}
/* ===========================
Colorful Buttons for Dashboard Links
=========================== */
.box a {
display: block;
padding: 12px;
margin: 10px 0;
background: linear-gradient(135deg, #6a11cb, #2575fc);
color: #fff;
text-decoration: none;
border-radius: 8px;
font-weight: bold;
transition: all 0.3s ease;
border: none;
}
.box a:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
opacity: 0.9;
}
/* ===========================
Forms
=========================== */
form {
width: 500px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
form label {
font-weight: bold;
display: block;
margin: 10px 0 5px;
}
form input[type="text"],
form input[type="number"],
form input[type="email"],
form textarea,
form select {
width: 100%;
padding: 8px 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
form input[type="submit"],
form button {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #28a745;
color: #fff;
cursor: pointer;
font-size: 16px;
transition: 0.3s;
}
form input[type="submit"]:hover,
form button:hover {
background-color: #218838;
}
/* ===========================
Tables
=========================== */
table {
width: 90%;
margin: 20px auto;
border-collapse: collapse;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
table th, table td {
padding: 12px 15px;
text-align: center;
border-bottom: 1px solid #ddd;
}
table th {
background-color: #007bff;
color: #fff;
}
table tr:hover {
background-color: #f1f1f1;
}
table a {
display: inline-block;
color: #fff;
text-decoration: none;
font-weight: bold;
background-color: #dc3545;
padding: 8px 15px;
border-radius: 5px;
transition: all 0.3s ease;
margin: 0;
}
table a:hover {
background-color: #c82333;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}
/* ===========================
Navigation Links (Back to Home, etc.)
=========================== */
body > a {
display: inline-block;
margin: 20px;
padding: 10px 20px;
background-color: #17a2b8;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
}
body > a:hover {
background-color: #138496;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}
/* ===========================
Messages
=========================== */
p {
text-align: center;
font-weight: bold;
}
p.success {
color: green;
}
p.error {
color: red;
}
/* ===========================
Quiz Options
=========================== */
input[type="radio"] {
margin-right: 10px;
}