summaryrefslogtreecommitdiff
path: root/templates/css
diff options
context:
space:
mode:
Diffstat (limited to 'templates/css')
-rw-r--r--templates/css/account.css5
-rw-r--r--templates/css/admin.css57
-rw-r--r--templates/css/style.css128
3 files changed, 190 insertions, 0 deletions
diff --git a/templates/css/account.css b/templates/css/account.css
new file mode 100644
index 0000000..f9617ec
--- /dev/null
+++ b/templates/css/account.css
@@ -0,0 +1,5 @@
+/* Styles for account pages */
+.account-container {
+ width: 100%;
+ max-width: 450px;
+}
diff --git a/templates/css/admin.css b/templates/css/admin.css
new file mode 100644
index 0000000..446b083
--- /dev/null
+++ b/templates/css/admin.css
@@ -0,0 +1,57 @@
+/* Admin page specific container */
+.admin-container {
+ max-width: 95%;
+ width: 1200px;
+ margin: 2rem auto;
+}
+
+/* Responsive wrapper for the table */
+.table-container {
+ overflow-x: auto;
+ width: 100%;
+ margin-top: 1.5rem;
+ border: 1px solid #ddd;
+ border-radius: 8px;
+}
+
+/* Admin Table */
+table {
+ width: 100%;
+ border-collapse: collapse;
+ min-width: 800px; /* Prevent table from becoming too cramped */
+}
+
+th, td {
+ padding: 0.75rem 1rem;
+ text-align: left;
+ border-bottom: 1px solid #ddd;
+ white-space: nowrap; /* Prevent content from wrapping */
+}
+
+tr:last-child td {
+ border-bottom: none;
+}
+
+th {
+ background-color: #f7f7f7;
+ font-weight: 600;
+}
+
+td button {
+ margin-right: 0.5rem;
+ padding: 0.25rem 0.5rem;
+ width: auto; /* Override common button width */
+ font-size: 0.875rem;
+}
+
+td select {
+ padding: 0.25rem 0.5rem;
+}
+
+button.delete {
+ background-color: #dc3545;
+ border-color: #dc3545;
+}
+button.delete:hover {
+ background-color: #c82333;
+} \ No newline at end of file
diff --git a/templates/css/style.css b/templates/css/style.css
new file mode 100644
index 0000000..dfe1139
--- /dev/null
+++ b/templates/css/style.css
@@ -0,0 +1,128 @@
+/* General Body Styles */
+body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ min-height: 100vh;
+ background-color: #f0f2f5;
+ margin: 0;
+ padding: 1rem;
+ box-sizing: border-box;
+}
+
+/* General Container for forms and content */
+.container {
+ background-color: #fff;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ width: 100%;
+ box-sizing: border-box;
+}
+
+/* Centered page content (login, register) */
+.form-container {
+ max-width: 420px;
+}
+
+/* Wider content (account page) */
+.content-container {
+ max-width: 500px;
+}
+
+
+/* Headings */
+h1, h2 {
+ text-align: center;
+ margin-top: 0;
+ margin-bottom: 1.5rem;
+ color: #333;
+}
+
+/* Forms */
+.form-group {
+ margin-bottom: 1rem;
+}
+
+label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 500;
+ color: #555;
+}
+
+input[type="text"],
+input[type="password"],
+input[type="email"] {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+ font-size: 1rem;
+}
+
+/* Buttons */
+button {
+ width: 100%;
+ padding: 0.75rem;
+ border: none;
+ border-radius: 4px;
+ font-size: 1rem;
+ font-weight: 600;
+ cursor: pointer;
+ color: #fff;
+ background-color: #007bff;
+ transition: background-color 0.2s;
+}
+
+button:hover {
+ background-color: #0056b3;
+}
+
+button.btn-success {
+ background-color: #28a745;
+}
+button.btn-success:hover {
+ background-color: #218838;
+}
+
+/* Links */
+.form-link {
+ text-align: center;
+ margin-top: 1rem;
+}
+
+a {
+ text-decoration: none;
+ color: #007bff;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+/* Messages */
+.error, .message.error {
+ color: #dc3545;
+ text-align: center;
+ margin-top: 1rem;
+ min-height: 1em;
+}
+
+.message.success {
+ color: #28a745;
+ text-align: center;
+ margin-top: 1rem;
+}
+
+/* Lists */
+ul {
+ list-style: none;
+ padding: 0;
+}
+
+li {
+ margin-bottom: 1rem;
+} \ No newline at end of file