Skip to content

Commit

Permalink
Fixes missing table tbody border colors
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-scott-78 committed Apr 10, 2022
1 parent fd11edb commit 9c9bcd6
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/MonorailCss/Plugins/Prose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private CssSettings DefaultSettings()
}),
new("tbody tr", new CssDeclarationList()
{
new(CssProperties.BorderBottomColor, _framework.GetCssVariableWithPrefix("prose-th-borders")),
new(CssProperties.BorderBottomColor, _framework.GetCssVariableWithPrefix("prose-td-borders")),
new(CssProperties.BorderBottomWidth, "1px"),
}),
new(new CssSelector("tbody tr", ":last-child"), new CssDeclarationList()
Expand Down Expand Up @@ -361,6 +361,12 @@ private CssSettings DefaultSettings()
new(
_framework.GetVariableNameWithPrefix("prose-pre-bg"),
_framework.GetCssVariableWithPrefix("prose-invert-pre-bg")),
new(
_framework.GetVariableNameWithPrefix("prose-th-borders"),
_framework.GetCssVariableWithPrefix("prose-invert-th-borders")),
new(
_framework.GetVariableNameWithPrefix("prose-td-borders"),
_framework.GetCssVariableWithPrefix("prose-invert-td-borders")),
},
}
},
Expand Down Expand Up @@ -402,15 +408,25 @@ private CssSettings DefaultSettings()
_framework.GetVariableNameWithPrefix("prose-pre-bg"),
_designSystem.Colors[scale][ColorLevels._800].AsRgb()),
new(
_framework.GetVariableNameWithPrefix("prose-invert-body"),
_framework.GetVariableNameWithPrefix("prose-th-borders"),
_designSystem.Colors[scale][ColorLevels._300].AsRgb()),
new(
_framework.GetVariableNameWithPrefix("prose-td-borders"),
_designSystem.Colors[scale][ColorLevels._200].AsRgb()),
// inverts
new(_framework.GetVariableNameWithPrefix("prose-invert-body"), _designSystem.Colors[scale][ColorLevels._300].AsRgb()),
new(_framework.GetVariableNameWithPrefix("prose-invert-headings"), "white"),
new(_framework.GetVariableNameWithPrefix("prose-invert-links"), "white"),
new(_framework.GetVariableNameWithPrefix("prose-invert-code"), "white"),
new(
_framework.GetVariableNameWithPrefix("prose-invert-pre-code"),
_designSystem.Colors[scale][ColorLevels._300].AsRgb()),
new(_framework.GetVariableNameWithPrefix("prose-invert-pre-code"), _designSystem.Colors[scale][ColorLevels._300].AsRgb()),
new(_framework.GetVariableNameWithPrefix("prose-invert-pre-bg"), "rgb(0 0 0 / 50%)"),
new(
_framework.GetVariableNameWithPrefix("prose-invert-th-borders"),
_designSystem.Colors[scale][ColorLevels._600].AsRgb()),
new(
_framework.GetVariableNameWithPrefix("prose-invert-td-borders"),
_designSystem.Colors[scale][ColorLevels._700].AsRgb()),
},
}
},
Expand Down

0 comments on commit 9c9bcd6

Please sign in to comment.