Commit 0d3661a2 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

feat: allows special css class to prevent stripes in tables

parent 299f5c56
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -486,6 +486,7 @@ button,
  input[type="reset"],
  input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  appearance: button;
  cursor: pointer; /* 3 */
}

@@ -550,6 +551,7 @@ input[type="number"]::-webkit-outer-spin-button {

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
@@ -900,7 +902,7 @@ table td > p:last-child {
}
table tr {
  border-top: 1px solid rgb(153, 160, 165);
  background-color: fff;
  background-color: #fff;
  color: #1a1f23;
}

@@ -1027,8 +1029,8 @@ code > span.vs {
code > span.ss {
  color: #bb6688;
} /* SpecialString */
code > span.im {
} /* Import */
/* code > span.im {
} Import */
code > span.va {
  color: #19177c;
} /* Variable */
@@ -1039,10 +1041,10 @@ code > span.cf {
code > span.op {
  color: #666666;
} /* Operator */
code > span.bu {
} /* BuiltIn */
/* code > span.bu {
} BuiltIn
code > span.ex {
} /* Extension */
} Extension */
code > span.pp {
  color: #bc7a00;
} /* Preprocessor */
@@ -1167,3 +1169,7 @@ code span.er {
.bg-striped-row {
  background-color: rgb(241, 241, 241) !important;
}

table.no-table-stripes tbody tr {
  background-color: #fff !important;
}
+1 −1
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ def format_tables(soup: BeautifulSoup) -> BeautifulSoup:
    """

    # add stripes to table rows
    tables = soup.find_all("table")
    tables = soup.find_all("table", class_=lambda x: x != "no-table-stripes")
    for table in tables:
        tbody = table.find("tbody")
        trs = tbody.find_all("tr") if tbody else []