Skip to content

Commit

Permalink
fix: Update CSS for new bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed May 21, 2024
1 parent ee26f3a commit d18c3d5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
6 changes: 4 additions & 2 deletions otisweb/static/css/django.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ table.table th {
padding: 2px 4px 2px 4px;
font-size: 15px;
}
table.table tr:nth-child(odd) {
table.table tr:nth-child(odd),
table.table tr:nth-child(odd) td {
background-color: #e4e4e4;
}
table.table tr:nth-child(even) {
table.table tr:nth-child(even),
table.table tr:nth-child(even) td {
background-color: #f5f5f5;
}

Expand Down
38 changes: 26 additions & 12 deletions otisweb/static/css/otis.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,43 +67,57 @@ h6.alert-heading {
}

/* Subject colors */
table.table tr.subjectG:nth-child(odd) {
table.table tr.subjectG:nth-child(odd),
table.table tr.subjectG:nth-child(odd) td {
background-color: #aaffaa;
}
table.table tr.subjectC:nth-child(odd) {
table.table tr.subjectC:nth-child(odd),
table.table tr.subjectC:nth-child(odd) td {
background-color: #aaddff;
}
table.table tr.subjectA:nth-child(odd),
table.table tr.subjectF:nth-child(odd) {
table.table tr.subjectA:nth-child(odd) td,
table.table tr.subjectF:nth-child(odd),
table.table tr.subjectF:nth-child(odd) td {
background-color: #ffaaaa;
}
table.table tr.subjectN:nth-child(odd) {
table.table tr.subjectN:nth-child(odd),
table.table tr.subjectN:nth-child(odd) td {
background-color: #eeeeee;
}
table.table tr.subjectM:nth-child(odd) {
table.table tr.subjectM:nth-child(odd),
table.table tr.subjectM:nth-child(odd) td {
background-color: #ffee77;
}
table.table tr.subjectH:nth-child(odd) {
table.table tr.subjectH:nth-child(odd),
table.table tr.subjectH:nth-child(odd) td {
background-color: #fcbffe;
}

table.table tr.subjectG:nth-child(even) {
table.table tr.subjectG:nth-child(even),
table.table tr.subjectG:nth-child(even) td {
background-color: #a5f5a5;
}
table.table tr.subjectC:nth-child(even) {
table.table tr.subjectC:nth-child(even),
table.table tr.subjectC:nth-child(even) td {
background-color: #a5d5f5;
}
table.table tr.subjectA:nth-child(even),
table.table tr.subjectF:nth-child(even) {
table.table tr.subjectA:nth-child(even) td,
table.table tr.subjectF:nth-child(even),
table.table tr.subjectF:nth-child(even) td {
background-color: #f5a5a5;
}
table.table tr.subjectN:nth-child(even) {
table.table tr.subjectN:nth-child(even),
table.table tr.subjectN:nth-child(even) td {
background-color: #dddddd;
}
table.table tr.subjectM:nth-child(even) {
table.table tr.subjectM:nth-child(even),
table.table tr.subjectM:nth-child(even) td {
background-color: #f5e575;
}
table.table tr.subjectH:nth-child(even) {
table.table tr.subjectH:nth-child(even),
table.table tr.subjectH:nth-child(even) td {
background-color: #ecb3ef;
}

Expand Down

0 comments on commit d18c3d5

Please sign in to comment.