-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve feature profile summary table styling #1599
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -512,3 +512,24 @@ dd { | |||||||||||||||||||||||
border-radius: 0.25rem; // was $border-radius, but that var isn't accessible here. | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
/* Styling for the summary-table shortcode */ | ||||||||||||||||||||||||
.summary-table { | ||||||||||||||||||||||||
tr { | ||||||||||||||||||||||||
// Unset the .table-striped styling that docsy applies by default. | ||||||||||||||||||||||||
background-color: unset !important; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
.required { | ||||||||||||||||||||||||
background-color: rgba($black, 0.07); | ||||||||||||||||||||||||
position: absolute; | ||||||||||||||||||||||||
top: 0; | ||||||||||||||||||||||||
bottom: 0; | ||||||||||||||||||||||||
left: 0; | ||||||||||||||||||||||||
right: 0; | ||||||||||||||||||||||||
Comment on lines
+524
to
+528
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some comments would be nice.
Suggested change
|
||||||||||||||||||||||||
z-index: -1; | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this required? |
||||||||||||||||||||||||
} | ||||||||||||||||||||||||
td { | ||||||||||||||||||||||||
position: relative; | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is something to do with the |
||||||||||||||||||||||||
padding: .3rem 0.75rem !important; | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment, please:
Suggested change
|
||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ weight = 1 | |
[markup.goldmark.renderer] | ||
# Enables us to render raw HTML | ||
unsafe = true | ||
[markup.goldmark.parser.attribute] | ||
block = true # used by the summary-table shortcode | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it would be nice to give a quick example of what it actually does. And/or link to the documentation |
||
[markup.highlight] | ||
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html | ||
# If the style is changed, remember to regenerate the CSS with: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2565,6 +2565,7 @@ that profile. | |
|
||
#### Summary | ||
|
||
{{<summary-table>}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we use |
||
| Module / Profile | Web | Mobile | Desktop | CLI | Embedded | | ||
|------------------------------------------------------------|-----------|----------|----------|----------|----------| | ||
| [Instant Messaging](#instant-messaging) | Required | Required | Required | Required | Optional | | ||
|
@@ -2603,6 +2604,7 @@ that profile. | |
| [Event Annotations and reactions](#event-annotations-and-reactions) | Optional | Optional | Optional | Optional | Optional | | ||
| [Threading](#threading) | Optional | Optional | Optional | Optional | Optional | | ||
| [Reference Relations](#reference-relations) | Optional | Optional | Optional | Optional | Optional | | ||
{{</summary-table>}} | ||
|
||
*Please see each module for more details on what clients need to | ||
implement.* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{/* | ||
|
||
This template is used to visually emphasize table cells containing the text "Required". | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please could you add some more words about how it is intended to be used? Is it for all tables which summarise something, or for a specific summary table? What is the input (a markdown table, I think?), and how is the output returned (it outputs an HTML table ?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I note it also adds a |
||
|
||
*/}} | ||
{{ print (replace .Inner "Required" "<span class=required></span>Required") "{.summary-table}" | markdownify }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes the
!important
on thepadding
unnecessary: