-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Initial Quick Docs implementation #3449
Changes from all commits
058275f
fe83c92
737b5b9
e40867c
0f5caab
aaed25e
01e5c56
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="css-prop-defn"> | ||
<div class="css-prop-summary"> | ||
<h1>{{propName}}</h1> | ||
<div>{{{summary}}}</div> | ||
</div> | ||
<div class="divider-holder"> | ||
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. Usually I'm not picky about non-semantic markup, but this jumped out at me. I assume this is tricky for some reason? 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. Yeah... see the comment on the LESS rule for it. Essentially, to get the line centered in the gap between columns we need its offset to be some percentage plus half the fixed-size gap. I suppose we could use Fwiw the |
||
<div class="divider"></div> | ||
</div> | ||
<div class="css-prop-values quiet-scrollbars"> | ||
<div class="scroller" tabIndex="0"> <!-- tabIndex needed: otherwise click focuses CodeMirror scroller --> | ||
<dl> | ||
{{#propValues}} | ||
<dt>{{value}}</dt> | ||
<dd>{{{description}}}</dd> | ||
{{/propValues}} | ||
</dl> | ||
</div> | ||
</div> | ||
<div class="content-bottom"></div> | ||
<a class="more-info" href="{{url}}" title="{{url}}">{{DOCS_MORE_LINK}}</a> | ||
</div> |
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.
Normally we ask extensions to add menus within the extension and not in DefaultMenus right?
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.
Right, but this isn't an extension Command, is a new Quick Docs Command handled by the Editor Manager and the extension just adds a new Quick Docs provider that uses this command, just like Quick Edit works.
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.
Ah, yes. Thanks for catching my mistake. :)