Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions govtool/frontend/src/components/molecules/tableMarkdown.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
.markdown {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ciabas Are you sure that Outcomes pillar doesnt need this class? Can you please check?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it back to the original implementation with .markdown, but only fix the invalid file.

& table {
display: block;
overflow-x: auto;
margin: 32px 0;
border-spacing: 0;
border-collapse: collapse;
max-width: 100%;
.markdown table {
display: block;
overflow-x: auto;
margin: 32px 0;
border-spacing: 0;
border-collapse: collapse;
max-width: 100%;
}

& thead {
background-color: #d6e2ff80;
}
.markdown thead {
background-color: #d6e2ff80;
}

& th,
& td {
padding: 6px 13px;
border: 1px solid #d6e2ff;
}
.markdown th,
.markdown td {
padding: 6px 13px;
border: 1px solid #d6e2ff;
}

& td > :last-child {
margin-bottom: 0;
}
.markdown td > :last-child {
margin-bottom: 0;
}

& tr:nth-child(2n) {
background-color: #d6e2ff80;
}
}
.markdown tr:nth-child(2n) {
background-color: #d6e2ff80;
}