Handle headerless tables
This commit is contained in:
parent
6b7123b1ad
commit
c116f6c1cb
2 changed files with 14 additions and 1 deletions
|
|
@ -22,6 +22,8 @@ impl Table {
|
||||||
pub fn add_cell(&mut self, content: &str) {
|
pub fn add_cell(&mut self, content: &str) {
|
||||||
if let Some(last) = self.contents.last_mut() {
|
if let Some(last) = self.contents.last_mut() {
|
||||||
last.push(content.trim().to_string());
|
last.push(content.trim().to_string());
|
||||||
|
} else {
|
||||||
|
self.contents.push(vec![content.trim().to_string()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -309,11 +309,17 @@ em#index-node-count {
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin: auto;
|
margin: 20px auto;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border: 0.5px dotted #666;
|
border: 0.5px dotted #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table th {
|
||||||
|
background: #099;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
td, th {
|
td, th {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 0.5px dotted #666;
|
border: 0.5px dotted #666;
|
||||||
|
|
@ -437,6 +443,11 @@ p.verse {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table th {
|
||||||
|
background: #002929;
|
||||||
|
border-color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue