jmespath-community / jmespath.spec

JMESPath Specification
6 stars 3 forks source link

[styling] Consider supporting styling for function arguments and results differently than plain text #63

Closed springcomp closed 2 years ago

springcomp commented 2 years ago

This is part of a series or minor issues that aim to enable support for flexible styling and theming of the JMESPath site.

image

The table cells that illustrate function usage all share the same td HTML tag. Please, consider adding a CSS-class to allow to format the cells from the Given, Expression and Result columns differently than those from the Presence and Description columns.

innovate-invent commented 2 years ago

is the following acceptable?

#functions {
  table.args {
    td:nth-of-type(1) {} // Name
    td:nth-of-type(2) {} // Presence
    td:nth-of-type(3) {} // Type
    td:nth-of-type(4) {} // Description
  }

  table.examples {
    td:nth-of-type(1) {} // Given
    td:nth-of-type(2) {} // Expression
    td:nth-of-type(3) {} // Result
  }
}
springcomp commented 2 years ago

I guess this will work. Thanks for the feedback.