docs: remove class names from fiddle examples (#20596)
* docs: remove original class names in customize menus example * docs: remove original class names in shortcuts example * lint: run standard
This commit is contained in:
parent
221ce70699
commit
c73e34fb9e
3 changed files with 28 additions and 28 deletions
|
@ -6,7 +6,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="section-wrapper">
|
||||
<div>
|
||||
<h1>Customize Menus</h1>
|
||||
|
||||
<h3>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<p>
|
||||
Open the
|
||||
<a href="http://electron.atom.io/docs/api/menu"
|
||||
>full API documentation<span class="u-visible-to-screen-reader"
|
||||
>full API documentation<span
|
||||
>(opens in new window)</span
|
||||
></a
|
||||
>
|
||||
|
@ -30,10 +30,10 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<div class="demo">
|
||||
<div>
|
||||
<h2>Create an application menu</h2>
|
||||
<div class="demo-wrapper">
|
||||
<div class="demo-box">
|
||||
<div>
|
||||
<div>
|
||||
<p>
|
||||
The <code>Menu</code> and <code>MenuItem</code> modules allow you to
|
||||
customize your application menu. If you don't set any menu, Electron
|
||||
|
@ -45,7 +45,7 @@
|
|||
'App Menu Demo', you'll see an information box displayed.
|
||||
</p>
|
||||
|
||||
<div class="demo-protip">
|
||||
<div>
|
||||
<h2>ProTip</h2>
|
||||
<strong>Know operating system menu differences.</strong>
|
||||
<p>
|
||||
|
@ -63,7 +63,7 @@
|
|||
<li>
|
||||
<a
|
||||
href="https://developer.apple.com/macos/human-interface-guidelines/menus/menu-anatomy/"
|
||||
>macOS<span class="u-visible-to-screen-reader"
|
||||
>macOS<span
|
||||
>(opens in new window)</span
|
||||
></a
|
||||
>
|
||||
|
@ -71,7 +71,7 @@
|
|||
<li>
|
||||
<a
|
||||
href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb226797(v=vs.85).aspx"
|
||||
>Windows<span class="u-visible-to-screen-reader"
|
||||
>Windows<span
|
||||
>(opens in new window)</span
|
||||
></a
|
||||
>
|
||||
|
@ -79,7 +79,7 @@
|
|||
<li>
|
||||
<a
|
||||
href="https://developer.gnome.org/hig/stable/menu-bars.html.en"
|
||||
>Linux<span class="u-visible-to-screen-reader"
|
||||
>Linux<span
|
||||
>(opens in new window)</span
|
||||
></a
|
||||
>
|
||||
|
@ -90,12 +90,12 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="demo">
|
||||
<div>
|
||||
<h2>Create a context menu</h2>
|
||||
<div class="demo-wrapper">
|
||||
<div class="demo-box">
|
||||
<div class="demo-controls">
|
||||
<button class="demo-button" id="context-menu">View Demo</button>
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<button id="context-menu">View Demo</button>
|
||||
</div>
|
||||
<p>
|
||||
A context, or right-click, menu can be created with the
|
||||
|
|
|
@ -21,20 +21,20 @@
|
|||
|
||||
<p>
|
||||
Open the full documentation for the
|
||||
<a class="u-exlink" href="http://electron.atom.io/docs/api/menu">Menu</a>,
|
||||
<a class="u-exlink" href="http://electron.atom.io/docs/api/accelerator">Accelerator</a>,
|
||||
<a href="http://electron.atom.io/docs/api/menu">Menu</a>,
|
||||
<a href="http://electron.atom.io/docs/api/accelerator">Accelerator</a>,
|
||||
and
|
||||
<a class="u-exlink" href="http://electron.atom.io/docs/api/global-shortcut">globalShortcut</a>
|
||||
<a href="http://electron.atom.io/docs/api/global-shortcut">globalShortcut</a>
|
||||
APIs in your browser.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="demo">
|
||||
<div class="demo-wrapper">
|
||||
<div class="demo-box">
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<p>
|
||||
To try this demo, press <kbd class="normalize-to-platform">CommandOrControl+Alt+K</kbd> on your
|
||||
To try this demo, press <kbd>CommandOrControl+Alt+K</kbd> on your
|
||||
keyboard.
|
||||
</p>
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
`ready` event is emitted.
|
||||
</p>
|
||||
|
||||
<div class="demo-protip">
|
||||
<div>
|
||||
<h2>ProTip</h2>
|
||||
<strong>Avoid overriding system-wide keyboard shortcuts.</strong>
|
||||
<p>
|
||||
|
@ -55,12 +55,12 @@
|
|||
</p>
|
||||
|
||||
<ul>
|
||||
<li><a class="u-exlink"
|
||||
<li><a
|
||||
href="https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/Keyboard.html">macOS</a>
|
||||
</li>
|
||||
<li><a class="u-exlink"
|
||||
<li><a
|
||||
href="http://windows.microsoft.com/en-us/windows-10/keyboard-shortcuts">Windows</a></li>
|
||||
<li><a class="u-exlink"
|
||||
<li><a
|
||||
href="https://developer.gnome.org/hig/stable/keyboard-input.html.en">Linux</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue