Skip to content

Commit

Permalink
Added table styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Nov 25, 2023
1 parent e952979 commit 94cef13
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions app/[lng]/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 94cef13

Please sign in to comment.