mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Use borders rather than block colors for coloured tables under darktheme
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -66,6 +66,30 @@
|
|||||||
.fc-today {
|
.fc-today {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
.table {
|
||||||
|
border-collapse: separate !important;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
.table tr th {
|
||||||
|
border-right: 0 !important;
|
||||||
|
}
|
||||||
|
.table tr td {
|
||||||
|
border-left: 0 !important;
|
||||||
|
}
|
||||||
|
.table tr td:not(:last-child) {
|
||||||
|
border-right: 0 !important;
|
||||||
|
}
|
||||||
|
@each $color, $value in $theme-colors {
|
||||||
|
.table-#{$color} {
|
||||||
|
> td,th {
|
||||||
|
border: 0.3em solid theme-color-level($color, -6) !important;
|
||||||
|
}
|
||||||
|
> * {
|
||||||
|
color: white !important;
|
||||||
|
background-color: #222 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
del {
|
del {
|
||||||
color: black;
|
color: black;
|
||||||
background-color: $danger;
|
background-color: $danger;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{% load cache %}
|
{% load cache %}
|
||||||
{% cache None event_table request.user %}
|
{% cache None event_table request.user %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table mb-0">
|
<table class="table mb-0" id="event_table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">#</th>
|
<th scope="col">#</th>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
table-warning
|
table-warning
|
||||||
{% endif %}" id="event_row">
|
{% endif %}" id="event_row">
|
||||||
<!---Number-->
|
<!---Number-->
|
||||||
<th scope="row" id="event_number"></th>
|
<th scope="row" id="event_number">{{ event.display_id }}</th>
|
||||||
<!--Dates & Times-->
|
<!--Dates & Times-->
|
||||||
<td id="event_dates">
|
<td id="event_dates">
|
||||||
<span class="text-nowrap">Start: <strong>{{ event.start_date|date:"D d/m/Y" }}</strong>
|
<span class="text-nowrap">Start: <strong>{{ event.start_date|date:"D d/m/Y" }}</strong>
|
||||||
|
|||||||
Reference in New Issue
Block a user