diff --git a/app/[lng]/globals.css b/app/[lng]/globals.css index 1ef51e9e..5a3aff00 100644 --- a/app/[lng]/globals.css +++ b/app/[lng]/globals.css @@ -118,3 +118,66 @@ html { body { height: calc(100% - 72px); } + +table { + width: 100%; + border-collapse: separate; + border-spacing: 0; + color: black; + border: 1px solid #8b5cf6; +} +table tr:first-child { + background: linear-gradient(to right, #8b5cf6, #6366f1); +} +table th { + padding: 10px 15px; + color: #fff; + text-align: left; + vertical-align: middle; +} + +table td { + padding: 10px 15px; + background: #f8fafc; + text-align: left; + vertical-align: middle; + border-bottom: 1px solid #e8e8e8; +} + +table td:not(:first-child) { + border-left: 1px solid #e8e8e8; +} + +table tr:last-child td { + border-bottom: none; +} + +/* This will make the table corners rounded */ +table { + border-radius: 5px; + overflow: hidden; +} +@media (prefers-color-scheme: dark) { + table { + color: white; + } + + table td { + background: #1e293b; + border-bottom: 1px solid #334155; + } + table td:not(:first-child) { + border-left: 1px solid #334155; + } +} + +@media print { + table { + border: 1px solid black; + color: black; + } + table th { + color: black; + border-bottom: 1px solid black; + } +}