mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Finished shortcuts modal styling
This commit is contained in:
@@ -19,7 +19,7 @@ class ShortcutsModal extends React.Component {
|
|||||||
const help = [
|
const help = [
|
||||||
{
|
{
|
||||||
key: "?",
|
key: "?",
|
||||||
text: "Show shortcuts menu"
|
text: "Shortcuts menu"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "o",
|
key: "o",
|
||||||
@@ -35,11 +35,11 @@ class ShortcutsModal extends React.Component {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "p",
|
key: "p",
|
||||||
text: "Source settings modal"
|
text: "Style settings modal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "i",
|
key: "i",
|
||||||
text: "Toggle map"
|
text: "Toggle inspect"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "m",
|
key: "m",
|
||||||
@@ -54,7 +54,10 @@ class ShortcutsModal extends React.Component {
|
|||||||
onOpenToggle={this.props.onOpenToggle}
|
onOpenToggle={this.props.onOpenToggle}
|
||||||
title={'Shortcuts'}
|
title={'Shortcuts'}
|
||||||
>
|
>
|
||||||
<div className="maputnik-modal-section">
|
<div className="maputnik-modal-section maputnik-modal-shortcuts">
|
||||||
|
<p>
|
||||||
|
Press <code>ESC</code> to lose focus of any active elements, then press one of:
|
||||||
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
{help.map((item) => {
|
{help.map((item) => {
|
||||||
return <li>
|
return <li>
|
||||||
|
|||||||
@@ -222,3 +222,20 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #ef5350;
|
color: #ef5350;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.maputnik-modal-shortcuts {
|
||||||
|
code {
|
||||||
|
color: white;
|
||||||
|
background: #3c3c3c;
|
||||||
|
padding: 2px 6px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user